openfoam/tutorials/incompressible/pimpleFoam/laminar/contaminatedDroplet2D/Allrun
Mark Olesen 7f748bd5fd ENH: CleanFunctions refinements
- include constant/faMesh cleanup (cleanFaMesh) as part of standard
  cleanCase

- simplify cleanPolyMesh function to now just warn about old
  constant/polyMesh/blockMeshDict but not try to remove anything

- cleanup cellDist.vtu (decomposePar -dry-run) as well

ENH: foamRunTutorials - fallback to Allrun-parallel, Allrun-serial

TUT: call m4 with file argument instead of redirected stdin

TUT: adjust suffixes on decomposeParDict variants
2022-06-09 15:34:17 +02:00

27 lines
612 B
Bash
Executable File

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
if ! canCompile
then
echo "skipping tutorial $PWD"
exit 0
fi
restore0Dir
m4 system/blockMeshDict.m4 > system/blockMeshDict
runApplication blockMesh
runApplication makeFaMesh
(cd makePerturbation && wmake)
runApplication makePerturbation
runApplication $(getApplication)
#------------------------------------------------------------------------------