mappedWall: Permit transformation

This change relaxes the previous restriction that mappedWall patches
cannot have transformation. It permits cyclic multi-region simulations
in which the cyclic plane lies on the interface between regions.

The mappedWall still differs from the mapped patch in that it is assumed
to be untransformed unless a transformation is explicitly specified. The
mapped patch, by contrast, will attempt to automatically calculate a
transformation from the geometry of the patches in the same way as is
done for cyclics.
This commit is contained in:
Will Bainbridge
2023-05-09 11:57:02 +01:00
parent cb610cf060
commit 472451a0ca
4 changed files with 6 additions and 11 deletions

View File

@ -369,10 +369,10 @@ Foam::mappedExtrudedPatchBase::mappedExtrudedPatchBase
(
const polyPatch& pp,
const dictionary& dict,
const bool transformIsNone
const bool defaultTransformIsNone
)
:
mappedPatchBase(pp, dict, transformIsNone),
mappedPatchBase(pp, dict, defaultTransformIsNone),
isExtrudedRegion_(dict.lookup<bool>("isExtrudedRegion"))
{}

View File

@ -106,7 +106,7 @@ public:
(
const polyPatch& pp,
const dictionary& dict,
const bool transformisNone
const bool defaultTransformIsNone
);
//- Construct as copy, resetting the boundary mesh

View File

@ -366,7 +366,7 @@ Foam::mappedPatchBase::mappedPatchBase
(
const polyPatch& pp,
const dictionary& dict,
const bool transformIsNone
const bool defaultTransformIsNone
)
:
patch_(pp),
@ -386,12 +386,7 @@ Foam::mappedPatchBase::mappedPatchBase
: dict.lookupOrDefault<bool>("samePatch", false) ? pp.name()
: dict.lookupBackwardsCompatible<word>({"neighbourPatch", "samplePatch"})
),
transform_
(
transformIsNone
? cyclicTransform(true)
: cyclicTransform(dict, false)
),
transform_(cyclicTransform(dict, defaultTransformIsNone)),
usingTree_(!dict.found("method") && !dict.found("sampleMode")),
treeMapPtr_(nullptr),
treeNbrPatchFaceIndices_(),

View File

@ -183,7 +183,7 @@ public:
(
const polyPatch& pp,
const dictionary& dict,
const bool transformisNone
const bool defaultTransformIsNone
);
//- Construct as copy, resetting patch