Go to the documentation of this file.
37 template<
class TrackingData>
38 inline bool directionalWallPointData<Type>::update
41 const directionalWallPointData<Type>&
w2,
53 vector d(pt - this->origin());
56 scalar currentDistSqr(
magSqr(d));
58 scalar
diff = currentDistSqr - dist2;
69 || ((currentDistSqr > SMALL) && (
diff/currentDistSqr < tol))
80 this->distSqr() =
magSqr(pt -
w2.origin());
81 this->origin() =
w2.origin();
82 this->data() =
w2.data();
116 template<
class TrackingData>
120 const label thisCelli,
131 cellCentres[thisCelli],
141 template<
class TrackingData>
145 const label thisFacei,
156 faceCentres[thisFacei],
166 template<
class TrackingData>
170 const label thisFacei,
180 faceCentres[thisFacei],
bool updateCell(const polyMesh &mesh, const label thisCelli, const label neighbourFacei, const directionalWallPointData< Type > &neighbourWallInfo, const scalar tol, TrackingData &td)
Mesh consisting of general polyhedral cells.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
Holds information (coordinate and normal) regarding the nearest wall point.
scalar diff(const triad &A, const triad &B)
Generic templated field type.
directionalWallPointData()
Vector< scalar > vector
A scalar version of the templated Vector.
const vectorField & faceCentres() const
Holds information (coordinate and normal) regarding nearest wall point.
vector point
Point is a vector.
bool updateFace(const polyMesh &mesh, const label thisFacei, const label neighbourCelli, const directionalWallPointData< Type > &neighbourWallInfo, const scalar tol, TrackingData &td)
Database for solution data, solver performance and other reduced data.