35template<
class TrackingData>
51 const scalar dist2 =
magSqr(pt -
w2.origin());
57 origin_ =
w2.origin();
62 const scalar
diff = distSqr_ - dist2;
70 if ((
diff < SMALL) || ((distSqr_ > SMALL) && (
diff/distSqr_ < tol)))
79 origin_ =
w2.origin();
104template<
class TrackingData>
107 return distSqr_ > -SMALL;
112template<
class TrackingData>
121 const scalar
diff =
mag(distSqr() -
w2.distSqr());
129 if ((distSqr() > SMALL) && ((
diff/distSqr()) < tol))
141template<
class TrackingData>
147 const point& faceCentre,
151 origin_ -= faceCentre;
155template<
class TrackingData>
169template<
class TrackingData>
175 const point& faceCentre,
180 origin_ += faceCentre;
185template<
class TrackingData>
189 const label thisCelli,
190 const label neighbourFacei,
208template<
class TrackingData>
212 const label thisFacei,
213 const label neighbourCelli,
231template<
class TrackingData>
235 const label thisFacei,
252template<
class TrackingData>
270 return origin_ == rhs.origin_;
279 return !(*
this == rhs);
bool valid() const
True if all internal ids are non-negative.
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
virtual bool update()
Update the mesh for both mesh motion and topology change.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
const vectorField & faceCentres() const
const vectorField & cellCentres() const
Holds information regarding nearest wall point. Used in wall distance calculation.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
bool equal(const wallPoint &, TrackingData &td) const
Test for equality, with TrackingData.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
bool sameGeometry(const polyMesh &, const wallPoint &, const scalar, TrackingData &td) const
Check for identical geometrical data (eg, cyclics checking)
wallPoint()
Default construct.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)