Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / tutorials / heatTransfer / chtMultiRegionFoam / multiRegionHeater / Allrun
blob30952a60f12cbcfe40211418484f62c20ee87268
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/{mut,alphat,epsilon,k,p,U,p_rgh}
16 done
18 # remove solid fields from fluid regions (important for post-processing)
19 for i in bottomAir topAir
21 rm -f 0*/$i/{Ychar,Ypmma}
22 done
24 for i in bottomAir topAir heater leftSolid rightSolid
26 changeDictionary -region $i > log.changeDictionary.$i 2>&1
27 done
30 #-- Run on single processor
31 #runApplication `getApplication`
33 # Decompose
34 for i in bottomAir topAir heater leftSolid rightSolid
36 decomposePar -region $i > log.decomposePar.$i 2>&1
37 done
39 # Run
40 runParallel `getApplication` 4
42 # Reconstruct
43 for i in bottomAir topAir heater leftSolid rightSolid
45 reconstructPar -region $i > log.reconstructPar.$i2 >&1
46 done
49 echo
50 echo "creating files for paraview post-processing"
51 echo
52 for i in bottomAir topAir heater leftSolid rightSolid
54 paraFoam -touch -region $i
55 done
57 # ----------------------------------------------------------------- end-of-file