ENH: multi-region support for foamToEnsight (#2080)

- additional finite-area support too.
This commit is contained in:
Mark Olesen
2021-05-28 15:05:37 +02:00
parent 9f5df1adba
commit 3e87a46498
17 changed files with 719 additions and 284 deletions

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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
#------------------------------------------------------------------------------