mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: multi-region support for foamToEnsight (#2080)
- additional finite-area support too.
This commit is contained in:
@ -3,10 +3,11 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
decompDict="-decomposeParDict system/decomposeParDict-procBoundary8"
|
||||
fileHandler="-fileHandler collated"
|
||||
# reconstruct=true
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication $decompDict decomposePar $fileHandler
|
||||
|
||||
@ -14,6 +15,13 @@ runParallel $decompDict makeFaMesh $fileHandler
|
||||
|
||||
runParallel $decompDict $(getApplication) $fileHandler
|
||||
|
||||
runApplication reconstructPar $fileHandler
|
||||
runParallel $decompDict foamToEnsight -finite-area
|
||||
|
||||
if [ "$reconstruct" = true ]
|
||||
then
|
||||
runApplication reconstructPar $fileHandler
|
||||
else
|
||||
echo "Skipping reconstructPar $fileHandler"
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -24,8 +24,10 @@ done
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
echo
|
||||
echo "Use paraFoam -touch-all to create files for paraview post-processing"
|
||||
echo
|
||||
runApplication foamToEnsight -allRegions
|
||||
|
||||
# echo
|
||||
# echo "Use paraFoam -touch-all to create files for paraview post-processing"
|
||||
# echo
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -28,11 +28,13 @@ done
|
||||
# Run
|
||||
runParallel $(getApplication)
|
||||
|
||||
runParallel foamToEnsight -allRegions
|
||||
|
||||
# Reconstruct
|
||||
runApplication reconstructPar -allRegions
|
||||
|
||||
echo
|
||||
echo "Use paraFoam -touch-all to create files for paraview post-processing"
|
||||
echo
|
||||
# echo
|
||||
# echo "Use paraFoam -touch-all to create files for paraview post-processing"
|
||||
# echo
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user