openfoam/tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun.pre
2021-06-08 20:15:47 +00:00

30 lines
779 B
Bash
Executable File

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
cp -rf \
"$FOAM_TUTORIALS"/resources/geometry/rotatingFanInRoom \
constant/triSurface
# - meshing
runApplication surfaceFeatureExtract
runApplication blockMesh
runApplication snappyHexMesh -overwrite
# - force removal of fields generated by snappy
rm -rf 0
# renumber the mesh
runApplication renumberMesh -overwrite
# - create the inlet/outlet and AMI patches
runApplication createPatch -overwrite
# - set the initial fields
restore0Dir
#------------------------------------------------------------------------------