3 # Source tutorial run functions
4 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
6 rm -rf constant
/polyMesh
/sets
8 runApplication blockMesh
9 runApplication setSet
-batch makeCellSets.setSet
11 rm -f constant
/polyMesh
/sets
/*_old
13 runApplication setsToZones
-noFlipMap
14 runApplication splitMeshRegions
-cellZones
16 for i
in bottomAir topAir heater leftSolid rightSolid
18 changeDictionary
-region $i >& log.changeDictionary.
$i
21 # remove fluid fields from solid regions (important for post-processing)
22 for i
in heater leftSolid rightSolid
24 rm -f 0*/$i/{mut
,alphat
,epsilon
,k
,p
,p
,U
}
27 # remove solid fields from fluid regions (important for post-processing)
28 for i
in bottomAir topAir
34 #-- Run on single processor
35 #runApplication chtMultiRegionFoam
38 for i
in bottomAir topAir heater leftSolid rightSolid
40 decomposePar
-region $i >& log.decomposePar.
$i
44 runParallel chtMultiRegionFoam
4
47 for i
in bottomAir topAir heater leftSolid rightSolid
49 reconstructPar
-region $i >& log.reconstructPar.
$i
54 echo "creating files for paraview post-processing"
56 for i
in bottomAir topAir heater leftSolid rightSolid
58 paraFoam
-touch -region $i
61 # -----------------------------------------------------------------------------