Helper class for holding data during faPatch construction. Most data members are exposed at the moment. More...
Public Member Functions | |
faPatchData () | |
Default construct. More... | |
const word & | name () const noexcept |
Return the name. More... | |
dictionary | dict (const bool withEdgeLabels=true) const |
Contents transcribed into a patch dictionary, usually including the edge labels. More... | |
bool | good () const |
Has name/type etc. More... | |
void | clear () |
Reset data. More... | |
void | assign (const faPatch &fap) |
Clear and populate with values from finiteArea patch. More... | |
bool | assign_coupled (int ownProci, int neiProci) |
Set values consistent with a processor coupling. More... | |
bool | coupled () const noexcept |
True if owner/neighbour processor ids are non-equal. More... | |
bool | owner () const noexcept |
Does this side own the patch? Also true for non-coupled patches. More... | |
bool | neighbour () const noexcept |
Does the other side own the patch? More... | |
int | matchPatchPair (const labelPair &patchPair) const noexcept |
Ordered match with owner/neighbour patchPair. More... | |
int | comparePatchPair (const labelPair &patchPair) const noexcept |
Unordered comparison with owner/neighbour patchPair. More... | |
Public Attributes | |
word | name_ |
word | type_ |
label | ownerPolyPatchId_ |
label | neighPolyPatchId_ |
int | ownerProcId_ |
The owner/neighbour for processor patches. More... | |
int | neighProcId_ |
labelList | edgeLabels_ |
Helper class for holding data during faPatch construction. Most data members are exposed at the moment.
Definition at line 48 of file faPatchData.H.
faPatchData | ( | ) |
Default construct.
Definition at line 28 of file faPatchData.C.
|
noexcept |
Return the name.
Definition at line 39 of file faPatchData.C.
Foam::dictionary dict | ( | const bool | withEdgeLabels = true | ) | const |
Contents transcribed into a patch dictionary, usually including the edge labels.
Definition at line 45 of file faPatchData.C.
References dictionary::add(), and coupled.
bool good | ( | ) | const |
Has name/type etc.
Definition at line 70 of file faPatchData.C.
void clear | ( | ) |
Reset data.
Definition at line 76 of file faPatchData.C.
void assign | ( | const faPatch & | fap | ) |
Clear and populate with values from finiteArea patch.
Definition at line 91 of file faPatchData.C.
References clear(), faPatch::edgeLabels(), patchIdentifier::name(), and faPatch::ngbPolyPatchIndex().
bool assign_coupled | ( | int | ownProci, |
int | neiProci | ||
) |
Set values consistent with a processor coupling.
Definition at line 111 of file faPatchData.C.
References clear(), and processorPolyPatch::newName().
|
inlinenoexcept |
True if owner/neighbour processor ids are non-equal.
Definition at line 119 of file faPatchData.H.
References faPatchData::neighProcId_, and faPatchData::ownerProcId_.
|
inlinenoexcept |
Does this side own the patch? Also true for non-coupled patches.
Definition at line 127 of file faPatchData.H.
References faPatchData::neighProcId_, and faPatchData::ownerProcId_.
Referenced by faPatchData::neighbour().
|
inlinenoexcept |
Does the other side own the patch?
Definition at line 135 of file faPatchData.H.
References faPatchData::owner().
|
noexcept |
Ordered match with owner/neighbour patchPair.
Definition at line 130 of file faPatchData.C.
References Pair< T >::first(), and Pair< T >::second().
|
noexcept |
Unordered comparison with owner/neighbour patchPair.
Definition at line 148 of file faPatchData.C.
References Pair< T >::first(), and Pair< T >::second().
word name_ |
Definition at line 54 of file faPatchData.H.
word type_ |
Definition at line 55 of file faPatchData.H.
label ownerPolyPatchId_ |
Definition at line 57 of file faPatchData.H.
label neighPolyPatchId_ |
Definition at line 58 of file faPatchData.H.
int ownerProcId_ |
The owner/neighbour for processor patches.
Definition at line 63 of file faPatchData.H.
Referenced by faPatchData::coupled(), and faPatchData::owner().
int neighProcId_ |
Definition at line 64 of file faPatchData.H.
Referenced by faPatchData::coupled(), and faPatchData::owner().
labelList edgeLabels_ |
Definition at line 67 of file faPatchData.H.