31 template<
class TrackingData>
32 inline bool Foam::pointEdgePoint::update
35 const pointEdgePoint&
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();
109 template<
class TrackingData>
116 template<
class TrackingData>
120 const label patchFacei,
126 origin_ =
transform.transformPosition(origin_);
131 template<
class TrackingData>
142 return update(mesh.
points()[pointi], edgeInfo, tol, td);
147 template<
class TrackingData>
157 return update(mesh.
points()[pointi], newPointInfo, tol, td);
162 template<
class TrackingData>
174 return update(
e.centre(mesh.
points()), pointInfo, tol, td);
178 template<
class TrackingData>
194 return (origin() == rhs.
origin()) && (distSqr() == rhs.
distSqr());
201 return !(*
this == rhs);
213 return os << wDist.origin() <<
token::SPACE << wDist.distSqr();
223 return is >> wDist.origin_ >> wDist.distSqr_;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
bool equal(const pointEdgePoint &, TrackingData &td) const
Same (like operator==)
pointEdgePoint()
Construct null.
bool operator==(const pointEdgePoint &) const
bool operator!=(const pointEdgePoint &) const
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgeI, const pointEdgePoint &edgeInfo, const scalar tol, TrackingData &td)
Influence of edge on point.
bool updateEdge(const polyMesh &mesh, const label edgeI, const label pointi, const pointEdgePoint &pointInfo, const scalar tol, TrackingData &td)
Influence of point on edge.
const point & origin() const
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
Mesh consisting of general polyhedral cells.
virtual const pointField & points() const
Return raw points.
A patch is a list of labels that address the faces in the global face list.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
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 > &)
vector point
Point is a vector.
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
dimensionSet transform(const dimensionSet &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< scalar > magSqr(const dimensioned< Type > &)