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>
151 template<
class TrackingData>
168 template<
class TrackingData>
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 equal(const smoothData &, TrackingData &td) const
Test for equality, with TrackingData.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
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.
smoothData()
Default construct.
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 (patch)face centre.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
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.
Tensor of scalars, i.e. Tensor<scalar>.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const smoothData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring face.