openfoam/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel
Mark Olesen 8bf98e74da TUT: added tutorial files (issue #671)
- also cleanup by using 0.orig/ directory.
- use foamListRegions to obtain region names
2017-12-19 14:40:33 +01:00

37 lines
953 B
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# create the underlying block mesh
runApplication blockMesh
# create the set for the obstacles
runApplication topoSet
# mesh processing to generate the inlet duct
runApplication subsetMesh c0 -patch walls -overwrite
# split into the cabin, ice and exterior regions
runApplication splitMeshRegions -cellZones -overwrite
# create register face and cell zones
rm log.topoSet
runApplication topoSet -region cabin -dict system/topoSetDictRegister
# set the initial fields
restore0Dir
# Decompose
runApplication decomposePar -allRegions -constant
runParallel $(getApplication)
# Reconstruct
runApplication reconstructPar -allRegions
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------