Go to the documentation of this file.
31 template<
class TrackingData>
32 inline bool Foam::smoothData::update
34 const smoothData& svf,
40 if (!
valid(td) || (value_ < VSMALL))
43 value_ = svf.value()/scale;
48 else if (svf.value() > (1 + tol)*scale*value_)
51 value_ = svf.value()/scale;
81 template<
class TrackingData>
84 return value_ > -SMALL;
88 template<
class TrackingData>
101 template<
class TrackingData>
113 template<
class TrackingData>
123 template<
class TrackingData>
135 template<
class TrackingData>
147 return update(svf, td.maxRatio, tol, td);
151 template<
class TrackingData>
163 return update(svf, 1.0, tol, td);
168 template<
class TrackingData>
179 return update(svf, 1.0, tol, td);
183 template<
class TrackingData>
196 inline bool Foam::smoothData::operator==
201 return value_ == rhs.value_;
205 inline bool Foam::smoothData::operator!=
210 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)
Mesh consisting of general polyhedral cells.
smoothData()
Default construct.
Helper class used by the fvc::smooth and fvc::spread functions.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
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
Test for equality, with TrackingData.
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 (eg, cyclics checking)
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.