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;
82 template<
class TrackingData>
85 return value_ > -small;
89 template<
class TrackingData>
102 template<
class TrackingData>
106 const label patchFacei,
113 template<
class TrackingData>
125 return update(svf, td.maxRatio, tol, td);
129 template<
class TrackingData>
141 return update(svf, 1.0, tol, td);
146 template<
class TrackingData>
157 return update(svf, 1.0, tol, td);
161 template<
class TrackingData>
182 return value_ == rhs.
value();
188 return !(*
this == rhs);
bool equal(const smoothData &, TrackingData &td) const
Same (like operator==)
bool sameGeometry(const fvMesh &, const smoothData &, const scalar, TrackingData &td) const
Check for identical geometrical data.
bool operator==(const smoothData &) const
smoothData()
Construct null.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Helper class used by the fvc::smooth and fvc::spread functions.
void operator=(const scalar value)
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
An ordered pair of two objects of type <T> with first() and second() elements.
bool operator!=(const smoothData &) const
bool updateFace(const fvMesh &, const labelPair &thisPatchAndFacei, const label neighbourCelli, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
Mesh data needed to do the Finite Volume discretisation.
bool updateCell(const fvMesh &, const label thisCelli, const labelPair &neighbourPatchAndFacei, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring face.
void transform(const fvPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
scalar value() const
Return value.