3 # Source tutorial run functions
4 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
6 rm -rf constant
/polyMesh
/sets
8 runApplication blockMesh
9 runApplication snappyHexMesh
-overwrite
10 runApplication splitMeshRegions
-cellZones
13 cp 0/* 0.001/bottomAir
/
15 cp 0/* 0.001/leftSolid
/
16 cp 0/* 0.001/rightSolid
/
19 # remove fluid fields from solid regions (important for post-processing)
20 for i
in heater leftSolid rightSolid
22 rm -f 0*/$i/{mut
,alphat
,epsilon
,k
,p
,p
,U
}
25 # remove solid fields from fluid regions (important for post-processing)
26 for i
in bottomAir topAir
28 rm -f 0*/$i/{cp,K
,rho
}
31 for i
in bottomAir topAir heater leftSolid rightSolid
33 changeDictionary
-region $i > log.changeDictionary.
$i 2>&1
36 #-- Run on single processor
37 runApplication chtMultiRegionFoam
41 #for i in bottomAir topAir heater leftSolid rightSolid
43 # decomposePar -region $i > log.decomposePar.$i 2>&1
47 #runParallel chtMultiRegionFoam 4
50 #for i in bottomAir topAir heater leftSolid rightSolid
52 # reconstructPar -region $i > log.reconstructPar.$i 2>&1
57 echo "creating files for paraview post-processing"
59 for i
in bottomAir topAir heater leftSolid rightSolid
61 paraFoam
-touch -region $i
64 # -----------------------------------------------------------------------------