Go to the documentation of this file.
32 template<
class TrackingData>
33 inline bool Foam::sweepData::update
36 const point& position,
51 if (svf.value() >
value())
62 scalar dist2 =
magSqr(position - svf.origin());
96 template<
class TrackingData>
99 return value_ > -SMALL;
103 template<
class TrackingData>
116 template<
class TrackingData>
122 const point& faceCentre,
126 origin_ -= faceCentre;
130 template<
class TrackingData>
142 template<
class TrackingData>
148 const point& faceCentre,
153 origin_ += faceCentre;
157 template<
class TrackingData>
161 const label thisCelli,
172 template<
class TrackingData>
176 const label thisFacei,
188 template<
class TrackingData>
192 const label thisFacei,
202 template<
class TrackingData>
215 inline bool Foam::sweepData::operator==
220 return origin_ == rhs.origin_;
224 inline bool Foam::sweepData::operator!=
229 return !(*
this == rhs);
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Helper class used by fvc::sweep function.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
bool valid(TrackingData &td) const
dimensionSet transform(const dimensionSet &ds)
Mesh consisting of general polyhedral cells.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
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.
label max(const labelHashSet &set, label maxValue=labelMin)
bool equal(const sweepData &, TrackingData &td) const
sweepData & operator=(const sweepData &)=default
const point & origin() const
const vectorField & cellCentres() const
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const sweepData &svf, const scalar tol, TrackingData &td)
const vectorField & faceCentres() const
bool sameGeometry(const polyMesh &, const sweepData &, const scalar, TrackingData &td) const
vector point
Point is a vector.
void transform(const polyMesh &, const tensor &, TrackingData &td)
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const sweepData &svf, const scalar tol, TrackingData &td)