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:
@ -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"))
|
||||
{}
|
||||
|
||||
|
||||
@ -106,7 +106,7 @@ public:
|
||||
(
|
||||
const polyPatch& pp,
|
||||
const dictionary& dict,
|
||||
const bool transformisNone
|
||||
const bool defaultTransformIsNone
|
||||
);
|
||||
|
||||
//- Construct as copy, resetting the boundary mesh
|
||||
|
||||
@ -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_(),
|
||||
|
||||
@ -183,7 +183,7 @@ public:
|
||||
(
|
||||
const polyPatch& pp,
|
||||
const dictionary& dict,
|
||||
const bool transformisNone
|
||||
const bool defaultTransformIsNone
|
||||
);
|
||||
|
||||
//- Construct as copy, resetting patch
|
||||
|
||||
Reference in New Issue
Block a user