Go to the documentation of this file.
33 template<
class TrackingData>
45 const scalar dist2 =
magSqr(pt -
w2.origin_[index2]);
116 template<
class TrackingData>
119 return origin_.size();
124 template<
class TrackingData>
138 template<
class TrackingData>
143 const label patchFacei,
144 const point& faceCentre,
148 for (
auto& o : origin_)
156 template<
class TrackingData>
164 for (
auto& o : origin_)
172 template<
class TrackingData>
176 const polyPatch&
patch,
177 const label patchFacei,
178 const point& faceCentre,
183 for (
auto& o : origin_)
191 template<
class TrackingData>
194 const polyMesh&
mesh,
195 const label thisCelli,
196 const label neighbourFacei,
197 const wallPoints& neighbourInfo,
204 bool hasChanged =
false;
205 forAll(neighbourInfo.surface_, i)
207 const FixedList<label, 3>& nbrSurface = neighbourInfo.surface_[i];
210 label index = surface_.find(nbrSurface);
214 origin_.append(neighbourInfo.origin_[i]);
215 distSqr_.append(
magSqr(cc-neighbourInfo.origin_[i]));
216 surface_.append(nbrSurface);
223 update(cc, index, neighbourInfo, i, tol, td)
233 template<
class TrackingData>
237 const label thisFacei,
238 const label neighbourCelli,
245 bool hasChanged =
false;
247 if (!td.isBlockedFace_[thisFacei])
256 label index = surface_.find(nbrSurface);
260 origin_.append(neighbourInfo.
origin_[i]);
262 surface_.append(nbrSurface);
269 update(fc, index, neighbourInfo, i, tol, td)
280 template<
class TrackingData>
284 const label thisFacei,
291 bool hasChanged =
false;
293 if (!td.isBlockedFace_[thisFacei])
302 const label index = surface_.find(nbrSurface);
306 origin_.append(neighbourInfo.
origin_[i]);
308 surface_.append(nbrSurface);
315 update(fc, index, neighbourInfo, i, tol, td)
325 template<
class TrackingData>
338 inline bool Foam::wallPoints::operator==
351 inline bool Foam::wallPoints::operator!=
356 return !(*
this == rhs);
DynamicList< scalar > distSqr_
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
bool valid(TrackingData &td) const
void transform(const polyMesh &, const tensor &, TrackingData &td)
DynamicList< point > origin_
DynamicList< FixedList< label, 3 > > surface_
dimensionSet transform(const dimensionSet &ds)
Mesh consisting of general polyhedral cells.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const wallPoints &neighbourInfo, const scalar tol, TrackingData &td)
scalar diff(const triad &A, const triad &B)
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.
bool update(const point &pt, const label index1, const wallPoints &w2, const label index2, const scalar tol, TrackingData &td)
bool sameGeometry(const polyMesh &, const wallPoints &, const scalar, TrackingData &td) const
void enterDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
void leaveDomain(const polyMesh &, const polyPatch &, const label patchFacei, const point &faceCentre, TrackingData &td)
const vectorField & cellCentres() const
const vectorField & faceCentres() const
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const wallPoints &neighbourInfo, const scalar tol, TrackingData &td)
vector point
Point is a vector.
For use with FaceCellWave. Determines topological distance to starting faces.
bool equal(const wallPoints &, TrackingData &) const
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.