Go to the documentation of this file.
35 template<
class TrackingData>
44 scalar dist2 =
magSqr(pt - w2.origin());
48 scalar
diff = distSqr() - dist2;
56 if ((
diff < SMALL) || ((distSqr() > SMALL) && (
diff/distSqr() < tol)))
67 origin() = w2.origin();
118 template<
class TrackingData>
122 const label thisCellI,
133 cellCentres[thisCellI],
143 template<
class TrackingData>
147 const label thisFaceI,
158 faceCentres[thisFaceI],
168 template<
class TrackingData>
172 const label thisFaceI,
182 faceCentres[thisFaceI],
Holds information regarding nearest wall point. Used in wall distance calculation.
wallPointData()
Construct null.
const Type & data() const
Mesh consisting of general polyhedral cells.
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Holds information (coordinate and normal) regarding nearest wall point.
Database for solution data, solver performance and other reduced data.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
bool update(const point &, const wallPointData< Type > &w2, const scalar tol, TrackingData &td)
Evaluate distance to point. Update distSqr, origin from whomever.