mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- 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
23 lines
715 B
Bash
Executable File
23 lines
715 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
mkdir -p constant/triSurface
|
|
|
|
# Use 'blob' as an arbitrary enclosing surface
|
|
runApplication surfaceTransformPoints \
|
|
-translate '(0 0 5)' \
|
|
-origin '(0 0 5)' \
|
|
-rotate-x 45 \
|
|
"$FOAM_TUTORIALS"/resources/geometry/blob.stl.gz \
|
|
constant/triSurface/blob.obj
|
|
|
|
runApplication blockMesh
|
|
|
|
runApplication decomposePar -dry-run -cellDist
|
|
|
|
runApplication foamToVTK -no-boundary
|
|
|
|
#------------------------------------------------------------------------------
|