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)
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 polyPatch const word const word const dictionary & dict
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.
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.
void assign(const faPatch &fap)
Clear and populate with values from finiteArea patch.
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.
A class for handling words, derived from Foam::string.
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
List< label > labelList
A List of labels.
static const char *const typeName
The type name used in ensight case files.