mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
cht tutorial - use 'paraFoam -touch' to create files for paraview
This commit is contained in:
@ -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
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user