An extruded region is now contiguous even when specified with multiple face zones. Edges that border faces in different zones now extrude into internal faces, rather than a pair of boundary faces. Different zones now result only in different mapped patches in the extruded and primary meshes. This means a mesh can be created for a single contiguous extruded region spanning multiple patches. This might be necessary if, for example, a film region is needed across multiple walls with differing thermal boundary conditions. Disconnected extruded regions can still be constructed by running the extrudeToRegionMesh utility muiliple times. The mapped patches created to couple the extruded regions now have symmetric names similar to those created by splitMeshRegions. For example, if the mapped patch in the primary region is called "region0_to_extrudedRegion_f0", then the corresponding patch in the extruded region is called "extrudedRegion_to_region0_f0" (f0, in this example is the face zone from which the region was extruded). Offsetting of the top patch is now handled automatically by a new mappedExtrudedWallPolyPatch. This refers to the bottom patch and automatically calculates the sampling offsets by doing a wave across the extruded mesh layers. This prevents the need to store the offsets in the patch itself, and makes it possible for the patch to undergo mesh changes without adding additional functions to the polyPatch (mapping constructors, autoMap and rmap methods, etc ...).
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class volScalarField;
|
|
location "0";
|
|
object H2O;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [0 0 0 0 0 0 0];
|
|
|
|
internalField uniform 0;
|
|
|
|
boundaryField
|
|
{
|
|
#includeEtc "caseDicts/setConstraintTypes"
|
|
|
|
"(sides|frontAndBack)"
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
|
|
top
|
|
{
|
|
type inletOutlet;
|
|
inletValue $internalField;
|
|
value $internalField;
|
|
}
|
|
|
|
"region0_to_wallFilm_.*"
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|