#!/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.stlrunApplication -s sphere \r
surfaceOrient constant/triSurface/sphere.stl \r
-inside ‘(0 -0.5 0)’ \r
constant/triSurface/sphere_orient.stlrunApplication \r
surfaceBooleanFeatures intersection cone_orient.stl sphere_orient.stlrunApplication foamyHexMesh
runApplication -s collapseFaceSet \r
collapseEdges -latestTime -collapseFaceSet indirectPatchFacesrunApplication -s collapseFaces \r
collapseEdges -latestTime -collapseFaces#——————————————————————————
実行年月:08/06/2023