108 flipFaceFlux_(false),
141 if (face_.
size() < 3)
144 <<
"This is not allowed.\n"
146 <<
" masterPointID:" << masterPointID_
147 <<
" masterEdgeID:" << masterEdgeID_
148 <<
" masterFaceID:" << masterFaceID_
149 <<
" patchID:" << patchID_
150 <<
" owner:" << owner_
151 <<
" neighbour:" << neighbour_
158 <<
"This is not allowed.\n"
160 <<
" masterPointID:" << masterPointID_
161 <<
" masterEdgeID:" << masterEdgeID_
162 <<
" masterFaceID:" << masterFaceID_
163 <<
" patchID:" << patchID_
164 <<
" owner:" << owner_
165 <<
" neighbour:" << neighbour_
169 if (
min(owner_, neighbour_) >= 0 && owner_ == neighbour_)
172 <<
"This is not allowed.\n"
174 <<
" masterPointID:" << masterPointID_
175 <<
" masterEdgeID:" << masterEdgeID_
176 <<
" masterFaceID:" << masterFaceID_
177 <<
" patchID:" << patchID_
178 <<
" owner:" << owner_
179 <<
" neighbour:" << neighbour_
183 if (neighbour_ >= 0 &&
patchID >= 0)
186 <<
". This is not allowed.\n"
188 <<
" masterPointID:" << masterPointID_
189 <<
" masterEdgeID:" << masterEdgeID_
190 <<
" masterFaceID:" << masterFaceID_
191 <<
" patchID:" << patchID_
192 <<
" owner:" << owner_
193 <<
" neighbour:" << neighbour_
197 if (owner_ < 0 &&
zoneID < 0)
200 <<
"This is not allowed.\n"
203 <<
" masterPointID:" << masterPointID_
204 <<
" masterEdgeID:" << masterEdgeID_
205 <<
" masterFaceID:" << masterFaceID_
206 <<
" patchID:" << patchID_
207 <<
" owner:" << owner_
208 <<
" neighbour:" << neighbour_
215 <<
"belong to zone. This is not allowed.\n"
217 <<
" masterPointID:" << masterPointID_
218 <<
" masterEdgeID:" << masterEdgeID_
219 <<
" masterFaceID:" << masterFaceID_
220 <<
" patchID:" << patchID_
221 <<
" owner:" << owner_
222 <<
" neighbour:" << neighbour_
259 return masterPointID_ >= 0;
265 return masterEdgeID_ >= 0;
271 return masterFaceID_ >= 0;
283 return masterPointID_;
289 return masterEdgeID_;
295 return masterFaceID_;
301 return flipFaceFlux_;
307 return patchID_ >= 0;
325 return zoneID_ >= 0 && owner_ < 0 && neighbour_ < 0;
void size(const label)
Override size to be inconsistent with allocated storage.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.
label patchID() const
Boundary patch ID.
TypeName("addFace")
Runtime type information.
label zoneFlip() const
Face zone flip.
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.
const face & newFace() const
Return face.
bool appended() const
Is the face appended with no master.
virtual autoPtr< topoAction > clone() const
Construct and return a clone.
bool isFaceMaster() const
Is the face mastered by another face.
bool isPointMaster() const
Is the face mastered by a point.
A virtual base class for topological actions.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)