initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / tutorials / heatTransfer / chtMultiRegionFoam / multiRegionHeater / Allrun
blob9acc76c4435899d0ad892702d7932540dc8174b4
1 #!/bin/sh
3 # Source tutorial run functions
4 . $WM_PROJECT_DIR/bin/tools/RunFunctions
6 rm -rf constant/polyMesh/sets
8 runApplication blockMesh
9 runApplication setSet -batch makeCellSets.setSet
11 rm -f constant/polyMesh/sets/*_old
13 runApplication setsToZones -noFlipMap
14 runApplication splitMeshRegions -cellZones
16 for i in bottomAir topAir heater leftSolid rightSolid
18 changeDictionary -region $i >& log.changeDictionary.$i
19 done
21 # remove fluid fields from solid regions (important for post-processing)
22 for i in heater leftSolid rightSolid
24 rm -f 0*/$i/{mut,alphat,epsilon,k,p,p,U}
25 done
27 # remove solid fields from fluid regions (important for post-processing)
28 for i in bottomAir topAir
30 rm -f 0*/$i/{cp,K}
31 done
34 #-- Run on single processor
35 #runApplication chtMultiRegionFoam
37 # Decompose
38 for i in bottomAir topAir heater leftSolid rightSolid
40 decomposePar -region $i >& log.decomposePar.$i
41 done
43 # Run
44 runParallel chtMultiRegionFoam 4
46 # Reconstruct
47 for i in bottomAir topAir heater leftSolid rightSolid
49 reconstructPar -region $i >& log.reconstructPar.$i
50 done
53 echo
54 echo "creating files for paraview post-processing"
55 echo
56 for i in bottomAir topAir heater leftSolid rightSolid
58 paraFoam -touch -region $i
59 done
61 # -----------------------------------------------------------------------------