28 template<
class TrackingData>
29 inline bool Foam::smoothData::update
31 const smoothData& svf,
37 if (!
valid(td) || (value_ < VSMALL))
40 value_ = svf.value()/scale;
45 else if (svf.value() > (1 + tol)*scale*value_)
48 value_ = svf.value()/scale;
78 template<
class TrackingData>
81 return value_ > -SMALL;
85 template<
class TrackingData>
98 template<
class TrackingData>
110 template<
class TrackingData>
120 template<
class TrackingData>
132 template<
class TrackingData>
144 return update(svf, td.maxRatio, tol, td);
148 template<
class TrackingData>
160 return update(svf, 1.0, tol, td);
165 template<
class TrackingData>
176 return update(svf, 1.0, tol, td);
180 template<
class TrackingData>
193 inline void Foam::smoothData::operator=
202 inline bool Foam::smoothData::operator==
207 return value_ == rhs.
value();
211 inline bool Foam::smoothData::operator!=
216 return !(*
this == rhs);
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
bool sameGeometry(const polyMesh &, const smoothData &, const scalar, TrackingData &td) const
Check for identical geometrical data.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
smoothData()
Construct null.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
Helper class used by the fvc::smooth and fvc::spread functions.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to.
scalar value() const
Return value.
bool equal(const smoothData &, TrackingData &td) const
Same (like operator==)
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 smoothData &) const
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring face.