mappedPatchBaseBase Class Reference

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

Inheritance diagram for mappedPatchBaseBase:
Collaboration diagram for mappedPatchBaseBase:

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 wordnbrRegionName () const
 Name of the region to map from. More...
 
const wordnbrPatchName () const
 Name of the patch to map from. More...
 
const transformertransform () 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 polyMeshnbrMesh () const
 Get the mesh for the region to map from. More...
 
const polyPatchnbrPolyPatch () 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 polyPatchpatch_
 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...
 

Detailed Description

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;
Source files

Definition at line 66 of file mappedPatchBaseBase.H.

Constructor & Destructor Documentation

◆ mappedPatchBaseBase() [1/4]

mappedPatchBaseBase ( const polyPatch pp)

Construct from patch.

Definition at line 39 of file mappedPatchBaseBase.C.

◆ mappedPatchBaseBase() [2/4]

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() [3/4]

mappedPatchBaseBase ( const polyPatch pp,
const dictionary dict,
const bool  transformisNone 
)

Construct from dictionary.

Definition at line 65 of file mappedPatchBaseBase.C.

◆ mappedPatchBaseBase() [4/4]

mappedPatchBaseBase ( const polyPatch pp,
const mappedPatchBaseBase mpb 
)

Construct as copy, resetting patch.

Definition at line 121 of file mappedPatchBaseBase.C.

◆ ~mappedPatchBaseBase()

~mappedPatchBaseBase ( )
virtual

Destructor.

Definition at line 137 of file mappedPatchBaseBase.C.

Member Function Documentation

◆ TypeName()

TypeName ( "mappedPatchBaseBase"  )

Runtime type information.

◆ nbrRegionName()

const Foam::word & nbrRegionName ( ) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nbrPatchName()

const Foam::word & nbrPatchName ( ) const
inline

Name of the patch to map from.

Definition at line 46 of file mappedPatchBaseBaseI.H.

Referenced by nonConformalMappedPatchBase::calcOwner().

Here is the caller graph for this function:

◆ transform()

const Foam::transformer & transform ( ) const
inline

The transformation between the patches.

Definition at line 57 of file mappedPatchBaseBaseI.H.

References transformer::transform().

Here is the call graph for this function:

◆ sameRegion()

bool sameRegion ( ) const
inline

Is the neighbour region the same as for this patch?

Definition at line 63 of file mappedPatchBaseBaseI.H.

◆ samePatch()

bool samePatch ( ) const
inline

Is the neighbour patch the same as this patch?

Definition at line 69 of file mappedPatchBaseBaseI.H.

◆ sameUntransformedPatch()

bool sameUntransformedPatch ( ) const
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().

Here is the caller graph for this function:

◆ haveNbr()

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().

Here is the call graph for this function:

◆ nbrMesh()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nbrPolyPatch()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateMapForField() [1/2]

static void validateMapForField ( const PatchField &  field,
const FieldType &  iF,
const dictionary context,
const label  froms = from::any 
)
static

◆ validateForField() [1/2]

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().

Here is the caller graph for this function:

◆ specified()

bool specified ( const dictionary dict)
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().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateMapForField() [2/2]

void validateMapForField ( const PatchFieldType &  field,
const FieldType &  iF,
const dictionary context,
const label  froms 
)

◆ validateForField() [2/2]

void validateForField ( const PatchFieldType &  field,
const FieldType &  iF,
const dictionary context,
const label  froms 
) const

Member Data Documentation

◆ patch_

◆ coupleGroup_

const coupleGroupIdentifier coupleGroup_
protected

Couple group for the region/patch to map from.

Definition at line 76 of file mappedPatchBaseBase.H.

Referenced by mappedPatchBaseBase::nbrRegionName().

◆ nbrRegionName_

word nbrRegionName_
mutableprotected

Name of the region to map from.

Definition at line 79 of file mappedPatchBaseBase.H.

Referenced by nonConformalMappedPatchBase::nbrMappedPatch(), and mappedPatchBaseBase::nbrRegionName().

◆ nbrPatchName_

word nbrPatchName_
mutableprotected

Name of the patch to map from.

Definition at line 82 of file mappedPatchBaseBase.H.

Referenced by nonConformalMappedPatchBase::nbrMappedPatch(), and mappedPatchBaseBase::nbrRegionName().

◆ transform_

cyclicTransform transform_
mutableprotected

The transformation between the patches.

Definition at line 85 of file mappedPatchBaseBase.H.

Referenced by mappedPatchBase::fromNeighbour().


The documentation for this class was generated from the following files: