110 flipFaceFlux_(
false),
143 if (face_.
size() < 3)
146 <<
"This is not allowed.\n" 148 <<
" masterPointID:" << masterPointID_
149 <<
" masterEdgeID:" << masterEdgeID_
150 <<
" masterFaceID:" << masterFaceID_
151 <<
" patchID:" << patchID_
152 <<
" owner:" << owner_
153 <<
" neighbour:" << neighbour_
160 <<
"This is not allowed.\n" 162 <<
" masterPointID:" << masterPointID_
163 <<
" masterEdgeID:" << masterEdgeID_
164 <<
" masterFaceID:" << masterFaceID_
165 <<
" patchID:" << patchID_
166 <<
" owner:" << owner_
167 <<
" neighbour:" << neighbour_
171 if (
min(owner_, neighbour_) >= 0 && owner_ == neighbour_)
174 <<
"This is not allowed.\n" 176 <<
" masterPointID:" << masterPointID_
177 <<
" masterEdgeID:" << masterEdgeID_
178 <<
" masterFaceID:" << masterFaceID_
179 <<
" patchID:" << patchID_
180 <<
" owner:" << owner_
181 <<
" neighbour:" << neighbour_
185 if (neighbour_ >= 0 &&
patchID >= 0)
188 <<
". This is not allowed.\n" 190 <<
" masterPointID:" << masterPointID_
191 <<
" masterEdgeID:" << masterEdgeID_
192 <<
" masterFaceID:" << masterFaceID_
193 <<
" patchID:" << patchID_
194 <<
" owner:" << owner_
195 <<
" neighbour:" << neighbour_
199 if (owner_ < 0 &&
zoneID < 0)
202 <<
"This is not allowed.\n" 205 <<
" masterPointID:" << masterPointID_
206 <<
" masterEdgeID:" << masterEdgeID_
207 <<
" masterFaceID:" << masterFaceID_
208 <<
" patchID:" << patchID_
209 <<
" owner:" << owner_
210 <<
" neighbour:" << neighbour_
217 <<
"belong to zone. This is not allowed.\n" 219 <<
" masterPointID:" << masterPointID_
220 <<
" masterEdgeID:" << masterEdgeID_
221 <<
" masterFaceID:" << masterFaceID_
222 <<
" patchID:" << patchID_
223 <<
" owner:" << owner_
224 <<
" neighbour:" << neighbour_
261 return masterPointID_ >= 0;
267 return masterEdgeID_ >= 0;
273 return masterFaceID_ >= 0;
285 return masterPointID_;
291 return masterEdgeID_;
297 return masterFaceID_;
303 return flipFaceFlux_;
309 return patchID_ >= 0;
327 return zoneID_ >= 0 && owner_ < 0 && neighbour_ < 0;
polyAddFace()
Construct null. Used for constructing lists.
label zoneID() const
Face zone ID.
void size(const label n)
Older name for setAddressableSize.
bool isPointMaster() const
Is the face mastered by a point.
A face is a list of labels corresponding to mesh vertices.
const face & newFace() const
Return face.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool isEdgeMaster() const
Is the face mastered by an edge.
label masterPointID() const
Return master point ID.
A face addition data class. A face can be inflated either from a point or from another face and can e...
label owner() const
Return owner cell.
label zoneFlip() const
Face zone flip.
label masterFaceID() const
Return master face ID.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
A virtual base class for topological actions.
label patchID() const
Boundary patch ID.
bool onlyInZone() const
Is the face only a zone face (i.e. not belonging to a cell)
label neighbour() const
Return neighbour cell.
bool appended() const
Is the face appended with no master.
TypeName("addFace")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual autoPtr< topoAction > clone() const
Construct and return a clone.
bool flipFaceFlux() const
Does the face flux need to be flipped.
bool isInPatch() const
Does the face belong to a boundary patch?
bool isInZone() const
Does the face belong to a zone?
label masterEdgeID() const
Return master edge ID.
bool isFaceMaster() const
Is the face mastered by another face.