91 <<
"zero or negative pyramid volume: " << -pyrVol
92 <<
" for face " << facei
100 return sumVc/(sumV + VSMALL);
107 const UList<point>&
points
132 <<
"zero or negative pyramid volume: " << -pyrVol
133 <<
" for face " << facei
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
vector centre(const labelUList &pointLabels, const UList< point > &points) const
Centroid of the cell.
scalar mag(const labelUList &pointLabels, const UList< point > &points) const
Cell volume.
A Vector of values with double precision.
A face is a list of labels corresponding to mesh vertices.
scalar mag(const UList< point > &points) const
Return scalar magnitude - returns volume of pyramid.
Point centre(const UList< point > &points) const
Return centre (centroid).
#define WarningInFunction
Report a warning using Foam::Warning.
static Foam::doubleVector pointsAverage(const UList< point > &points, const labelUList &pointLabels)
Ostream & endl(Ostream &os)
Add newline and flush stream.
double doubleScalar
A typedef for double.
Vector< double > doubleVector
pyramid< point, const point &, const face & > pyramidPointFaceRef
A pyramid using referred point and face.
vector point
Point is a vector.
static constexpr const zero Zero
Global zero (0).
UList< label > labelUList
A UList of labels.
labelList pointLabels(nPoints, -1)
#define forAll(list, i)
Loop across all elements in list.