Encapsulates using patchGroups to specify coupled patch. More...
Public Member Functions | |
coupleGroupIdentifier () | |
Construct null. More... | |
coupleGroupIdentifier (const word &patchGroupName) | |
Construct from components. More... | |
coupleGroupIdentifier (const dictionary &dict) | |
Construct from dictionary. More... | |
const word & | name () const |
Name of patchGroup. More... | |
bool | valid () const |
Is a valid patchGroup. More... | |
label | findOtherPatchID (const polyPatch &thisPatch) const |
Find other patch in same region. Returns index of patch or -1. More... | |
label | findOtherPatchID (const polyPatch &thisPatch, word &otherRegion) const |
Find other patch and region. Returns index of patch and sets. More... | |
void | write (Ostream &os) const |
Write the data as a dictionary. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const coupleGroupIdentifier &p) |
Encapsulates using patchGroups to specify coupled patch.
Definition at line 64 of file coupleGroupIdentifier.H.
Construct null.
Definition at line 134 of file coupleGroupIdentifier.C.
coupleGroupIdentifier | ( | const word & | patchGroupName | ) |
Construct from components.
Definition at line 140 of file coupleGroupIdentifier.C.
coupleGroupIdentifier | ( | const dictionary & | dict | ) |
|
inline |
Name of patchGroup.
Definition at line 32 of file coupleGroupIdentifierI.H.
|
inline |
Is a valid patchGroup.
Definition at line 38 of file coupleGroupIdentifierI.H.
Foam::label findOtherPatchID | ( | const polyPatch & | thisPatch | ) | const |
Find other patch in same region. Returns index of patch or -1.
Definition at line 157 of file coupleGroupIdentifier.C.
References polyPatch::boundaryMesh(), and polyBoundaryMesh::mesh().
Foam::label findOtherPatchID | ( | const polyPatch & | thisPatch, |
word & | otherRegion | ||
) | const |
Find other patch and region. Returns index of patch and sets.
otherRegion to name of region. Fatal error if patch not found
Definition at line 168 of file coupleGroupIdentifier.C.
References polyPatch::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAllConstIters(), objectRegistry::lookupClass(), mesh, polyBoundaryMesh::mesh(), patchIdentifier::name(), fvMesh::name(), IOobject::name(), Foam::name(), patchID, runTime, HashTable< T, Key, Hash >::sortedToc(), and objectRegistry::time().
void write | ( | Ostream & | os | ) | const |
Write the data as a dictionary.
Definition at line 226 of file coupleGroupIdentifier.C.
References Foam::name(), and Ostream::writeEntry().
|
friend |