simpleShapes

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

mkdir -p constant/triSurface

cp -f \r
“$FOAM_TUTORIALS”/resources/geometry/simpleShapes/* \r
constant/triSurface/

runApplication -s cone \r
surfaceOrient constant/triSurface/cone.stl \r
-inside ‘(0 -0.5 0)’ \r
constant/triSurface/cone_orient.stl

runApplication -s sphere \r
surfaceOrient constant/triSurface/sphere.stl \r
-inside ‘(0 -0.5 0)’ \r
constant/triSurface/sphere_orient.stl

runApplication \r
surfaceBooleanFeatures intersection cone_orient.stl sphere_orient.stl

runApplication foamyHexMesh

runApplication -s collapseFaceSet \r
collapseEdges -latestTime -collapseFaceSet indirectPatchFaces

runApplication -s collapseFaces \r
collapseEdges -latestTime -collapseFaces

#——————————————————————————

実行年月:02/01/2022