ENH: support Euler rotation rollPitchYaw/yawPitchRoll ordering

- can be more intuitive to specify for some cases:

      rotation
      {
          type    euler;
          order   rollPitchYaw;
          angles  (0 20 45);
      }

- refactor starcd rotation to reuse Euler ZXY ordering
  (code reduction)

ENH: add -rotate-x, -rotate-y, -rotate-z for transformPoints etc

- easier to specify for simple rotations
This commit is contained in:
Mark Olesen
2022-06-01 13:38:49 +02:00
parent eba7a485ba
commit a465e4db85
26 changed files with 336 additions and 228 deletions

View File

@ -10,7 +10,7 @@ runApplication blockMesh
runApplication mergeMeshes . ../cylinderMesh -overwrite
## Make it a bit smaller to keep it laminar
#runApplication transformPoints -scale '(0.001 0.001 0.001)'
#runApplication transformPoints -scale 0.001
# Select cellSets for the different zones
runApplication topoSet

View File

@ -10,7 +10,7 @@ runApplication blockMesh
runApplication mergeMeshes . ../cylinderMesh -overwrite
## Make it a bit smaller to keep it laminar
#runApplication transformPoints -scale '(0.001 0.001 0.001)'
#runApplication transformPoints -scale 0.001
# Select cellSets for the different zones
runApplication topoSet

View File

@ -13,7 +13,7 @@ restore0Dir
runApplication blockMesh
runApplication transformPoints -scale "(1 0 1)"
runApplication transformPoints -scale '(1 0 1)'
runApplication extrudeMesh

View File

@ -13,7 +13,7 @@ restore0Dir
runApplication blockMesh
runApplication transformPoints -scale "(1 0 1)"
runApplication transformPoints -scale '(1 0 1)'
runApplication extrudeMesh

View File

@ -10,7 +10,7 @@ runApplication blockMesh
runApplication mergeMeshes . ../cylinderMesh -overwrite
## Make it a bit smaller to keep it laminar
#runApplication transformPoints -scale '(0.001 0.001 0.001)'
#runApplication transformPoints -scale 0.001
# Select cellSets for the different zones
runApplication topoSet

View File

@ -60,9 +60,9 @@ geometry
{
type cartesian;
origin (2 2 0);
coordinateRotation
rotation
{
type axesRotation;
type axes;
e1 (1 0 0);
e3 (0 0 1);
}

View File

@ -13,7 +13,7 @@ restore0Dir
runApplication setFields
runApplication transformPoints -rollPitchYaw "(0 -90 0)"
runApplication transformPoints -rotate-y -90
runApplication checkMesh -allGeometry -allTopology

View File

@ -9,7 +9,7 @@ mkdir -p constant/triSurface
runApplication surfaceTransformPoints \
-translate '(0 0 5)' \
-origin '(0 0 5)' \
-rotate-angle '((1 0 0) 45)' \
-rotate-x 45 \
"$FOAM_TUTORIALS"/resources/geometry/blob.stl.gz \
constant/triSurface/blob.obj