mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -13,7 +13,7 @@ restore0Dir
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication transformPoints -scale "(1 0 1)"
|
||||
runApplication transformPoints -scale '(1 0 1)'
|
||||
|
||||
runApplication extrudeMesh
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ restore0Dir
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication transformPoints -scale "(1 0 1)"
|
||||
runApplication transformPoints -scale '(1 0 1)'
|
||||
|
||||
runApplication extrudeMesh
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@ restore0Dir
|
||||
|
||||
runApplication setFields
|
||||
|
||||
runApplication transformPoints -rollPitchYaw "(0 -90 0)"
|
||||
runApplication transformPoints -rotate-y -90
|
||||
|
||||
runApplication checkMesh -allGeometry -allTopology
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user