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 &) | |
Construct from dictionary. More... | |
const word & | name () const |
Name of patchGroup. More... | |
bool | valid () const |
Is a valid patchGroup. More... | |
label | findOtherPatchID (const polyPatch &) const |
Find other patch in same region. Returns index of patch or -1. More... | |
label | findOtherPatchID (const polyPatch &, word &) const |
Find other patch and region. Returns index of patch and sets. More... | |
void | write (Ostream &) const |
Write the data as a dictionary. More... | |
Private Member Functions | |
label | findOtherPatchID (const polyMesh &, const polyPatch &) const |
Find other patch in specified mesh. Returns index of patch or -1. More... | |
Private Attributes | |
word | name_ |
Name of patchGroup. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const coupleGroupIdentifier &) |
Encapsulates using patchGroups to specify coupled patch.
Definition at line 62 of file coupleGroupIdentifier.H.
Construct null.
Definition at line 131 of file coupleGroupIdentifier.C.
coupleGroupIdentifier | ( | const word & | patchGroupName | ) |
Construct from components.
Definition at line 137 of file coupleGroupIdentifier.C.
coupleGroupIdentifier | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 143 of file coupleGroupIdentifier.C.
|
private |
Find other patch in specified mesh. Returns index of patch or -1.
Definition at line 33 of file coupleGroupIdentifier.C.
References polyPatch::boundaryMesh(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), polyBoundaryMesh::groupPatchIDs(), patchIdentifier::index(), mesh, polyBoundaryMesh::mesh(), patchIdentifier::name(), Foam::name(), IOobject::name(), and List::size().
Referenced by cyclicAMIPolyPatch::neighbPatchName().
|
inline |
Name of patchGroup.
Definition at line 30 of file coupleGroupIdentifierI.H.
References coupleGroupIdentifier::name_.
|
inline |
Is a valid patchGroup.
Definition at line 36 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 152 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 163 of file coupleGroupIdentifier.C.
References polyPatch::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAllConstIter(), objectRegistry::lookupClass(), mesh, polyBoundaryMesh::mesh(), patchIdentifier::name(), Foam::name(), fvMesh::name(), IOobject::name(), HashTable::sortedToc(), and objectRegistry::time().
void write | ( | Ostream & | os | ) | const |
Write the data as a dictionary.
Definition at line 221 of file coupleGroupIdentifier.C.
References token::END_STATEMENT, Foam::name(), Foam::nl, and Ostream::writeKeyword().
|
friend |
|
private |
Name of patchGroup.
Definition at line 67 of file coupleGroupIdentifier.H.
Referenced by coupleGroupIdentifier::name().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.