Go to the documentation of this file.
36 scalar inflationFraction
49 if (inflationFraction > SMALL)
51 vector inflation = inflationFraction*vector::one*
mag(bb.
span());
71 if (owner[nFace] != celli)
90 label nearestCelli = 0;
91 scalar minProximity =
magSqr(centres[0] - location);
93 for (
label celli = 1; celli < centres.size(); celli++)
95 scalar proximity =
magSqr(centres[celli] - location);
97 if (proximity < minProximity)
100 minProximity = proximity;
116 label celli = findNearestCell(location);
119 if (pointInCell(location, celli))
125 bool cellFound =
false;
128 while ((!cellFound) && (
n < nCells()))
130 if (pointInCell(location,
n))
const point & max() const
Maximum describing the bounding box.
#define forAll(list, i)
Loop across all elements in list.
virtual const labelList & faceOwner() const =0
Face face-owner addresing.
const cellList & cells() const
bool pointInCell(const point &p, label celli) const
Is the point in the cell.
dimensioned< scalar > mag(const dimensioned< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
vector span() const
The bounding box span (from minimum to maximum)
label findNearestCell(const point &location) const
Find the cell with the nearest cell centre to location.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
label findCell(const point &location) const
Find cell enclosing this location (-1 if not in mesh)
const point & min() const
Minimum describing the bounding box.
bool contains(const point &) const
Contains point? (inside or on edge)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const vectorField & faceCentres() const
A bounding box defined in terms of the points at its extremities.
bool pointInCellBB(const point &p, label celli) const
Is the point in the cell bounding box.
vector point
Point is a vector.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
A normal distribution model.
const vectorField & faceAreas() const