Go to the documentation of this file.
30 template<
class TrackingData>
31 inline bool Foam::smoothData::update
33 const smoothData& svf,
39 if (!
valid(td) || (value_ < VSMALL))
42 value_ = svf.value()/scale;
47 else if (svf.value() > (1 + tol)*scale*value_)
50 value_ = svf.value()/scale;
80 template<
class TrackingData>
83 return value_ > -SMALL;
87 template<
class TrackingData>
100 template<
class TrackingData>
112 template<
class TrackingData>
122 template<
class TrackingData>
134 template<
class TrackingData>
146 return update(svf, td.maxRatio, tol, td);
150 template<
class TrackingData>
162 return update(svf, 1.0, tol, td);
167 template<
class TrackingData>
178 return update(svf, 1.0, tol, td);
182 template<
class TrackingData>
195 inline void Foam::smoothData::operator=
204 inline bool Foam::smoothData::operator==
209 return value_ == rhs.
value();
213 inline bool Foam::smoothData::operator!=
218 return !(*
this == rhs);
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to.
Mesh consisting of general polyhedral cells.
smoothData()
Construct null.
Helper class used by the fvc::smooth and fvc::spread functions.
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.
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.
bool equal(const smoothData &, TrackingData &td) const
Same (like operator==)
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring face.
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.
scalar value() const
Return value.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.