Transferred copyright to the OpenFOAM Foundation
[OpenFOAM-2.0.x.git] / tutorials / heatTransfer / chtMultiRegionSimpleFoam / multiRegionHeater / Allrun
blobf473e787d0f771ac09391c559291bae2454308fb
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/{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 #-- Run on single processor
31 runApplication `getApplication`
33 ## Decompose
34 #for i in bottomAir topAir heater leftSolid rightSolid
35 #do
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
44 #do
45 # reconstructPar -region $i > log.reconstructPar.$i 2>&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