Files
OpenFOAM-6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun
Will Bainbridge a963f82dbf chtMultiRegionFoam: Simplified multiRegionHeater tutorial
The changeDictonary setup has been removed and replaced with a more
typical boundary condition setup. Dictionary variables and wildcards
have been used to reduce repetition of the simulation parameters.
2018-05-30 16:49:26 +01:00

27 lines
640 B
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Meshing
runApplication blockMesh
runApplication topoSet
runApplication decomposePar -copyZero
runParallel splitMeshRegions -cellZones -overwrite
# Simulation
runParallel $(getApplication)
# Reconstruct
for region in bottomWater topAir heater leftSolid rightSolid
do
runApplication -s $region reconstructParMesh -constant -region $region
done
runApplication reconstructPar -allRegions
# Post-process
paraFoam -touchAll
#------------------------------------------------------------------------------