55 patchDict.
add(
"type", type_);
59 patchDict.
add(
"edgeLabels", edgeLabels_);
65 patchDict.
add(
"ngbPolyPatchIndex", neighPolyPatchId_);
69 patchDict.
add(
"myProcNo", ownerProcId_);
88 ownerPolyPatchId_ = -1;
89 neighPolyPatchId_ = -1;
122 if (ownProci == neiProci)
128 type_ = processorFaPatch::typeName;
142 if (patchPair.first() >= 0 && patchPair.first() == ownerPolyPatchId_)
146 if (patchPair.second() >= 0 && patchPair.second() == neighPolyPatchId_)
161 if (patchPair.first() >= 0 || patchPair.second() >= 0)
165 ownerPolyPatchId_ == patchPair.first()
166 && neighPolyPatchId_ == patchPair.second()
174 ownerPolyPatchId_ == patchPair.second()
175 && neighPolyPatchId_ == patchPair.first()
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
int matchPatchPair(const labelPair &patchPair) const noexcept
Ordered match with owner/neighbour patchPair.
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 assign_coupled(int ownProci, int neiProci)
Set values consistent with a processor coupling.
int comparePatchPair(const labelPair &patchPair) const noexcept
Unordered comparison with owner/neighbour patchPair.
faPatchData()
Default construct.
int ownerProcId_
The owner/neighbour for processor patches.
void assign(const faPatch &fap)
Clear and populate with values from finiteArea patch.
bool good() const
Has name/type etc.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
const labelList & edgeLabels() const noexcept
Return the list of edges.
label ngbPolyPatchIndex() const noexcept
The neighbour polyPatch index.
const word & name() const noexcept
The patch name.
static word newName(const label myProcNo, const label neighbProcNo)
Return the name of a processorPolyPatch ("procBoundary..") constructed from the pair of processor IDs...
A class for handling words, derived from Foam::string.
Pair< label > labelPair
A pair of labels.
List< label > labelList
A List of labels.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.