Go to the documentation of this file.
40 const label refinementCount,
44 refinementCount_(refinementCount),
51 template<
class TrackingData>
59 template<
class TrackingData>
73 template<
class TrackingData>
78 const label patchFacei,
79 const point& faceCentre,
86 template<
class TrackingData>
97 template<
class TrackingData>
102 const label patchFacei,
103 const point& faceCentre,
110 template<
class TrackingData>
114 const label thisCelli,
115 const label neighbourFacei,
138 count_ = refinementCount();
145 label transportedFaceCount;
150 transportedFaceCount =
max(0, neighbourInfo.
count()-2);
155 transportedFaceCount =
max(0, neighbourInfo.
count()-1);
158 if (count_ >= transportedFaceCount)
164 count_ = transportedFaceCount;
172 template<
class TrackingData>
176 const label thisFacei,
177 const label neighbourCelli,
178 const refinementData& neighbourInfo,
186 refinementCount_ = neighbourInfo.refinementCount();
187 count_ = neighbourInfo.count();
192 if (count_ >= neighbourInfo.count())
198 refinementCount_ = neighbourInfo.refinementCount();
199 count_ = neighbourInfo.count();
207 template<
class TrackingData>
211 const label thisFacei,
212 const refinementData& neighbourInfo,
220 refinementCount_ = neighbourInfo.refinementCount();
221 count_ = neighbourInfo.count();
226 if (count_ >= neighbourInfo.count())
232 refinementCount_ = neighbourInfo.refinementCount();
233 count_ = neighbourInfo.count();
240 template<
class TrackingData>
243 const refinementData& rhs,
253 inline bool Foam::refinementData::operator==
258 return count_ == rhs.count_ && refinementCount_ == rhs.refinementCount_;
262 inline bool Foam::refinementData::operator!=
267 return !(*
this == rhs);
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Transfers refinement levels such that slow transition between levels is maintained....
label refinementCount() const
bool valid(TrackingData &td) const
Mesh consisting of general polyhedral cells.
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.
label max(const labelHashSet &set, label maxValue=labelMin)
bool equal(const refinementData &, TrackingData &td) const
errorManip< error > abort(error &err)
#define FatalErrorInFunction
unsigned int count(const UList< bool > &bools, const bool val=true)
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const refinementData &neighbourInfo, const scalar tol, TrackingData &td)
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const refinementData &neighbourInfo, const scalar tol, TrackingData &td)
bool sameGeometry(const polyMesh &, const refinementData &, const scalar, TrackingData &td) const
void transform(const polyMesh &, const tensor &, TrackingData &td)