Skip to content
Snippets Groups Projects
Commit 501c558f authored by Mark Olesen's avatar Mark Olesen
Browse files

cht tutorial - use 'paraFoam -touch' to create files for paraview

parent 9427a34c
Branches
Tags
No related merge requests found
......@@ -5,6 +5,6 @@
cleanCase
rm -rf VTK
rm -rf constant/cellToRegion constant/polyMesh/sets
# -----------------------------------------------------------------------------
......@@ -2,30 +2,41 @@
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
rm -r constant/polyMesh/sets
rm -rf constant/polyMesh/sets
runApplication blockMesh
runApplication setSet -batch makeCellSets.setSet
rm constant/polyMesh/sets/*_old
rm -f 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
for i in bottomAir topAir heater leftSolid rightSolid
do
changeDictionary -region $i
done
# remove fluid fields from solid regions (for post-processing only)
# remove fluid fields from solid regions (important for post-processing)
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)
# remove solid fields from fluid regions (important for post-processing)
for i in bottomAir topAir
do
rm -f 0*/$i/{cp,K}
done
runApplication chtMultiRegionFoam
echo
echo "creating files for paraview post-processing"
echo
for i in bottomAir topAir heater leftSolid rightSolid
do
paraFoam -touch -region $i
done
# -----------------------------------------------------------------------------
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment