faceZoneBlock

#!/bin/sh
cd “${0%/*}” || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#——————————————————————————

#- Generate mesh
runApplication blockMesh

#- Create faceZone (on unrotated mesh so is easy to select box of faces)
runApplication topoSet

#- Rotate a bit
#runApplication transformPoints -rotate-z -45

#- Generate pointMesh with additional feature patches
# (in constant/pointMesh/boundary)
# – extracted surface is not used
# – specify illegal patchname so none will be extracted (could use
# ‘-excludePatches’ instead)
# – extract feature points of faceZone
# – additionally extract all points of faceZone (-extractZonePoints)
runApplication surfaceMeshExtract \r
-featureAngle 45 \r
-patches ‘(ZZZZZZ)’ \r
-faceZones ‘(movingZone)’ -extractZonePoints \r
constant/triSurface/blockMesh.obj

#- For postprocessing: extract new pointPatches as vtk files
setSet

実行年月:06/06/2025