Go to the documentation of this file.
38 vector cEst = vector::zero;
53 vector sumVc = vector::zero;
59 const face& curFace = cellFaces[i];
71 <<
"zero or negative pyramid volume: " << -pyrVol
84 return sumVc/(sumV + VSMALL);
95 vector cEst = vector::zero;
117 const face& curFace =cellFaces[i];
129 <<
"zero or negative pyramid volume: " << -pyrVol
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar mag(const pointField &points) const
Return scalar magnitude - returns volume of pyramid.
Pre-declare SubField and related Field type.
scalar mag(const labelList &pointLabels, const pointField &points) const
Cell volume.
vector centre(const labelList &pointLabels, const pointField &points) const
Vector centroid.
A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Point centre(const pointField &points) const
Return centre (centroid)
A face is a list of labels corresponding to mesh vertices.
#define WarningInFunction
Report a warning using Foam::Warning.
labelList pointLabels(nPoints, -1)