33 #ifndef polyModifyFace_H
34 #define polyModifyFace_H
100 flipFaceFlux_(false),
102 removeFromZone_(false),
131 if (face_.
size() < 3)
134 <<
"Invalid face: less than 3 points. This is not allowed\n"
136 <<
" faceID:" << faceID_
137 <<
" owner:" << owner_
138 <<
" neighbour:" << neighbour_
145 <<
"This is not allowed.\n"
146 <<
" faceID:" << faceID_
147 <<
" owner:" << owner_
148 <<
" neighbour:" << neighbour_
152 if (
min(owner_, neighbour_) >= 0 && owner_ == neighbour_)
155 <<
"This is not allowed.\n"
157 <<
" faceID:" << faceID_
158 <<
" owner:" << owner_
159 <<
" neighbour:" << neighbour_
163 if (neighbour_ >= 0 && patchID_ >= 0)
166 <<
"This is not allowed.\n"
168 <<
" faceID:" << faceID_
169 <<
" owner:" << owner_
170 <<
" neighbour:" << neighbour_
171 <<
" patchID:" << patchID_
178 <<
"belong to zone. This is not allowed.\n"
180 <<
" faceID:" << faceID_
181 <<
" owner:" << owner_
182 <<
" neighbour:" << neighbour_
225 return flipFaceFlux_;
231 return patchID_ >= 0;
249 return zoneID_ >= 0 && owner_ < 0 && neighbour_ < 0;
254 return removeFromZone_;
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.
Class describing modification of a face.
bool flipFaceFlux() const
Does the face flux need to be flipped.
bool removeFromZone() const
label owner() const
Return owner cell ID.
label zoneID() const
Face zone ID.
bool onlyInZone() const
Is the face only a zone face (i.e. not belonging to a cell)
TypeName("modifyFace")
Runtime type information.
label patchID() const
Boundary patch ID.
label zoneFlip() const
Face zone flip.
bool isInZone() const
Does the face belong to a zone?
label neighbour() const
Return owner cell ID.
bool isInPatch() const
Does the face belong to a boundary patch?
const face & newFace() const
Return face.
polyModifyFace()
Construct null. Used in constructing lists.
virtual autoPtr< topoAction > clone() const
Construct and return a clone.
label faceID() const
Return master face ID.
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)