33 lines
1.1 KiB
Bash
Executable File
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
|
|
|
|
#------------------------------------------------------------------------------
|