31 template<
class TrackingData>
32 inline bool Foam::LESModels::smoothDelta::deltaData::update
34 const smoothDelta::deltaData&
w2,
40 if (!
valid(td) || (delta_ < VSMALL))
43 delta_ =
w2.delta()/scale;
48 else if (
w2.delta() > (1 + tol)*scale*delta_)
51 delta_ =
w2.delta()/scale;
79 template<
class TrackingData>
89 template<
class TrackingData>
102 template<
class TrackingData>
114 template<
class TrackingData>
124 template<
class TrackingData>
136 template<
class TrackingData>
148 return update(neighbourWallInfo, td, tol, td);
152 template<
class TrackingData>
164 return update(neighbourWallInfo, 1.0, tol, td);
168 template<
class TrackingData>
179 return update(neighbourWallInfo, 1.0, tol, td);
183 template<
class TrackingData>
196 inline bool Foam::LESModels::smoothDelta::deltaData::operator==
201 return delta_ == rhs.delta_;
205 inline bool Foam::LESModels::smoothDelta::deltaData::operator!=
210 return !(*
this == rhs);
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
bool sameGeometry(const polyMesh &, const deltaData &, const scalar, TrackingData &td) const
Check for identical geometrical data (eg, cyclics checking)
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const deltaData &neighbourInfo, 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 (patch)face centre.
deltaData()
Default construct.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const deltaData &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
bool equal(const deltaData &, TrackingData &td) const
Test for equality, with TrackingData.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
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>.
Public class used by mesh-wave to propagate the delta-ratio.