transformPoints -rotate "((1 0 0) (-1 0 0))" inverts the mesh instead of roating it by 180° degrees
View options
- Truncate descriptions
Closed Issue created
Summary
From a mathematical point of view, one would expect the following two commands to be the same:
transformPoints -rotate "((1 0 0) (-1 0 0))"
transformPoints -rotate-angle "((0 1 0) 180)"
However, there seems to be problem in the implementation with two vectors, since the resulting mesh is inside out.
Steps to reproduce
transformPoints -rotate "((1 0 0) (-1 0 0))"
leads to cells with negative volume instead the rotation of the mesh (checkMesh)
Example case
What is the current bug behaviour?
The mesh is turned inside out.
What is the expected correct behavior?
Similar behavior to transformPoints -rotate-angle "((0 1 0) 180)"
Relevant logs and/or images
Environment information
- OpenFOAM version : v2406
- Operating system : Ubuntu 22.04
- Hardware info : Intel
- Compiler : gcc 9.5.0
Possible fixes
- Show labels
- Show closed items