33template<
class TrackingData>
34inline bool Foam::wallPointData<Type>::update
37 const wallPointData<Type>&
w2,
42 const scalar dist2 =
magSqr(pt -
w2.origin());
46 const scalar
diff = distSqr() - dist2;
54 if ((diff < SMALL) || ((distSqr() > SMALL) && (diff/distSqr() < tol)))
65 origin() =
w2.origin();
100template<
class TrackingData>
104 const label thisCelli,
115 cellCentres[thisCelli],
125template<
class TrackingData>
129 const label thisFacei,
140 faceCentres[thisFacei],
150template<
class TrackingData>
154 const label thisFacei,
164 faceCentres[thisFacei],
Mesh consisting of general polyhedral cells.
Holds information (coordinate and normal) regarding nearest wall point.
bool updateCell(const polyMesh &mesh, const label thisCelli, const label neighbourFacei, const wallPointData< Type > &neighbourWallInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
wallPointData()
Default construct.
bool updateFace(const polyMesh &mesh, const label thisFacei, const label neighbourCelli, const wallPointData< Type > &neighbourWallInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
const Type & data() const
Holds information regarding nearest wall point. Used in wall distance calculation.
const point & origin() const
wallPoint()
Default construct.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
Field< vector > vectorField
Specialisation of Field<T> for vector.
vector point
Point is a vector.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)