31 template<
class Po
intField>
37 return (1.0/3.0)*(ps[0] + ps[1] + ps[2]);
59 const vector a = (pNext -
p)^(pAvg - p);
76 const vector a = (pNext -
p)^(pAvg - p);
77 const vector c = p + pNext + pAvg;
79 const scalar an = a & sumAHat;
90 return (1.0/3.0)*sumAnc/sumAn;
99 template<
class Po
intField>
105 return 0.5*((ps[1] - ps[0])^(ps[2] - ps[0]));
127 const vector a = (pNext -
p)^(pAvg - p);
181 const vector a = (pNext -
p)^(pAvg - p);
196 const vector a = (pNext -
p)^(pAvg - p);
202 const scalar an = a & sumAHat;
213 return (1.0/3.0)*sumAnf/sumAn;
#define forAll(list, i)
Loop across all elements in list.
T & operator[](const label)
Return element of UList.
void size(const label)
Override size to be inconsistent with allocated storage.
label fcIndex(const label i) const
Return the forward circular index, i.e. the next index.
static vector area(const PointField &ps)
Return vector area given face points.
const dimensionedScalar c
Speed of light in a vacuum.
Form normalised(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
Type average(const pointField &, const Field< Type > &) const
Calculate average value at centroid of face.
static vector centre(const PointField &ps)
Return centre point given face points.
label size() const
Return the number of elements in the UList.