Base class for engines and poly patches which provide mapping between two poly patches. More...


Classes | |
| struct | from |
| Restrict use of the mapper to certain configurations. More... | |
Public Types | |
| enum class | transformType { none , defaultNone , specified } |
| The type of the transformation permitted/required by this patch. More... | |
| enum class | moveUpdate { always , detect , never } |
| Enumeration for the condition that triggers re-calculation of the. More... | |
Public Member Functions | |
| TypeName ("mappedPatchBaseBase") | |
| Runtime type information. More... | |
| mappedPatchBaseBase (const polyPatch &) | |
| Construct from patch. More... | |
| mappedPatchBaseBase (const polyPatch &pp, const word &nbrRegionName, const word &nbrPatchName, const cyclicTransform &transform) | |
| Construct from components. More... | |
| mappedPatchBaseBase (const polyPatch &pp, const dictionary &dict, const transformType tt) | |
| Construct from dictionary. More... | |
| mappedPatchBaseBase (const polyPatch &, const mappedPatchBaseBase &) | |
| Construct as copy, resetting patch. More... | |
| virtual | ~mappedPatchBaseBase () |
| Destructor. More... | |
| const word & | nbrRegionName () const |
| Name of the region to map from. More... | |
| const word & | nbrPatchName () const |
| Name of the patch to map from. More... | |
| const transformer & | transform () const |
| The transformation between the patches. More... | |
| bool | sameRegion () const |
| Is the neighbour region the same as for this patch? More... | |
| bool | samePatch () const |
| Is the neighbour patch the same as this patch? More... | |
| bool | sameUntransformedPatch () const |
| Is the neighbour patch the same as this patch with no transform? More... | |
| bool | haveNbr () const |
| Is the neighbour available? More... | |
| const polyMesh & | nbrMesh () const |
| Get the mesh for the region to map from. More... | |
| const polyPatch & | nbrPolyPatch () const |
| Get the patch to map from. More... | |
| template<class PatchField , class FieldType > | |
| void | validateForField (const PatchField &field, const FieldType &iF, const dictionary &context, const label froms=from::any) const |
| Validate that the map is appropriate for the given. More... | |
| virtual void | write (Ostream &) const |
| Write as a dictionary. More... | |
| template<class PatchFieldType , class FieldType > | |
| void | validateMapForField (const PatchFieldType &field, const FieldType &iF, const dictionary &context, const label froms) |
| template<class PatchFieldType , class FieldType > | |
| void | validateForField (const PatchFieldType &field, const FieldType &iF, const dictionary &context, const label froms) const |
Static Public Member Functions | |
| template<class PatchField , class FieldType > | |
| static void | validateMapForField (const PatchField &field, const FieldType &iF, const dictionary &context, const label froms=from::any) |
| Validate that the map exists and is appropriate for the given. More... | |
| static bool | moving (const polyPatch &patch, const polyPatch &nbrPatch) |
| Return whether or not the patches have moved. More... | |
| static bool | specified (const dictionary &dict) |
| Return whether or not the given dictionary contains a. More... | |
Static Public Attributes | |
| static const NamedEnum< moveUpdate, 3 > | moveUpdateNames_ {"always", "detect", "never"} |
| Names of the move-update conditions. More... | |
Protected Attributes | |
| const polyPatch & | patch_ |
| Patch to map to. More... | |
| const coupleGroupIdentifier | coupleGroup_ |
| Couple group for the region/patch to map from. More... | |
| word | nbrRegionName_ |
| Name of the region to map from. More... | |
| word | nbrPatchName_ |
| Name of the patch to map from. More... | |
| cyclicTransform | transform_ |
| The transformation between the patches. More... | |
| const moveUpdate | moveUpdate_ |
| The condition that triggers re-calculation following motion. More... | |
Base class for engines and poly patches which provide mapping between two poly patches.
Example:
// The name of the region to map from. Optional. Defaults to the same
// region as the patch.
neighbourRegion region0;
// The name of the patch to map from
neighbourPatch movingWall;
// Couple group to specify the region and patch to map from. This is an
// alternative to specifying neighbourRegion and neighbourPatch
// directly, as shown above.
coupleGroup baffleGroup;
// The condition that triggers re-calculation following motion. Setting
// 'always' will re-calculate the mapping, 'never' will not, and
// 'detect' will compare the new and old points and re-calculate if
// there is any difference.
moveUpdate always;Definition at line 73 of file mappedPatchBaseBase.H.
|
strong |
The type of the transformation permitted/required by this patch.
| Enumerator | |
|---|---|
| none | |
| defaultNone | |
| specified | |
Definition at line 80 of file mappedPatchBaseBase.H.
|
strong |
Enumeration for the condition that triggers re-calculation of the.
mapping following mesh motion.
'always' will re-calculate the mapping, 'never' will not, and 'detect' will compare the new and old points and re-calculate if there is any difference.
The comparison that 'detect' does has an expense associated with it, so it should only really be used if the patch is both moving and static at different times. If the patch is always in motion or is fully stationary, then it is more efficient to specify 'always' or 'never'.
'always' is the default, as it is safest to assume that motion always affects the mapping.
| Enumerator | |
|---|---|
| always | |
| detect | |
| never | |
Definition at line 102 of file mappedPatchBaseBase.H.
| mappedPatchBaseBase | ( | const polyPatch & | pp | ) |
Construct from patch.
Definition at line 44 of file mappedPatchBaseBase.C.
| mappedPatchBaseBase | ( | const polyPatch & | pp, |
| const word & | nbrRegionName, | ||
| const word & | nbrPatchName, | ||
| const cyclicTransform & | transform | ||
| ) |
Construct from components.
Definition at line 55 of file mappedPatchBaseBase.C.
| mappedPatchBaseBase | ( | const polyPatch & | pp, |
| const dictionary & | dict, | ||
| const transformType | tt | ||
| ) |
Construct from dictionary.
Definition at line 72 of file mappedPatchBaseBase.C.
| mappedPatchBaseBase | ( | const polyPatch & | pp, |
| const mappedPatchBaseBase & | mpb | ||
| ) |
Construct as copy, resetting patch.
Definition at line 157 of file mappedPatchBaseBase.C.
|
virtual |
Destructor.
Definition at line 174 of file mappedPatchBaseBase.C.
| TypeName | ( | "mappedPatchBaseBase" | ) |
Runtime type information.
|
inline |
Name of the region to map from.
Definition at line 30 of file mappedPatchBaseBaseI.H.
References polyMesh::boundaryMesh(), mappedPatchBaseBase::coupleGroup_, IOobject::name(), mappedPatchBaseBase::nbrMesh(), mappedPatchBaseBase::nbrPatchName_, mappedPatchBaseBase::nbrRegionName_, mappedPatchBaseBase::patch_, and coupleGroupIdentifier::valid().
Referenced by nonConformalMappedPatchBase::calcOwner().


