Upgrade case file headers
[foam-extend-3.2.git] / tutorials / heatTransfer / chtMultiRegionFoam / snappyMultiRegionHeater / Allrun
blobaa68b8f4d33e8a8f62406a8e03dfaabdece674d7
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 snappyHexMesh -overwrite
10 runApplication splitMeshRegions -cellZones
12 # copy fields
13 cp 0/* 0.001/bottomAir/
14 cp 0/* 0.001/heater/
15 cp 0/* 0.001/leftSolid/
16 cp 0/* 0.001/rightSolid/
17 cp 0/* 0.001/topAir/
19 # remove fluid fields from solid regions (important for post-processing)
20 for i in heater leftSolid rightSolid
22 rm -f 0*/$i/{mut,alphat,epsilon,k,p,p,U}
23 done
25 # remove solid fields from fluid regions (important for post-processing)
26 for i in bottomAir topAir
28 rm -f 0*/$i/{cp,K,rho}
29 done
31 for i in bottomAir topAir heater leftSolid rightSolid
33 changeDictionary -region $i > log.changeDictionary.$i 2>&1
34 done
36 #-- Run on single processor
37 runApplication chtMultiRegionFoam
40 ## Decompose
41 #for i in bottomAir topAir heater leftSolid rightSolid
42 #do
43 # decomposePar -region $i > log.decomposePar.$i 2>&1
44 #done
46 ## Run
47 #runParallel chtMultiRegionFoam 4
49 ## Reconstruct
50 #for i in bottomAir topAir heater leftSolid rightSolid
51 #do
52 # reconstructPar -region $i > log.reconstructPar.$i 2>&1
53 #done
56 echo
57 echo "creating files for paraview post-processing"
58 echo
59 for i in bottomAir topAir heater leftSolid rightSolid
61 paraFoam -touch -region $i
62 done
64 # -----------------------------------------------------------------------------