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;
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A face is a list of labels corresponding to mesh vertices.
A face addition data class. A face can be inflated either from a point or from another face and can e...
bool flipFaceFlux() const
Does the face flux need to be flipped.
label owner() const
Return owner cell.
label zoneID() const
Face zone ID.
label masterFaceID() const
Return master face ID.
bool onlyInZone() const
Is the face only a zone face (i.e. not belonging to a cell)
label masterPointID() const
Return master point ID.
bool isEdgeMaster() const
Is the face mastered by an edge.
const face & newFace() const
Return face.
label patchID() const
Boundary patch ID.
TypeName("addFace")
Runtime type information.
label zoneFlip() const
Face zone flip.
virtual autoPtr< topoAction > clone() const
Construct and return a clone.
bool isInZone() const
Does the face belong to a zone?
label neighbour() const
Return neighbour cell.
label masterEdgeID() const
Return master edge ID.
bool isInPatch() const
Does the face belong to a boundary patch?
polyAddFace()
Construct null. Used for constructing lists.
bool appended() const
Is the face appended with no master.
bool isFaceMaster() const
Is the face mastered by another face.
bool isPointMaster() const
Is the face mastered by a point.
polyAddFace(const face &f, const label owner, const label neighbour, const label masterPointID, const label masterEdgeID, const label masterFaceID, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip)
Construct from components.
A virtual base class for topological actions.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.