108 flipFaceFlux_(false),
132 neighbour_(neighbour),
133 masterPointID_(masterPointID),
134 masterEdgeID_(masterEdgeID),
135 masterFaceID_(masterFaceID),
136 flipFaceFlux_(flipFaceFlux),
141 if (face_.
size() < 3)
148 " const label owner," 149 " const label neighbour,\n" 150 " const label masterPointID,\n" 151 " const label masterEdgeID,\n" 152 " const label masterFaceID,\n" 153 " const bool flipFaceFlux,\n" 154 " const label patchID,\n" 155 " const label zoneID,\n" 156 " const bool zoneFlip\n" 158 ) <<
"Invalid face: less than 3 points. " 159 <<
"This is not allowed.\n" 161 <<
" masterPointID:" << masterPointID_
162 <<
" masterEdgeID:" << masterEdgeID_
163 <<
" masterFaceID:" << masterFaceID_
164 <<
" patchID:" << patchID_
165 <<
" owner:" << owner_
166 <<
" neighbour:" << neighbour_
177 " const label owner," 178 " const label neighbour,\n" 179 " const label masterPointID,\n" 180 " const label masterEdgeID,\n" 181 " const label masterFaceID,\n" 182 " const bool flipFaceFlux,\n" 183 " const label patchID,\n" 184 " const label zoneID,\n" 185 " const bool zoneFlip\n" 187 ) <<
"Face contains invalid vertex ID: " << face_ <<
". " 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 (
min(owner_, neighbour_) >= 0 && owner_ == neighbour_)
206 " const label owner," 207 " const label neighbour,\n" 208 " const label masterPointID,\n" 209 " const label masterEdgeID,\n" 210 " const label masterFaceID,\n" 211 " const bool flipFaceFlux,\n" 212 " const label patchID,\n" 213 " const label zoneID,\n" 214 " const bool zoneFlip\n" 216 ) <<
"Face owner and neighbour are identical. " 217 <<
"This is not allowed.\n" 219 <<
" masterPointID:" << masterPointID_
220 <<
" masterEdgeID:" << masterEdgeID_
221 <<
" masterFaceID:" << masterFaceID_
222 <<
" patchID:" << patchID_
223 <<
" owner:" << owner_
224 <<
" neighbour:" << neighbour_
228 if (neighbour_ >= 0 && patchID >= 0)
235 " const label owner," 236 " const label neighbour,\n" 237 " const label masterPointID,\n" 238 " const label masterEdgeID,\n" 239 " const label masterFaceID,\n" 240 " const bool flipFaceFlux,\n" 241 " const label patchID,\n" 242 " const label zoneID,\n" 243 " const bool zoneFlip\n" 245 ) <<
"Patch face has got a neighbour. Patch ID: " << patchID
246 <<
". This is not allowed.\n" 248 <<
" masterPointID:" << masterPointID_
249 <<
" masterEdgeID:" << masterEdgeID_
250 <<
" masterFaceID:" << masterFaceID_
251 <<
" patchID:" << patchID_
252 <<
" owner:" << owner_
253 <<
" neighbour:" << neighbour_
257 if (owner_ < 0 && zoneID < 0)
264 " const label owner," 265 " const label neighbour,\n" 266 " const label masterPointID,\n" 267 " const label masterEdgeID,\n" 268 " const label masterFaceID,\n" 269 " const bool flipFaceFlux,\n" 270 " const label patchID,\n" 271 " const label zoneID" 273 ) <<
"Face has no owner and is not in a zone. " 274 <<
"This is not allowed.\n" 277 <<
" masterPointID:" << masterPointID_
278 <<
" masterEdgeID:" << masterEdgeID_
279 <<
" masterFaceID:" << masterFaceID_
280 <<
" patchID:" << patchID_
281 <<
" owner:" << owner_
282 <<
" neighbour:" << neighbour_
286 if (zoneID_ == -1 && zoneFlip)
293 " const label owner," 294 " const label neighbour,\n" 295 " const label masterPointID,\n" 296 " const label masterEdgeID,\n" 297 " const label masterFaceID,\n" 298 " const bool flipFaceFlux,\n" 299 " const label patchID,\n" 300 " const label zoneID,\n" 301 " const bool zoneFlip\n" 303 ) <<
"Specified zone flip for a face that does not " 304 <<
"belong to zone. This is not allowed.\n" 306 <<
" masterPointID:" << masterPointID_
307 <<
" masterEdgeID:" << masterEdgeID_
308 <<
" masterFaceID:" << masterFaceID_
309 <<
" patchID:" << patchID_
310 <<
" owner:" << owner_
311 <<
" neighbour:" << neighbour_
348 return masterPointID_ >= 0;
354 return masterEdgeID_ >= 0;
360 return masterFaceID_ >= 0;
372 return masterPointID_;
378 return masterEdgeID_;
384 return masterFaceID_;
390 return flipFaceFlux_;
396 return patchID_ >= 0;
414 return zoneID_ >= 0 && owner_ < 0 && neighbour_ < 0;
TypeName("addFace")
Runtime type information.
bool isFaceMaster() const
Is the face mastered by another face.
bool appended() const
Is the face appended with no master.
A face addition data class. A face can be inflated either from a point or from another face and can e...
A virtual base class for topological actions.
label zoneFlip() const
Face zone flip.
label patchID() const
Boundary patch 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.
void size(const label)
Override size to be inconsistent with allocated storage.
label masterPointID() const
Return master point ID.
const face & newFace() const
Return face.
label owner() const
Return owner cell.
A face is a list of labels corresponding to mesh vertices.
bool isPointMaster() const
Is the face mastered by a point.
label masterEdgeID() const
Return master edge ID.
label neighbour() const
Return neighour cell.
bool isInPatch() const
Does the face belong to a boundary patch?
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
bool flipFaceFlux() const
Does the face flux need to be flipped.
bool onlyInZone() const
Is the face only a zone face (i.e. not belonging to a cell)
bool isEdgeMaster() const
Is the face mastered by an edge.
polyAddFace()
Construct null. Used for constructing lists.
label zoneID() const
Face zone ID.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
bool isInZone() const
Does the face belong to a zone?
label masterFaceID() const
Return master face ID.
virtual autoPtr< topoAction > clone() const
Construct and return a clone.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...