Files
openfoam/tutorials/chtMultiRegionFoam/multiRegionHeater/Allrun
Mark Olesen a99632d441 cht tutorial tidy up
- remove inappropriate fields from the regions
    (only important or useful for post-processing)
  - Allclean script had missed some files
2008-08-08 22:38:25 +02:00

32 lines
780 B
Bash
Executable File

#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
rm -r constant/polyMesh/sets
runApplication blockMesh
runApplication setSet -batch makeCellSets.setSet
rm constant/polyMesh/sets/*_old
runApplication setsToZones -noFlipMap
runApplication splitMeshRegions -cellZones
changeDictionary -region bottomAir
changeDictionary -region topAir
changeDictionary -region heater
changeDictionary -region leftSolid
changeDictionary -region rightSolid
# remove fluid fields from solid regions (for post-processing only)
for i in heater leftSolid rightSolid
do
rm -f 0*/$i/{epsilon,k,p,pd,U}
done
# remove solid fields from fluid regions (for post-processing only)
for i in bottomAir topAir
do
rm -f 0*/$i/{cp,K}
done
runApplication chtMultiRegionFoam