|
inline |
Name of the patch to map from.
Definition at line 46 of file mappedPatchBaseBaseI.H.
Referenced by nonConformalMappedPatchBase::calcOwner().

|
inline |
The transformation between the patches.
Definition at line 57 of file mappedPatchBaseBaseI.H.
References transformer::transform().

|
inline |
Is the neighbour region the same as for this patch?
Definition at line 63 of file mappedPatchBaseBaseI.H.
|
inline |
Is the neighbour patch the same as this patch?
Definition at line 69 of file mappedPatchBaseBaseI.H.
|
inline |
Is the neighbour patch the same as this patch with no transform?
Definition at line 75 of file mappedPatchBaseBaseI.H.
Referenced by mappedPatchBase::fromNeighbour().

| bool haveNbr | ( | ) | const |
Is the neighbour available?
Definition at line 180 of file mappedPatchBaseBase.C.
References polyMesh::boundaryMesh(), objectRegistry::foundObject(), polyBoundaryMesh::mesh(), mesh, and fvMesh::time().

| const Foam::polyMesh & nbrMesh | ( | ) | const |
Get the mesh for the region to map from.
Definition at line 188 of file mappedPatchBaseBase.C.
References polyMesh::boundaryMesh(), objectRegistry::lookupObject(), polyBoundaryMesh::mesh(), mesh, and fvMesh::time().
Referenced by mappedPatchBaseBase::nbrRegionName().


| const Foam::polyPatch & nbrPolyPatch | ( | ) | const |
Get the patch to map from.
Definition at line 196 of file mappedPatchBaseBase.C.
References polyMesh::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findIndex(), polyBoundaryMesh::names(), and patchi.
Referenced by nonConformalMappedPatchBase::nbrMappedPatch(), and mappedPatchBase::nbrPatchIsMapped().


