24 lines
746 B
Bash
Executable File
24 lines
746 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
mkdir -p constant/triSurface
|
|
|
|
cp -f \
|
|
"$FOAM_TUTORIALS"/resources/geometry/fridgeA.eMesh \
|
|
constant/triSurface
|
|
|
|
runApplication blockMesh
|
|
|
|
## Serial
|
|
#runApplication snappyHexMesh -overwrite
|
|
#runApplication $(getApplication)
|
|
|
|
## Parallel
|
|
runApplication decomposePar -fileHandler collated
|
|
runParallel snappyHexMesh -overwrite -fileHandler collated
|
|
runApplication reconstructParMesh -constant -fileHandler collated
|
|
|
|
#------------------------------------------------------------------------------
|