Go to the documentation of this file.
41 const label refinementCount,
45 refinementCount_(refinementCount),
52 template<
class TrackingData>
60 template<
class TrackingData>
74 template<
class TrackingData>
79 const label patchFacei,
80 const point& faceCentre,
87 template<
class TrackingData>
98 template<
class TrackingData>
103 const label patchFacei,
104 const point& faceCentre,
111 template<
class TrackingData>
115 const label thisCelli,
116 const label neighbourFacei,
139 count_ = refinementCount();
146 label transportedFaceCount;
151 transportedFaceCount =
max(0, neighbourInfo.
count()-2);
156 transportedFaceCount =
max(0, neighbourInfo.
count()-1);
159 if (count_ >= transportedFaceCount)
165 count_ = transportedFaceCount;
173 template<
class TrackingData>
177 const label thisFacei,
178 const label neighbourCelli,
188 count_ = neighbourInfo.
count();
193 if (count_ >= neighbourInfo.
count())
200 count_ = neighbourInfo.
count();
208 template<
class TrackingData>
212 const label thisFacei,
222 count_ = neighbourInfo.
count();
227 if (count_ >= neighbourInfo.
count())
234 count_ = neighbourInfo.
count();
241 template<
class TrackingData>
264 return !(*
this == rhs);
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to (patch)face.
Transfers refinement levels such that slow transition between levels is maintained....
label refinementCount() const
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
Mesh consisting of general polyhedral cells.
bool operator==(const refinementData &) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A patch is a list of labels that address the faces in the global face list.
refinementData()
Construct null.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
bool equal(const refinementData &, TrackingData &td) const
Same (like operator==)
errorManip< error > abort(error &err)
bool operator!=(const refinementData &) const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
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.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.