|
static |
Validate that the map exists and is appropriate for the given.
set of permitted configurations
Referenced by coupledTemperatureFvPatchScalarField::coupledTemperatureFvPatchScalarField(), mappedFlowRateVelocityFvPatchVectorField::mappedFlowRateVelocityFvPatchVectorField(), mappedVelocityFluxFvPatchField::mappedVelocityFluxFvPatchField(), semiPermeableBaffleMassFractionFvPatchScalarField::semiPermeableBaffleMassFractionFvPatchScalarField(), and thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

| void validateForField | ( | const PatchField & | field, |
| const FieldType & | iF, | ||
| const dictionary & | context, | ||
| const label | froms = from::any |
||
| ) | const |
Validate that the map is appropriate for the given.
set of permitted configurations
Referenced by mappedValueFvPatchField< Type >::mappedValueFvPatchField().

Return whether or not the patches have moved.
Definition at line 215 of file mappedPatchBaseBase.C.
References polyPatch::boundaryMesh(), polyBoundaryMesh::mesh(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), polyMesh::moving(), polyMesh::oldPoints(), points, polyMesh::points(), and Foam::returnReduce().
Referenced by nonConformalMappedPatchBase::intersection(), nonConformalCyclicPolyPatch::intersection(), mappedPatchBase::mappingIsValid(), and nonConformalCyclicPolyPatch::rays().


|
static |
Return whether or not the given dictionary contains a.
mappedPatchBaseBase specification
Definition at line 257 of file mappedPatchBaseBase.C.
References dict, and dictionary::found().

|
virtual |
Write as a dictionary.
Reimplemented in nonConformalMappedWallPolyPatch, nonConformalMappedPatchBase, mappedWallPolyPatch, mappedPolyPatch, mappedPatchBase, mappedExtrudedWallPolyPatch, mappedExtrudedPatchBase, mappedFilmWallPolyPatch, and mappedFilmSurfacePolyPatch.
Definition at line 269 of file mappedPatchBaseBase.C.
References word::null, and Foam::writeEntryIfDifferent().
Referenced by mappedPatchBase::write(), and nonConformalMappedPatchBase::write().


| void validateMapForField | ( | const PatchFieldType & | field, |
| const FieldType & | iF, | ||
| const dictionary & | context, | ||
| const label | froms | ||
| ) |
Definition at line 32 of file mappedPatchBaseBaseTemplates.C.
References Foam::stringOps::breakIntoIndentedLines(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, OSstream::name(), patchIdentifier::name(), OStringStream::str(), and fileName::type().

| void validateForField | ( | const PatchFieldType & | field, |
| const FieldType & | iF, | ||
| const dictionary & | context, | ||
| const label | froms | ||
| ) | const |
Definition at line 65 of file mappedPatchBaseBaseTemplates.C.
References Foam::stringOps::breakIntoIndentedLines(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, OSstream::name(), OStringStream::str(), and fileName::type().

|
static |
Names of the move-update conditions.
Definition at line 110 of file mappedPatchBaseBase.H.
|
protected |
Patch to map to.
Definition at line 118 of file mappedPatchBaseBase.H.
Referenced by nonConformalMappedPatchBase::intersection(), nonConformalMappedPatchBase::nbrMappedPatch(), mappedPatchBaseBase::nbrRegionName(), mappedExtrudedPatchBase::patchFaceAreas(), and mappedPatchBase::patchFaceAreas().
|
protected |
Couple group for the region/patch to map from.
Definition at line 121 of file mappedPatchBaseBase.H.
Referenced by mappedPatchBaseBase::nbrRegionName().
|
mutableprotected |
Name of the region to map from.
Definition at line 124 of file mappedPatchBaseBase.H.
Referenced by nonConformalMappedPatchBase::nbrMappedPatch(), and mappedPatchBaseBase::nbrRegionName().
|
mutableprotected |
Name of the patch to map from.
Definition at line 127 of file mappedPatchBaseBase.H.
Referenced by nonConformalMappedPatchBase::nbrMappedPatch(), and mappedPatchBaseBase::nbrRegionName().
|
mutableprotected |
The transformation between the patches.
Definition at line 130 of file mappedPatchBaseBase.H.
Referenced by mappedPatchBase::fromNeighbour().
|
protected |
The condition that triggers re-calculation following motion.
Definition at line 133 of file mappedPatchBaseBase.H.