Inconsistent foamToVTK -legacy with previous versions
Summary
Steps to reproduce
Convert any OpenFOAM case using openfoam/1706 first and type the following command:
foamToVTK
then use openfoam/1912 and type:
foamToVTK -legacy
you will see that, in case of a tensor with class volSymmTensorField (e.g. UPrime2Mean), the order of the different tensor components is changed, before it was:
XX XY XZ YY YZ ZZ
in the latest -legacy version is
XX YY ZZ XY XZ YZ
since the expected correct order is the first one, please correct the .vtk generation in the new foamToVTK -legacy version. I haven't tried if this problem occurs also without the "-legacy" flag.
Example case
What is the current bug behaviour?
What is the expected correct behavior?
Relevant logs and/or images
Environment information
- OpenFOAM version :
- Operating system :
- Hardware info :
- Compiler :
Possible fixes
Thank you in advance and have a nice day, Matteo