34 template<
class TrackingData>
35 inline bool wallPointYPlus::update
38 const wallPointYPlus& w2,
43 scalar dist2 =
magSqr(pt - w2.origin());
47 scalar diff =
distSqr() - dist2;
55 if ((diff < small) || ((
distSqr() > small) && (diff/
distSqr() < tol)))
112 template<
class TrackingData>
116 const label thisCelli,
117 const label neighbourFacei,
123 const vectorField& cellCentres = mesh.primitiveMesh::cellCentres();
127 cellCentres[thisCelli],
136 template<
class TrackingData>
140 const label thisFacei,
141 const label neighbourCelli,
151 faceCentres[thisFacei],
160 template<
class TrackingData>
164 const label thisFacei,
174 faceCentres[thisFacei],
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar sqrt(const dimensionedScalar &ds)
const scalar & data() const
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
bool updateCell(const polyMesh &mesh, const label thisCelli, const label neighbourFacei, const wallPointYPlus &neighbourWallInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
wallPointYPlus()
Construct null.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const vectorField & faceCentres() const
Holds information (coordinate and normal) regarding nearest wall point.
const point & origin() const
vector point
Point is a vector.
static scalar yPlusCutOff
cut-off value for y+
Mesh consisting of general polyhedral cells.
Holds information (coordinate and yStar) regarding nearest wall point.
bool updateFace(const polyMesh &mesh, const label thisFacei, const label neighbourCelli, const wallPointYPlus &neighbourWallInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.