Uses a system/caseProperties file to select templates from etc/caseDicts/createZeroDirectoryTemplates to enable high-level setup of a case. See - etc/caseDicts/createZeroDirectoryTemplates - tutorials/preProcessing/createZeroDirectory
26 lines
699 B
Bash
Executable File
26 lines
699 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# copy motorbike surface from resources folder
|
|
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
|
|
runApplication surfaceFeatureExtract
|
|
|
|
runApplication blockMesh
|
|
|
|
runApplication decomposePar
|
|
runParallel snappyHexMesh 6 -overwrite
|
|
|
|
runParallel createZeroDirectory 6
|
|
|
|
runParallel patchSummary 6
|
|
runParallel potentialFoam 6 -noFunctionObjects
|
|
runParallel $(getApplication) 6
|
|
|
|
runApplication reconstructParMesh -constant
|
|
runApplication reconstructPar -latestTime
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|