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
|
cleanCase
|
||||||
rm -rf VTK
|
rm -rf VTK
|
||||||
|
|
||||||
rm -rf constant/cellToRegion constant/polyMesh/sets
|
rm -rf constant/cellToRegion constant/polyMesh/sets
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,30 +2,41 @@
|
|||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
rm -r constant/polyMesh/sets
|
rm -rf constant/polyMesh/sets
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication setSet -batch makeCellSets.setSet
|
runApplication setSet -batch makeCellSets.setSet
|
||||||
rm constant/polyMesh/sets/*_old
|
|
||||||
|
rm -f constant/polyMesh/sets/*_old
|
||||||
|
|
||||||
runApplication setsToZones -noFlipMap
|
runApplication setsToZones -noFlipMap
|
||||||
runApplication splitMeshRegions -cellZones
|
runApplication splitMeshRegions -cellZones
|
||||||
|
|
||||||
changeDictionary -region bottomAir
|
for i in bottomAir topAir heater leftSolid rightSolid
|
||||||
changeDictionary -region topAir
|
do
|
||||||
changeDictionary -region heater
|
changeDictionary -region $i
|
||||||
changeDictionary -region leftSolid
|
done
|
||||||
changeDictionary -region rightSolid
|
|
||||||
|
|
||||||
|
# remove fluid fields from solid regions (important for post-processing)
|
||||||
# remove fluid fields from solid regions (for post-processing only)
|
|
||||||
for i in heater leftSolid rightSolid
|
for i in heater leftSolid rightSolid
|
||||||
do
|
do
|
||||||
rm -f 0*/$i/{epsilon,k,p,pd,U}
|
rm -f 0*/$i/{epsilon,k,p,pd,U}
|
||||||
done
|
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
|
for i in bottomAir topAir
|
||||||
do
|
do
|
||||||
rm -f 0*/$i/{cp,K}
|
rm -f 0*/$i/{cp,K}
|
||||||
done
|
done
|
||||||
|
|
||||||
runApplication chtMultiRegionFoam
|
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