mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- remove inappropriate fields from the regions
(only important or useful for post-processing)
- Allclean script had missed some files
32 lines
780 B
Bash
Executable File
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
|