Go to the documentation of this file.
35 #ifndef polyModifyFace_H
36 #define polyModifyFace_H
102 flipFaceFlux_(false),
104 removeFromZone_(false),
133 if (face_.size() < 3)
136 <<
"Invalid face: less than 3 points. This is not allowed\n"
138 <<
" faceID:" << faceID_
139 <<
" owner:" << owner_
140 <<
" neighbour:" << neighbour_
147 <<
"This is not allowed.\n"
148 <<
" faceID:" << faceID_
149 <<
" owner:" << owner_
150 <<
" neighbour:" << neighbour_
154 if (
min(owner_, neighbour_) >= 0 && owner_ == neighbour_)
157 <<
"This is not allowed.\n"
159 <<
" faceID:" << faceID_
160 <<
" owner:" << owner_
161 <<
" neighbour:" << neighbour_
165 if (neighbour_ >= 0 && patchID_ >= 0)
168 <<
"This is not allowed.\n"
170 <<
" faceID:" << faceID_
171 <<
" owner:" << owner_
172 <<
" neighbour:" << neighbour_
173 <<
" patchID:" << patchID_
180 <<
"belong to zone. This is not allowed.\n"
182 <<
" faceID:" << faceID_
183 <<
" owner:" << owner_
184 <<
" neighbour:" << neighbour_
227 return flipFaceFlux_;
233 return patchID_ >= 0;
251 return zoneID_ >= 0 && owner_ < 0 && neighbour_ < 0;
256 return removeFromZone_;
TypeName("modifyFace")
Runtime type information.
label zoneFlip() const
Face zone flip.
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)
Class describing modification of a face.
bool isInZone() const
Does the face belong to a zone?
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
virtual autoPtr< topoAction > clone() const
Construct and return a clone.
const face & newFace() const
Return face.
label neighbour() const
Return owner cell ID.
label faceID() const
Return master face ID.
errorManip< error > abort(error &err)
label owner() const
Return owner cell ID.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label patchID() const
Boundary patch ID.
bool isInPatch() const
Does the face belong to a boundary patch?
bool removeFromZone() const
label zoneID() const
Face zone ID.
A virtual base class for topological actions.
A face is a list of labels corresponding to mesh vertices.
polyModifyFace()
Construct null. Used in constructing lists.