2 cd ${0%/*} ||
exit 1 # run from this directory
5 # Source tutorial run functions
6 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
8 rm -rf constant
/polyMesh
/sets
10 runApplication blockMesh
11 runApplication setSet
-batch makeCellSets.setSet
13 rm -f constant
/polyMesh
/sets
/*_old
15 runApplication setsToZones
-noFlipMap
16 runApplication splitMeshRegions
-cellZones -overwrite
18 # remove fluid fields from solid regions (important for post-processing)
19 for i
in heater leftSolid rightSolid
21 rm -f 0*/$i/{mut
,alphat
,epsilon
,k
,p
,p
,U
}
24 # remove solid fields from fluid regions (important for post-processing)
25 for i
in bottomAir topAir
27 rm -f 0*/$i/{cp,K
,rho
}
30 for i
in bottomAir topAir heater leftSolid rightSolid
32 changeDictionary
-region $i > log.changeDictionary.
$i 2>&1
36 #-- Run on single processor
37 runApplication chtMultiRegionSimpleFoam
40 #for i in bottomAir topAir heater leftSolid rightSolid
42 # decomposePar -region $i > log.decomposePar.$i 2>&1
46 #runParallel chtMultiRegionSimpleFoam 4
49 #for i in bottomAir topAir heater leftSolid rightSolid
51 # reconstructPar -region $i > log.reconstructPar.$i 2>&1
56 echo "creating files for paraview post-processing"
58 for i
in bottomAir topAir heater leftSolid rightSolid
60 paraFoam
-touch -region $i
63 # ----------------------------------------------------------------- end-of-file