108 flipFaceFlux_(false),
132 neighbour_(neighbour),
133 masterPointID_(masterPointID),
134 masterEdgeID_(masterEdgeID),
135 masterFaceID_(masterFaceID),
136 flipFaceFlux_(flipFaceFlux),
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_
212 if (zoneID_ == -1 && zoneFlip)
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;
polyAddFace()
Construct null. Used for constructing lists.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A face is a list of labels corresponding to mesh vertices.
label masterFaceID() const
Return master face ID.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label zoneID() const
Face zone ID.
bool isEdgeMaster() const
Is the face mastered by an edge.
bool isInZone() const
Does the face belong to a zone?
void size(const label)
Override size to be inconsistent with allocated storage.
bool isFaceMaster() const
Is the face mastered by another face.
bool isInPatch() const
Does the face belong to a boundary patch?
bool flipFaceFlux() const
Does the face flux need to be flipped.
label masterEdgeID() const
Return master edge ID.
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...
bool isPointMaster() const
Is the face mastered by a point.
label patchID() const
Boundary patch ID.
bool appended() const
Is the face appended with no master.
bool onlyInZone() const
Is the face only a zone face (i.e. not belonging to a cell)
errorManip< error > abort(error &err)
label owner() const
Return owner cell.
label zoneFlip() const
Face zone flip.
A virtual base class for topological actions.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const face & newFace() const
Return face.
virtual autoPtr< topoAction > clone() const
Construct and return a clone.
TypeName("addFace")
Runtime type information.
label neighbour() const
Return neighour cell.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...