Go to the documentation of this file.
37 ownerPolyPatchId_(-1),
38 neighPolyPatchId_(-1),
55 patchDict.
add(
"type", type_);
59 patchDict.
add(
"edgeLabels", edgeLabels_);
65 patchDict.
add(
"ngbPolyPatchIndex", neighPolyPatchId_);
69 patchDict.
add(
"myProcNo", ownerProcId_);
70 patchDict.
add(
"neighbProcNo", neighProcId_);
82 ownerPolyPatchId_ = -1;
83 neighPolyPatchId_ = -1;
103 const auto* fapp = isA<processorFaPatch>(fap);
106 ownerProcId_ = fapp->myProcNo();
107 neighProcId_ = fapp->neighbProcNo();
116 if (ownProci == neiProci)
122 type_ = processorFaPatch::typeName;
123 ownerProcId_ = ownProci;
124 neighProcId_ = neiProci;
136 if (patchPair.first() >= 0 && patchPair.first() == ownerPolyPatchId_)
140 if (patchPair.
second() >= 0 && patchPair.
second() == neighPolyPatchId_)
155 if (patchPair.first() >= 0 || patchPair.
second() >= 0)
159 ownerPolyPatchId_ == patchPair.first()
160 && neighPolyPatchId_ == patchPair.
second()
168 ownerPolyPatchId_ == patchPair.
second()
169 && neighPolyPatchId_ == patchPair.first()
const T & second() const noexcept
Return second element, which is also the last element.
List< label > labelList
A List of labels.
void assign(const faPatch &fap)
Clear and populate with values from finiteArea patch.
A class for handling words, derived from Foam::string.
faPatchData()
Default construct.
dictionary dict(const bool withEdgeLabels=true) const
const labelList & edgeLabels() const noexcept
Return the list of edges.
int comparePatchPair(const labelPair &patchPair) const noexcept
Unordered comparison with owner/neighbour patchPair.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool assign_coupled(int ownProci, int neiProci)
Set values consistent with a processor coupling.
const word & name() const noexcept
Return the name.
static word newName(const label myProcNo, const label neighbProcNo)
Return the name of a processorPolyPatch.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
const word & name() const noexcept
The patch name.
int matchPatchPair(const labelPair &patchPair) const noexcept
Ordered match with owner/neighbour patchPair.
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
Finite area patch class. Used for 2-D non-Euclidian finite area method.
label ngbPolyPatchIndex() const noexcept
The neighbour polyPatch index.