43 cEst += points[pointLabels[i]];
47 cEst /= scalar(pointLabels.
size());
55 const faceList cellFaces = faces(pointLabels);
59 const face& curFace = cellFaces[i];
71 <<
"zero or negative pyramid volume: " << -pyrVol
84 return sumVc/(sumV + vSmall);
100 cEst += points[pointLabels[i]];
104 cEst /= scalar(pointLabels.
size());
113 const faceList cellFaces = faces(pointLabels);
117 const face& curFace =cellFaces[i];
129 <<
"zero or negative pyramid volume: " << -pyrVol
#define forAll(list, i)
Loop across all elements in list.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
vector centre(const labelList &pointLabels, const pointField &points) const
Vector centroid.
scalar mag(const labelList &pointLabels, const pointField &points) const
Cell volume.
#define WarningInFunction
Report a warning using Foam::Warning.
dimensioned< scalar > mag(const dimensioned< Type > &)
A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid. A pyramid is constructed from a base polygon and an apex point.