- add -recentre option to shift points according to the bounding box centre before performing other operations - add -auto-origin to use the bounding box centre as the origin for rotations. Has lower priority than the -origin option. - surfaceTransformPoints now has distinct -read-scale, -write-scale options (as per surfaceMeshConvert). Silently accepts -scale as equivalent to -write-scale, for backwards compatibility and similarity with transformPoints - add -steps option for surfaceRefineRedGreen for successive refinement
28 lines
853 B
Bash
Executable File
28 lines
853 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
runApplication blockMesh
|
|
|
|
# Extract some faces for sampling
|
|
runApplication surfaceMeshExtract \
|
|
-patches inlet -time 0 \
|
|
constant/triSurface/inlet_sample0.obj
|
|
|
|
# Recentre and inflate
|
|
runApplication surfaceTransformPoints \
|
|
-recentre \
|
|
-scale 3.5 \
|
|
constant/triSurface/inlet_sample0.obj \
|
|
constant/triSurface/inlet_sample1.obj
|
|
|
|
# Finer mesh
|
|
runApplication surfaceRefineRedGreen \
|
|
constant/triSurface/inlet_sample1.obj \
|
|
constant/triSurface/oversized_sample.obj
|
|
|
|
runApplication $(getApplication)
|
|
|
|
#------------------------------------------------------------------------------
|