31 inline bool Foam::pointEdgeDist::update
34 const pointEdgeDist& ped2,
40 if (distSqr_ < 0 || ped2.distSqr_ < 0)
45 const scalar dist2 =
magSqr(pt - ped2.origin());
51 origin_ = ped2.origin();
53 if (distSqr_ > td.maxDistSqr)
63 const scalar
diff = distSqr_ - dist2;
71 if ((
diff < small) || ((distSqr_ > small) && (
diff/distSqr_ < tol)))
80 origin_ = ped2.origin();
82 if (distSqr_ > td.maxDistSqr)
136 return distSqr_ >= 0 &&
valid(td);
143 const label patchFacei,
148 origin_ =
transform.transformPosition(origin_);
162 return update(td.
points[pointi], edgeInfo, tol, td);
175 return update(td.
points[pointi], newPointInfo, tol, td);
190 return update(
e.centre(td.
points), pointInfo, tol, td);
206 inline bool Foam::pointEdgeDist::operator==
212 return (origin() == rhs.origin()) && (distSqr() == rhs.distSqr());
216 inline bool Foam::pointEdgeDist::operator!=
222 return !(*
this == rhs);
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Class used to pass data into container.
const pointField & points
Holds information regarding nearest wall point. Used in PointEdgeWave. (so not standard FaceCellWave)...
bool valid(const data &td) const
Check whether origin has been changed at all or.
bool set(const data &td) const
Check whether origin and distSqr have been set.
pointEdgeDist()
Construct null.
bool equal(const pointEdgeDist &, data &td) const
Equivalent to operator== with data.
bool updatePoint(const polyMesh &mesh, const label pointi, const label edgei, const pointEdgeDist &edgeinfo, const scalar tol, data &td)
Influence of edge on point.
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, data &td)
Transform across an interface.
bool updateEdge(const polyMesh &mesh, const label edgei, const label pointi, const pointEdgeDist &pointInfo, const scalar tol, data &td)
Influence of point on edge.
const point & origin() const
Mesh consisting of general polyhedral cells.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
bool valid(const PtrList< ModelType > &l)
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 > &)
void transform(GeometricField< Type, GeoMesh > &rtf, const GeometricField< tensor, GeoMesh > &trf, const GeometricField< Type, GeoMesh > &tf)
vector point
Point is a vector.
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
tmp< DimensionedField< scalar, GeoMesh, Field > > magSqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)