35 template<
class TrackingData>
36 inline bool Foam::pointEdgePoint::update
39 const pointEdgePoint&
w2,
44 const scalar dist2 =
magSqr(pt -
w2.origin());
50 origin_ =
w2.origin();
55 const scalar
diff = distSqr_ - dist2;
63 if ((
diff < SMALL) || ((distSqr_ > SMALL) && (
diff/distSqr_ < tol)))
72 origin_ =
w2.origin();
80 template<
class TrackingData>
81 inline bool Foam::pointEdgePoint::update
83 const pointEdgePoint&
w2,
91 distSqr_ =
w2.distSqr();
92 origin_ =
w2.origin();
97 const scalar
diff = distSqr_ -
w2.distSqr();
105 if ((
diff < SMALL) || ((distSqr_ > SMALL) && (
diff/distSqr_ < tol)))
113 distSqr_ =
w2.distSqr();
114 origin_ =
w2.origin();
143 template<
class TrackingData>
151 template<
class TrackingData>
167 if ((distSqr() > SMALL) && ((
diff/distSqr()) < tol))
179 template<
class TrackingData>
182 const polyPatch&
patch,
183 const label patchPointi,
192 template<
class TrackingData>
205 template<
class TrackingData>
209 const label patchPointi,
220 template<
class TrackingData>
236 template<
class TrackingData>
251 template<
class TrackingData>
264 template<
class TrackingData>
280 template<
class TrackingData>
293 inline bool Foam::pointEdgePoint::operator==
298 return distSqr_ == rhs.distSqr_ && origin_ == rhs.origin_;
302 inline bool Foam::pointEdgePoint::operator!=
307 return !(*
this == rhs);
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
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.
pointEdgePoint()
Default construct. Max point.
void transform(const tensor &rotTensor, TrackingData &td)
Apply rotation matrix to origin.
virtual const pointField & points() const
Return raw points.
bool updateEdge(const polyMesh &mesh, const label edgeI, const label pointi, const pointEdgePoint &pointInfo, const scalar tol, TrackingData &td)
Influence of point on edge.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgeI, const pointEdgePoint &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on point.
const dimensionedScalar e
Elementary charge.
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
void leaveDomain(const polyPatch &patch, const label patchPointi, const point &pos, TrackingData &td)
Convert origin to relative vector to leaving point.
bool sameGeometry(const pointEdgePoint &, const scalar tol, TrackingData &td) const
Check for identical geometrical data (eg, cyclics checking)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
vector point
Point is a vector.
const std::string patch
OpenFOAM patch number as a std::string.
bool equal(const pointEdgePoint &, TrackingData &td) const
Test for equality, with TrackingData.
Mesh consisting of general polyhedral cells.
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
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>.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)