motorBike_leakDetection

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

mkdir -p constant

cp -rf \r
“$FOAM_TUTORIALS”/resources/geometry/motorBike_leakDetection \r
constant/triSurface

runApplication surfaceFeatureExtract

runApplication blockMesh

runApplication decomposePar

#- Run with leak-detection (writes postProcessing/leakPath) but no closure
foamDictionary system/snappyHexMeshDict \r
-entry castellatedMeshControls/useLeakClosure -set false
runParallel -s leak snappyHexMesh
runParallel -s leak checkMesh
cleanTimeDirectories

#- Run with leak-detection (writes postProcessing/leakPath) and closure
foamDictionary system/snappyHexMeshDict \r
-entry castellatedMeshControls/useLeakClosure -set true
runParallel -s leak_and_closure snappyHexMesh
runParallel -s leak_and_closure checkMesh

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

実行年月:02/06/2024