Upgrade case file headers
[foam-extend-3.2.git] / tutorials / heatTransfer / chtMultiRegionSimpleFoam / multiRegionHeater / Allrun
blobbb2152e8beb676d0970f0bc3e090bba4a15d1a08
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 rm -rf constant/polyMesh/sets
10 runApplication blockMesh
11 runApplication setSet -batch makeCellSets.setSet
13 rm -f constant/polyMesh/sets/*_old
15 runApplication setsToZones -noFlipMap
16 runApplication splitMeshRegions -cellZones -overwrite
18 # remove fluid fields from solid regions (important for post-processing)
19 for i in heater leftSolid rightSolid
21 rm -f 0*/$i/{mut,alphat,epsilon,k,p,p,U}
22 done
24 # remove solid fields from fluid regions (important for post-processing)
25 for i in bottomAir topAir
27 rm -f 0*/$i/{cp,K,rho}
28 done
30 for i in bottomAir topAir heater leftSolid rightSolid
32 changeDictionary -region $i > log.changeDictionary.$i 2>&1
33 done
36 #-- Run on single processor
37 runApplication chtMultiRegionSimpleFoam
39 ## Decompose
40 #for i in bottomAir topAir heater leftSolid rightSolid
41 #do
42 # decomposePar -region $i > log.decomposePar.$i 2>&1
43 #done
45 ## Run
46 #runParallel chtMultiRegionSimpleFoam 4
48 ## Reconstruct
49 #for i in bottomAir topAir heater leftSolid rightSolid
50 #do
51 # reconstructPar -region $i > log.reconstructPar.$i 2>&1
52 #done
55 echo
56 echo "creating files for paraview post-processing"
57 echo
58 for i in bottomAir topAir heater leftSolid rightSolid
60 paraFoam -touch -region $i
61 done
63 # ----------------------------------------------------------------- end-of-file