30 template<
class TrackingData>
31 inline bool Foam::sweepData::update
34 const point& position,
49 if (svf.value() >
value())
60 scalar dist2 =
magSqr(position - svf.origin());
90 template<
class TrackingData>
93 return value_ > -SMALL;
97 template<
class TrackingData>
110 template<
class TrackingData>
116 const point& faceCentre,
120 origin_ -= faceCentre;
124 template<
class TrackingData>
136 template<
class TrackingData>
142 const point& faceCentre,
147 origin_ += faceCentre;
151 template<
class TrackingData>
155 const label thisCelli,
162 return update(svf, mesh.
cellCentres()[thisCelli], tol, td);
166 template<
class TrackingData>
170 const label thisFacei,
177 return update(svf, mesh.
faceCentres()[thisFacei], tol, td);
182 template<
class TrackingData>
186 const label thisFacei,
192 return update(svf, mesh.
faceCentres()[thisFacei], tol, td);
196 template<
class TrackingData>
209 inline void Foam::sweepData::operator=
218 inline bool Foam::sweepData::operator==
227 inline bool Foam::sweepData::operator!=
232 return !(*
this == rhs);
bool operator==(const sweepData &) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const sweepData &svf, const scalar tol, TrackingData &td)
Influence of neighbouring face.
bool sameGeometry(const polyMesh &, const sweepData &, const scalar, TrackingData &td) const
Check for identical geometrical data.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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.
const point & origin() const
Return origin.
bool equal(const sweepData &, TrackingData &td) const
Same (like operator==)
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.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void transform(const polyMesh &, const tensor &, TrackingData &td)
Apply rotation matrix to any coordinates.
const vectorField & faceCentres() const
void operator=(const scalar value)
vector point
Point is a vector.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
dimensionSet transform(const dimensionSet &)