39 const label refinementCount,
43 refinementCount_(refinementCount),
50 template<
class TrackingData>
58 template<
class TrackingData>
72 template<
class TrackingData>
77 const label patchFacei,
78 const point& faceCentre,
85 template<
class TrackingData>
96 template<
class TrackingData>
101 const label patchFacei,
102 const point& faceCentre,
109 template<
class TrackingData>
113 const label thisCelli,
114 const label neighbourFacei,
144 label transportedFaceCount;
149 transportedFaceCount =
max(0, neighbourInfo.
count()-2);
154 transportedFaceCount =
max(0, neighbourInfo.
count()-1);
157 if (count_ >= transportedFaceCount)
163 count_ = transportedFaceCount;
171 template<
class TrackingData>
175 const label thisFacei,
176 const label neighbourCelli,
186 count_ = neighbourInfo.
count();
191 if (count_ >= neighbourInfo.
count())
198 count_ = neighbourInfo.
count();
206 template<
class TrackingData>
210 const label thisFacei,
220 count_ = neighbourInfo.
count();
225 if (count_ >= neighbourInfo.
count())
232 count_ = neighbourInfo.
count();
239 template<
class TrackingData>
262 return !(*
this == rhs);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
refinementData()
Construct null.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const refinementData &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const refinementData &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
bool sameGeometry(const polyMesh &, const refinementData &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
label refinementCount() const
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to (patch)face.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
errorManip< error > abort(error &err)
Transfers refinement levels such that slow transition between levels is maintained. Used in FaceCellWave.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
bool operator==(const refinementData &) const
bool equal(const refinementData &, TrackingData &td) const
Same (like operator==)
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
bool operator!=(const refinementData &) const