2 cd ${0%/*} ||
exit 1 # run from this directory
5 # Source tutorial run functions
6 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
8 runApplication blockMesh
9 runApplication setSet
-batch makeCellSets.setSet
10 runApplication splitMeshRegions
-cellZones -overwrite
12 # remove fluid fields from solid regions (important for post-processing)
13 for i
in heater leftSolid rightSolid
15 rm -f 0*/$i/{mut
,alphat
,epsilon
,k
,p
,U
,p_rgh
}
18 # remove solid fields from fluid regions (important for post-processing)
19 for i
in bottomAir topAir
21 rm -f 0*/$i/{Ychar
,Ypmma
}
24 for i
in bottomAir topAir heater leftSolid rightSolid
26 changeDictionary
-region $i > log.changeDictionary.
$i 2>&1
30 #-- Run on single processor
31 #runApplication `getApplication`
34 for i
in bottomAir topAir heater leftSolid rightSolid
36 decomposePar
-region $i > log.decomposePar.
$i 2>&1
40 runParallel
`getApplication` 4
43 for i
in bottomAir topAir heater leftSolid rightSolid
45 reconstructPar
-region $i > log.reconstructPar.
$i2 >&1
50 echo "creating files for paraview post-processing"
52 for i
in bottomAir topAir heater leftSolid rightSolid
54 paraFoam
-touch -region $i
57 # ----------------------------------------------------------------- end-of-file