Helper class for holding data during faPatch construction. Most data members are exposed at the moment. More...
#include <faPatchData.H>

Public Member Functions | |
| faPatchData () | |
| Default construct. | |
| const word & | name () const noexcept |
| Return the name. | |
| dictionary | dict (const bool withEdgeLabels=true) const |
| Contents transcribed into a patch dictionary, usually including the edge labels. | |
| bool | good () const |
| Has name/type etc. | |
| void | clear () |
| Reset data. | |
| void | assign (const faPatch &fap) |
| Clear and populate with values from finiteArea patch. | |
| bool | assign_coupled (int ownProci, int neiProci) |
| Set values consistent with a processor coupling. | |
| bool | coupled () const noexcept |
| True if owner/neighbour processor ids are non-equal. | |
| bool | owner () const noexcept |
| Does this side own the patch? Also true for non-coupled patches. | |
| bool | neighbour () const noexcept |
| Does the other side own the patch? | |
| int | matchPatchPair (const labelPair &patchPair) const noexcept |
| Ordered match with owner/neighbour patchPair. | |
| int | comparePatchPair (const labelPair &patchPair) const noexcept |
| Unordered comparison with owner/neighbour patchPair. | |
Public Attributes | |
| word | name_ |
| word | type_ |
| label | ownerPolyPatchId_ |
| label | neighPolyPatchId_ |
| int | ownerProcId_ |
| The owner/neighbour for processor patches. | |
| 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.
References neighPolyPatchId_, neighProcId_, ownerPolyPatchId_, and ownerProcId_.
|
noexcept |
| 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(), coupled, edgeLabels_, neighPolyPatchId_, neighProcId_, ownerProcId_, and type_.

| bool good | ( | ) | const |
| void clear | ( | ) |
Reset data.
Definition at line 76 of file faPatchData.C.
References edgeLabels_, name_, neighPolyPatchId_, neighProcId_, ownerPolyPatchId_, ownerProcId_, and type_.
| 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(), edgeLabels_, Foam::isA(), patchIdentifier::name(), name_, neighPolyPatchId_, neighProcId_, faPatch::ngbPolyPatchIndex(), ownerProcId_, and type_.

| bool assign_coupled | ( | int | ownProci, |
| int | neiProci ) |
Set values consistent with a processor coupling.
Definition at line 111 of file faPatchData.C.
References clear(), name_, neighProcId_, processorPolyPatch::newName(), ownerProcId_, and type_.

|
inlinenoexcept |
True if owner/neighbour processor ids are non-equal.
Definition at line 119 of file faPatchData.H.
References coupled(), neighProcId_, Foam::noexcept, and ownerProcId_.
Referenced by coupled().


|
inlinenoexcept |
Does this side own the patch? Also true for non-coupled patches.
Definition at line 127 of file faPatchData.H.
References neighProcId_, Foam::noexcept, and ownerProcId_.
Referenced by neighbour().

|
inlinenoexcept |
Does the other side own the patch?
Definition at line 135 of file faPatchData.H.
References Foam::noexcept, and owner().

|
noexcept |
Ordered match with owner/neighbour patchPair.
Definition at line 129 of file faPatchData.C.
References neighPolyPatchId_, and ownerPolyPatchId_.
|
noexcept |
Unordered comparison with owner/neighbour patchPair.
Definition at line 147 of file faPatchData.C.
References neighPolyPatchId_, and ownerPolyPatchId_.
| word name_ |
Definition at line 54 of file faPatchData.H.
Referenced by assign(), assign_coupled(), clear(), good(), and name().
| word type_ |
Definition at line 55 of file faPatchData.H.
Referenced by assign(), assign_coupled(), clear(), dict(), and good().
| label ownerPolyPatchId_ |
Definition at line 57 of file faPatchData.H.
Referenced by clear(), comparePatchPair(), faPatchData(), and matchPatchPair().
| label neighPolyPatchId_ |
Definition at line 58 of file faPatchData.H.
Referenced by assign(), clear(), comparePatchPair(), dict(), faPatchData(), and matchPatchPair().
| int ownerProcId_ |
The owner/neighbour for processor patches.
Definition at line 63 of file faPatchData.H.
Referenced by assign(), assign_coupled(), clear(), coupled(), dict(), faPatchData(), and owner().
| int neighProcId_ |
Definition at line 64 of file faPatchData.H.
Referenced by assign(), assign_coupled(), clear(), coupled(), dict(), faPatchData(), and owner().
| labelList edgeLabels_ |
Definition at line 67 of file faPatchData.H.