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());
92 template<
class TrackingData>
95 return value_ > -SMALL;
99 template<
class TrackingData>
112 template<
class TrackingData>
118 const point& faceCentre,
122 origin_ -= faceCentre;
126 template<
class TrackingData>
138 template<
class TrackingData>
144 const point& faceCentre,
149 origin_ += faceCentre;
153 template<
class TrackingData>
157 const label thisCelli,
168 template<
class TrackingData>
172 const label thisFacei,
184 template<
class TrackingData>
188 const label thisFacei,
198 template<
class TrackingData>
211 inline void Foam::sweepData::operator=
220 inline bool Foam::sweepData::operator==
225 return origin() == rhs.
origin();
229 inline bool Foam::sweepData::operator!=
234 return !(*
this == rhs);
scalar value() const
Return value.
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Convert any absolute coordinates into relative to.
sweepData()
Construct null.
Helper class used by fvc::sweep function.
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
Reverse of leaveDomain.
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Mesh consisting of general polyhedral cells.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
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< 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)
Find the max value in labelHashSet, optionally limited by second argument.
bool equal(const sweepData &, TrackingData &td) const
Same (like operator==)
const point & origin() const
Return origin.
const vectorField & cellCentres() const
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const sweepData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
const vectorField & faceCentres() const
bool sameGeometry(const polyMesh &, const sweepData &, const scalar, TrackingData &td) const
Check for identical geometrical data.
vector point
Point is a vector.
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const sweepData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring face.
void operator=(const scalar value)