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.
label zoneID() const
Face zone ID.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool isEdgeMaster() const
Is the face mastered by an edge.
void size(const label)
Override size to be inconsistent with allocated storage.
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.
errorManip< error > abort(error &err)
A virtual base class for topological actions.
label patchID() const
Boundary patch ID.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.