Transferred copyright to the OpenFOAM Foundation
[OpenFOAM-2.0.x.git] / tutorials / heatTransfer / chtMultiRegionSimpleFoam / multiRegionHeaterRadiation / Allrun
blob5e6f624bb7d276c23d34fc8f879efb9392debe69
1 #!/bin/sh
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}
16 done
18 ## remove solid fields from fluid regions (important for post-processing)
19 for i in bottomAir topAir
21 rm -f 0*/$i/{Ypmma,Ychar}
22 done
24 for i in bottomAir topAir heater leftSolid rightSolid
26 changeDictionary -region $i > log.changeDictionary.$i 2>&1
27 done
30 for i in bottomAir topAir
32 faceAgglomerate -region $i -dict viewFactorsDict > log.faceAgglomerate.$i 2>&1
33 done
35 for i in bottomAir topAir
37 viewFactorsGen -region $i > log.viewFactorsGen.$i 2>&1
38 done
40 #-- Run on single processor
41 runApplication `getApplication`
43 ## Decompose
44 #for i in bottomAir topAir heater leftSolid rightSolid
45 #do
46 # decomposePar -region $i > log.decomposePar.$i 2>&1
47 #done
50 ## Run in parallel
51 #for i in bottomAir topAir
52 #do
53 # mpirun -np 4 faceAgglomerate -region $i -dict viewFactorsDict -parallel> log.faceAgglomerate.$i 2>&1
54 #done
56 #for i in bottomAir topAir
57 #do
58 # mpirun -np 4 viewFactorsGen -region $i -parallel > log.viewFactorsGen.$i 2>&1
59 #done
61 #runParallel `getApplication` 4
63 ## Reconstruct
64 #for i in bottomAir topAir heater leftSolid rightSolid
65 #do
66 # reconstructPar -region $i > log.reconstructPar.$i 2>&1
67 #done
70 echo
71 echo "creating files for paraview post-processing"
72 echo
73 paraFoam -touchAll
76 # ----------------------------------------------------------------- end-of-file