Go to the documentation of this file.
35 template<
class TrackingData>
36 inline bool Foam::wallPoint::update
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();
104 template<
class TrackingData>
107 return distSqr_ > -SMALL;
112 template<
class TrackingData>
121 const scalar
diff =
mag(distSqr() -
w2.distSqr());
129 if ((distSqr() > SMALL) && ((
diff/distSqr()) < tol))
141 template<
class TrackingData>
147 const point& faceCentre,
151 origin_ -= faceCentre;
155 template<
class TrackingData>
169 template<
class TrackingData>
175 const point& faceCentre,
180 origin_ += faceCentre;
185 template<
class TrackingData>
189 const label thisCelli,
190 const label neighbourFacei,
208 template<
class TrackingData>
212 const label thisFacei,
213 const label neighbourCelli,
231 template<
class TrackingData>
235 const label thisFacei,
252 template<
class TrackingData>
265 inline bool Foam::wallPoint::operator==
270 return origin_ == rhs.origin_;
274 inline bool Foam::wallPoint::operator!=
279 return !(*
this == rhs);
bool sameGeometry(const polyMesh &, const wallPoint &, const scalar, TrackingData &td) const
Holds information regarding nearest wall point. Used in wall distance calculation.
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
bool valid(TrackingData &td) const
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
dimensionSet transform(const dimensionSet &ds)
Mesh consisting of general polyhedral cells.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
scalar diff(const triad &A, const triad &B)
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A patch is a list of labels that address the faces in the global face list.
label max(const labelHashSet &set, label maxValue=labelMin)
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const wallPoint &neighbourInfo, const scalar tol, TrackingData &td)
const vectorField & cellCentres() const
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const vectorField & faceCentres() const
bool equal(const wallPoint &, TrackingData &td) const
vector point
Point is a vector.
void transform(const polyMesh &, const tensor &, TrackingData &td)