34 template<
class TrackingData>
35 inline bool Foam::pointEdgeStructuredWalk::update
37 const pointEdgeStructuredWalk&
w2,
45 dist_ =
w2.dist_ +
mag(point0_-
w2.previousPoint_);
46 previousPoint_ = point0_;
72 const point& previousPoint,
79 previousPoint_(previousPoint),
94 template<
class TrackingData>
102 template<
class TrackingData>
118 if ((dist() > SMALL) && ((
diff/dist()) < tol))
130 template<
class TrackingData>
133 const polyPatch&
patch,
134 const label patchPointi,
139 previousPoint_ -= coord;
143 template<
class TrackingData>
156 template<
class TrackingData>
160 const label patchPointi,
166 previousPoint_ += coord;
171 template<
class TrackingData>
192 template<
class TrackingData>
204 return update(newPointInfo, tol,
td);
212 template<
class TrackingData>
225 template<
class TrackingData>
245 template<
class TrackingData>
258 inline bool Foam::pointEdgeStructuredWalk::operator==
263 return previousPoint_ == rhs.previousPoint_;
267 inline bool Foam::pointEdgeStructuredWalk::operator!=
272 return !(*
this == rhs);
bool sameGeometry(const pointEdgeStructuredWalk &, const scalar tol, TrackingData &td) const
Check for identical geometrical data (eg, cyclics checking)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
pointEdgeStructuredWalk()
Default construct.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgeI, const pointEdgeStructuredWalk &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on point.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void enterDomain(const polyPatch &patch, const label patchPointi, const point &pos, TrackingData &td)
Convert relative origin to absolute by adding entering point.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
bool inZone() const
True if starting point is valid (ie, not point::max)
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
void transform(const tensor &rotTensor, TrackingData &td)
Apply rotation matrix to origin.
Determines length of string of edges walked to point.
void leaveDomain(const polyPatch &patch, const label patchPointi, const point &pos, TrackingData &td)
Convert origin to relative vector to leaving point.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
bool equal(const pointEdgeStructuredWalk &, TrackingData &) const
Test for equality, with TrackingData.
bool updateEdge(const polyMesh &mesh, const label edgeI, const label pointi, const pointEdgeStructuredWalk &pointInfo, const scalar tol, TrackingData &td)
Influence of point on edge.
vector point
Point is a vector.
const std::string patch
OpenFOAM patch number as a std::string.
Mesh consisting of general polyhedral cells.
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.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Tensor of scalars, i.e. Tensor<scalar>.
static constexpr const zero Zero
Global zero (0)