2 # Source tutorial run functions
3 . @FF_DATA_DIR@
/shellFunctions
/RunFunctions
5 # Alltest changes this to yes...
6 export FREEFOAM_TEST_MODE
=no
7 if [ "$FREEFOAM_TEST_MODE" == "yes" ]; then
8 # Alltest changes this to the top test directory...
9 export FREEFOAM_CONFIG_DIR
='${TEST_CONFIG_DIR}'
12 rm -rf constant
/polyMesh
/sets
13 runApplication blockMesh
14 runApplication setSet
-batch makeCellSets.setSet
15 rm -f constant
/polyMesh
/sets
/*_old
16 runApplication setsToZones
-noFlipMap
17 runApplication splitMeshRegions
-cellZones
19 for i
in bottomAir topAir heater leftSolid rightSolid
21 runApplication
-l log.changeDictionary.
$i changeDictionary
-region $i
24 # remove fluid fields from solid regions (important for post-processing)
25 for i
in heater leftSolid rightSolid
27 rm -f 0*/$i/{mut
,alphat
,epsilon
,k
,p
,p
,U
}
30 # remove solid fields from fluid regions (important for post-processing)
31 for i
in bottomAir topAir
37 #-- Run on single processor
38 #runApplication chtMultiRegionFoam
41 for i
in bottomAir topAir heater leftSolid rightSolid
43 runApplication
-l log.decomposePar.
$i decomposePar
-region $i
47 runParallel chtMultiRegionFoam
4
50 for i
in bottomAir topAir heater leftSolid rightSolid
52 runApplication
-l log.reconstructPar.
$i reconstructPar
-region $i
57 echo "creating files for paraview post-processing"
59 for i
in bottomAir topAir heater leftSolid rightSolid
61 touch "multiRegionHeater{$i}.OpenFOAM"
62 echo "created multiRegionHeater{$i}.OpenFOAM" > log.paraFoam.
$i
65 # -----------------------------------------------------------------------------