Encapsulates using "patchGroups" to specify coupled patch. More...
Public Member Functions | |
coupleGroupIdentifier ()=default | |
Default construct. More... | |
coupleGroupIdentifier (const word &patchGroupName) | |
Construct from patchGroup name. More... | |
coupleGroupIdentifier (const dictionary &dict) | |
Construct from dictionary. More... | |
const word & | name () const noexcept |
Name of patchGroup. More... | |
bool | valid () const noexcept |
Is a valid patchGroup (non-empty) name. More... | |
label | findOtherPatchID (const polyPatch &thisPatch) const |
Find other patch in same region. More... | |
label | findOtherPatchID (const polyPatch &thisPatch, word &otherRegion) const |
Find other patch and region. More... | |
void | write (Ostream &os) const |
Write the coupleGroup dictionary entry. More... | |
Encapsulates using "patchGroups" to specify coupled patch.
Definition at line 53 of file coupleGroupIdentifier.H.
|
default |
Default construct.
|
inlineexplicit |
Construct from patchGroup name.
Definition at line 92 of file coupleGroupIdentifier.H.
|
explicit |
Construct from dictionary.
Definition at line 126 of file coupleGroupIdentifier.C.
References dict, and dictionary::readIfPresent().
|
inlinenoexcept |
Name of patchGroup.
Definition at line 108 of file coupleGroupIdentifier.H.
|
inlinenoexcept |
Is a valid patchGroup (non-empty) name.
Definition at line 116 of file coupleGroupIdentifier.H.
Foam::label findOtherPatchID | ( | const polyPatch & | thisPatch | ) | const |
Find other patch in same region.
Definition at line 135 of file coupleGroupIdentifier.C.
References polyPatch::boundaryMesh(), and polyBoundaryMesh::mesh().
Find other patch and region.
Returns index of patch and sets otherRegion to name of region. FatalError if patch not found
Definition at line 146 of file coupleGroupIdentifier.C.
References polyPatch::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAllConstIters(), objectRegistry::lookupClass(), mesh, polyBoundaryMesh::mesh(), Foam::name(), patchIdentifier::name(), fvMesh::name(), IOobject::name(), patchID, runTime, HashTable< T, Key, Hash >::sortedToc(), and objectRegistry::time().
void write | ( | Ostream & | os | ) | const |
Write the coupleGroup dictionary entry.
Definition at line 204 of file coupleGroupIdentifier.C.
References os(), and Ostream::writeEntry().
Referenced by Foam::operator<<().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.