32 template<
class TrackingData>
33 inline bool Foam::pointEdgeStructuredWalk::update
35 const pointEdgeStructuredWalk&
w2,
43 dist_ =
w2.dist_ +
mag(point0_-
w2.previousPoint_);
44 previousPoint_ = point0_;
72 const point& previousPoint,
78 previousPoint_(previousPoint),
110 template<
class TrackingData>
118 template<
class TrackingData>
134 if ((dist() > small) && ((
diff/dist()) < tol))
146 template<
class TrackingData>
150 const label patchFacei,
156 previousPoint_ =
transform.transformPosition(previousPoint_);
161 template<
class TrackingData>
174 return update(edgeInfo, tol, td);
184 template<
class TrackingData>
196 return update(newPointInfo, tol, td);
206 template<
class TrackingData>
214 return update(newPointInfo, tol, td);
219 template<
class TrackingData>
232 return update(pointInfo, tol, td);
241 template<
class TrackingData>
254 inline bool Foam::pointEdgeStructuredWalk::operator==
259 return previousPoint_ == rhs.previousPoint_;
263 inline bool Foam::pointEdgeStructuredWalk::operator!=
268 return !(*
this == rhs);
Determines length of string of edges walked to point.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgeI, const pointEdgeStructuredWalk &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on point.
bool sameGeometry(const pointEdgeStructuredWalk &, const scalar tol, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
pointEdgeStructuredWalk()
Construct null.
const vector & data() const
bool equal(const pointEdgeStructuredWalk &, TrackingData &) const
Same (like operator==)
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
bool updateEdge(const polyMesh &mesh, const label edgeI, const label pointi, const pointEdgeStructuredWalk &pointInfo, const scalar tol, TrackingData &td)
Influence of point on edge.
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
dimensionSet transform(const dimensionSet &)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)