35 template<
class TrackingData>
36 inline bool wallPointData<Type>::update
39 const wallPointData<Type>& w2,
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,
129 const vectorField& cellCentres = mesh.primitiveMesh::cellCentres();
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],
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Holds information regarding nearest wall point. Used in wall distance calculation.
const vectorField & faceCentres() const
Holds information (coordinate and normal) regarding nearest wall point.
vector point
Point is a vector.
wallPointData()
Construct null.
Mesh consisting of general polyhedral cells.