ENH: createPatch: handle multiple regions. Fixes #2386

Also #1361.
This commit is contained in:
mattijs
2022-03-02 13:10:29 +00:00
parent 1a55829ef9
commit a74b9ca763
50 changed files with 3648 additions and 126 deletions

View File

@ -0,0 +1,25 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
for region in $(foamListRegions)
do
runApplication -s $region blockMesh -region $region
done
#- createPatch creates patchFields out of dictionary only but only then
# moves faces to it. Hence most of its state (refValue, valueFraction etc)
# will not be sized. Make sure to not to fail construction so disable
# floating point error checking
#unset FOAM_SIGFPE
runApplication createPatch -allRegions -overwrite
restore0Dir
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
echo "End"
#------------------------------------------------------------------------------