32 template<
class TrackingData>
33 inline bool Foam::wallPoint::update
48 scalar dist2 =
magSqr(pt - w2.origin());
54 origin_ = w2.origin();
59 scalar diff = distSqr_ - dist2;
67 if ((diff < small) || ((distSqr_ > small) && (diff/distSqr_ < tol)))
76 origin_ = w2.origin();
132 template<
class TrackingData>
135 return distSqr_ > -small;
140 template<
class TrackingData>
169 template<
class TrackingData>
175 const point& faceCentre,
179 origin_ -= faceCentre;
183 template<
class TrackingData>
197 template<
class TrackingData>
203 const point& faceCentre,
208 origin_ += faceCentre;
213 template<
class TrackingData>
217 const label thisCelli,
218 const label neighbourFacei,
236 template<
class TrackingData>
240 const label thisFacei,
241 const label neighbourCelli,
258 template<
class TrackingData>
262 const label thisFacei,
279 template<
class TrackingData>
300 return !(*
this == rhs);
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
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< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
bool sameGeometry(const polyMesh &, const wallPoint &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to (patch)face.
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
bool operator!=(const wallPoint &) const
bool operator==(const wallPoint &) const
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
const vectorField & cellCentres() const
wallPoint()
Construct null.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Holds information regarding nearest wall point. Used in wall distance calculation.
const vectorField & faceCentres() const
bool equal(const wallPoint &, TrackingData &td) const
Same (like operator==)
const point & origin() const
vector point
Point is a vector.
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
A patch is a list of labels that address the faces in the global face list.
dimensionSet transform(const dimensionSet &)