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 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 bool transformisNone) | |
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 | specified (const dictionary &dict) |
Return whether or not the given dictionary contains a. 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... | |
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;
Definition at line 66 of file mappedPatchBaseBase.H.
mappedPatchBaseBase | ( | const polyPatch & | pp | ) |
Construct from patch.
Definition at line 39 of file mappedPatchBaseBase.C.
mappedPatchBaseBase | ( | const polyPatch & | pp, |
const word & | nbrRegionName, | ||
const word & | nbrPatchName, | ||
const cyclicTransform & | transform | ||
) |
Construct from components.
Definition at line 49 of file mappedPatchBaseBase.C.
mappedPatchBaseBase | ( | const polyPatch & | pp, |
const dictionary & | dict, | ||
const bool | transformisNone | ||
) |
Construct from dictionary.
Definition at line 65 of file mappedPatchBaseBase.C.
mappedPatchBaseBase | ( | const polyPatch & | pp, |
const mappedPatchBaseBase & | mpb | ||
) |
Construct as copy, resetting patch.
Definition at line 121 of file mappedPatchBaseBase.C.
|
virtual |
Destructor.
Definition at line 137 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 143 of file mappedPatchBaseBase.C.
References polyMesh::boundaryMesh(), objectRegistry::foundObject(), polyBoundaryMesh::mesh(), and objectRegistry::time().
const Foam::polyMesh & nbrMesh | ( | ) | const |
Get the mesh for the region to map from.
Definition at line 151 of file mappedPatchBaseBase.C.
References polyMesh::boundaryMesh(), objectRegistry::lookupObject(), polyBoundaryMesh::mesh(), and objectRegistry::time().
Referenced by mappedPatchBaseBase::nbrRegionName().
const Foam::polyPatch & nbrPolyPatch | ( | ) | const |
Get the patch to map from.
Definition at line 159 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().
|
static |
Return whether or not the given dictionary contains a.
mappedPatchBaseBase specification
Definition at line 178 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 190 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().
|
protected |
Patch to map to.
Definition at line 73 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 76 of file mappedPatchBaseBase.H.
Referenced by mappedPatchBaseBase::nbrRegionName().
|
mutableprotected |
Name of the region to map from.
Definition at line 79 of file mappedPatchBaseBase.H.
Referenced by nonConformalMappedPatchBase::nbrMappedPatch(), and mappedPatchBaseBase::nbrRegionName().
|
mutableprotected |
Name of the patch to map from.
Definition at line 82 of file mappedPatchBaseBase.H.
Referenced by nonConformalMappedPatchBase::nbrMappedPatch(), and mappedPatchBaseBase::nbrRegionName().
|
mutableprotected |
The transformation between the patches.
Definition at line 85 of file mappedPatchBaseBase.H.
Referenced by mappedPatchBase::fromNeighbour().