Files
OpenFOAM-12/tutorials/modules/multiRegion/film/rivuletBox/Allrun
Henry Weller f850266cdf extrudeToRegionMesh: Added 'intrude' option
With the new film implementation the single cell layer film region is extruded
into (overlapping with) the primary/fluid region which can now be generated with
extrudeToRegionMesh using the new 'intrude' option, e.g. for the
tutorials/modules/multiRegion/film/splashPanel case the extrudeToRegionMeshDict
contains:

region          film;

patches         (film);

extrudeModel    linearNormal;

intrude         yes;

adaptMesh       no;

patchTypes      (mappedExtrudedWall);
patchNames      (film);

regionPatchTypes   (filmWall);
regionPatchNames   (wall);

regionOppositePatchTypes    (mappedFilmSurface);
regionOppositePatchNames    (surface);

nLayers         1;

expansionRatio  1;

linearNormalCoeffs
{
    thickness       0.002;
}
2023-05-02 17:22:03 +01:00

46 lines
1.3 KiB
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh -region box
runApplication -s panel extrudeToRegionMesh \
-dict system/extrudeToRegionMeshDict.panel \
-region box -overwrite
runApplication -s film extrudeToRegionMesh \
-dict system/extrudeToRegionMeshDict.film \
-region panel -overwrite
# Add the coupling between box and film
# Third-region coupling is not currently supported by extrudeToRegionMesh
runApplication -s box foamDictionary -set \
"entry0/film/type=mappedExtrudedWall, \
entry0/film/neighbourRegion=film, \
entry0/film/neighbourPatch=surface" \
constant/box/polyMesh/boundary
runApplication -s film foamDictionary -set \
"entry0/surface/type=mappedFilmSurface, \
entry0/surface/neighbourRegion=box, \
entry0/surface/neighbourPatch=film, \
entry0/surface/oppositePatch=wall" \
constant/film/polyMesh/boundary
printf "\n%s\n" "Creating files for paraview post-processing"
paraFoam -touchAll
echo
# Serial run
#runApplication $(getApplication)
# Parallel run
runApplication decomposePar -allRegions
runParallel $(getApplication)
runApplication reconstructPar -allRegions
#------------------------------------------------------------------------------