openfoam/tutorials/heatTransfer/chtMultiRegionSimpleFoam/cpuCabinet/Allrun.pre
2021-08-03 20:08:49 +00:00

21 lines
712 B
Bash
Executable File

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
# copy cpu surface from resources directory
cp -rf \
"$FOAM_TUTORIALS"/resources/geometry/cpuCabinet \
constant/triSurface
runApplication blockMesh
runApplication surfaceFeatureExtract
runApplication snappyHexMesh -overwrite
runApplication $decompDict decomposePar
restore0Dir -processor
runParallel splitMeshRegions -cellZones -overwrite
runParallel topoSet -region domain0
#------------------------------------------------------------------------------