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/{rho
,mut
,alphat
,epsilon
,k
,p
,U
,p_rgh
,Qr
,G
,IDefault
}
18 ## remove solid fields from fluid regions (important for post-processing)
19 for i
in bottomAir topAir
21 rm -f 0*/$i/{Ypmma
,Ychar
}
24 for i
in bottomAir topAir heater leftSolid rightSolid
26 changeDictionary
-region $i > log.changeDictionary.
$i 2>&1
30 for i
in bottomAir topAir
32 faceAgglomerate
-region $i -dict viewFactorsDict
> log.faceAgglomerate.
$i 2>&1
35 for i
in bottomAir topAir
37 viewFactorsGen
-region $i > log.viewFactorsGen.
$i 2>&1
40 #-- Run on single processor
41 runApplication
`getApplication`
44 #for i in bottomAir topAir heater leftSolid rightSolid
46 # decomposePar -region $i > log.decomposePar.$i 2>&1
51 #for i in bottomAir topAir
53 # mpirun -np 4 faceAgglomerate -region $i -dict viewFactorsDict -parallel> log.faceAgglomerate.$i 2>&1
56 #for i in bottomAir topAir
58 # mpirun -np 4 viewFactorsGen -region $i -parallel > log.viewFactorsGen.$i 2>&1
61 #runParallel `getApplication` 4
64 #for i in bottomAir topAir heater leftSolid rightSolid
66 # reconstructPar -region $i > log.reconstructPar.$i 2>&1
71 echo "creating files for paraview post-processing"
76 # ----------------------------------------------------------------- end-of-file