openfoam/tutorials/mesh/snappyHexMesh/motorBike_leakDetection/Allrun
mattijs c5cede38aa ENH: snappyHexMesh: early exit of leak detection. See #2403
Changed behaviour to make it the default
2022-06-09 11:34:32 +01:00

33 lines
1.1 KiB
Bash
Executable File

#!/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 \
"$FOAM_TUTORIALS"/resources/geometry/motorBike_leakDetection \
constant/triSurface
runApplication surfaceFeatureExtract
runApplication blockMesh
runApplication decomposePar
#- Run with leak-detection (writes postProcessing/leakPath) but no closure
foamDictionary system/snappyHexMeshDict \
-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 \
-entry castellatedMeshControls.useLeakClosure -set true
runParallel -s leak_and_closure snappyHexMesh
runParallel -s leak_and_closure checkMesh
#------------------------------------------------------------------------------