31 template<
class TrackingData>
32 inline bool Foam::externalPointEdgePoint::update
35 const externalPointEdgePoint& w2,
40 scalar dist2 =
magSqr(pt - w2.origin());
46 origin_ = w2.origin();
51 scalar diff = distSqr_ - dist2;
59 if ((diff < small) || ((distSqr_ > small) && (diff/distSqr_ < tol)))
68 origin_ = w2.origin();
75 template<
class TrackingData>
76 inline bool Foam::externalPointEdgePoint::update
86 distSqr_ = w2.distSqr();
87 origin_ = w2.origin();
92 scalar diff = distSqr_ - w2.distSqr();
100 if ((diff < small) || ((distSqr_ > small) && (diff/distSqr_ < tol)))
108 distSqr_ = w2.distSqr();
109 origin_ = w2.origin();
150 template<
class TrackingData>
158 template<
class TrackingData>
186 template<
class TrackingData>
190 const label patchPointi,
199 template<
class TrackingData>
210 template<
class TrackingData>
214 const label patchPointi,
224 template<
class TrackingData>
235 return update(td.points_[pointi], edgeInfo, tol, td);
239 template<
class TrackingData>
249 return update(td.points_[pointi], newPointInfo, tol, td);
253 template<
class TrackingData>
261 return update(newPointInfo, tol, td);
265 template<
class TrackingData>
277 return update(e.
centre(td.points_), pointInfo, tol, td);
281 template<
class TrackingData>
294 inline bool Foam::externalPointEdgePoint::operator==
304 inline bool Foam::externalPointEdgePoint::operator!=
310 return !(*
this == rhs);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const Vector< scalar > max
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgeI, const externalPointEdgePoint &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on point.
point centre(const pointField &) const
Return centre (centroid)
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
void transform(const tensor &rotTensor, TrackingData &td)
Apply rotation matrix to origin.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
externalPointEdgePoint()
Construct null.
bool sameGeometry(const externalPointEdgePoint &, const scalar tol, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
const point & origin() const
vector point
Point is a vector.
dimensioned< scalar > mag(const dimensioned< Type > &)
const doubleScalar e
Elementary charge.
Mesh consisting of general polyhedral cells.
bool equal(const externalPointEdgePoint &, TrackingData &td) const
Equivalent to operator== with TrackingData.
A patch is a list of labels that address the faces in the global face list.
void leaveDomain(const polyPatch &patch, const label patchPointi, const point &pos, TrackingData &td)
Convert origin to relative vector to leaving point.
bool operator==(const externalPointEdgePoint &) const
dimensionSet transform(const dimensionSet &)
bool updateEdge(const polyMesh &mesh, const label edgeI, const label pointi, const externalPointEdgePoint &pointInfo, const scalar tol, TrackingData &td)
Influence of point on edge.
void enterDomain(const polyPatch &patch, const label patchPointi, const point &pos, TrackingData &td)
Convert relative origin to absolute by adding entering point.