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();
125 template<
class TrackingData>
128 return distSqr_ > -small;
133 template<
class TrackingData>
162 template<
class TrackingData>
168 const point& faceCentre,
172 origin_ -= faceCentre;
176 template<
class TrackingData>
190 template<
class TrackingData>
196 const point& faceCentre,
201 origin_ += faceCentre;
206 template<
class TrackingData>
210 const label thisCelli,
211 const label neighbourFacei,
229 template<
class TrackingData>
233 const label thisFacei,
234 const label neighbourCelli,
251 template<
class TrackingData>
255 const label thisFacei,
272 template<
class TrackingData>
293 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 &)