32 template<
class TrackingData>
134 template<
class TrackingData>
137 return valid(td) ?
sqrt(distSqr_) : great;
141 template<
class TrackingData>
144 return distSqr_ > -small;
148 template<
class TrackingData>
156 const scalar
diff =
mag(distSqr() -
w2.distSqr());
160 || ((distSqr() > small) && (
diff/distSqr() < tol));
164 template<
class TrackingData>
172 transform.transformPosition(points_, points_);
176 template<
class TrackingData>
189 inline bool Foam::wallFace::operator==
194 return points() == rhs.points();
198 inline bool Foam::wallFace::operator!=
203 return !(*
this == rhs);
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,...
scalar distance() const
Return distance to hit.
A face is a list of labels corresponding to mesh vertices.
pointHit nearestPoint(const point &p, const pointField &) const
Return nearest point to face.
Holds information regarding nearest wall point. Used in wall distance calculation.
wallFace()
Construct null.
scalar dist(TrackingData &td) const
bool equal(const wallFace &, TrackingData &td) const
Test equality.
void transform(const transformer &transform, TrackingData &td)
Transform across an interface.
bool update(const point &pt, const wallFace &w2, const scalar tol, TrackingData &td)
Evaluate distance to point. Update distSqr, origin from whomever.
bool valid(TrackingData &td) const
Check whether the wallFace has been changed at all or still.
const pointField & points() const
bool sameGeometry(const wallFace &, const scalar, TrackingData &td) const
Check for identical geometrical data. Used for checking.
bool valid(const PtrList< ModelType > &l)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Istream & operator>>(Istream &, pistonPointEdgeData &)
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 > &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.