Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / tutorials / heatTransfer / buoyantBaffleSimpleFoam / circuitBoardCooling / Allrun
blobef3b6603482809bcb0987a0e11c4a37df13b78e2
1 #!/bin/sh
2 . $WM_PROJECT_DIR/bin/tools/RunFunctions
4 # Get application name
5 application=`getApplication`
7 cp -r 0.org 0
8 runApplication blockMesh
10 runApplication setSet -batch baffle.setSet
12 unset FOAM_SETNAN
13 unset FOAM_SIGFPE
15 # Add the patches for the baffles
16 runApplication changeDictionary -literalRE
17 rm log.changeDictionary
19 # Create first baffle
20 createBaffles baffleFaces '(baffle1Wall_0 baffle1Wall_1)' -overwrite > log.createBaffles 2>&1
21 # Create second baffle
22 createBaffles baffleFaces2 '(baffle2Wall_0 baffle2Wall_1)' -overwrite > log.createBaffles 2>&1
24 # Reset proper values at the baffles
25 runApplication changeDictionary
27 runApplication $application