34 return -
alphaPhiU(subPointsU_, subPoints_);
38 return alphaPhiU(subPointsU_, subPoints_);
43 template<
class VectorList,
class Po
intList>
46 const VectorList& pointsU,
51 const vector& baseU = pointsU[0];
61 alphaPhiU += (baseU + pointsU[i] + pointsU[i + 1]) & area;
69 template<
class VectorList,
class Po
intList>
72 const VectorList& pointsU,
78 const vector& baseU = pointsU[
f[0]];
88 alphaPhiU += (baseU + pointsU[
f[i]] + pointsU[
f[i + 1]]) & area;
127 if (subPoints_.size() == 3)
129 return (1.0/3.0)*(subPoints_[0] + subPoints_[1] + subPoints_[2]);
138 pAvg += subPoints_[
pi];
140 pAvg /= subPoints_.
size();
153 const point& pNext = subPoints_[subPoints_.fcIndex(
pi)];
155 const vector a = (pNext -
p)^(pAvg -
p);
158 const scalar an = a & sumAHat;
169 return (1.0/3.0)*sumAnc/sumAn;
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void size(const label)
Override size to be inconsistent with allocated storage.
const vector Sf() const
Return subface surface area vector.
const DynamicList< point > & cutPoints() const
Access to cut points.
const DynamicList< point > & subPoints() const
Access to submerged face points.
const vector Cf(const vector &area) const
Return subface centre.
scalar alphaPhiU() const
Calculate and return alphaPhiU.
const DynamicList< label > & cutEdges() const
Access to cut edges.
static direction size()
Return the number of elements in the VectorSpace = Ncmpts.
static vector area(const PointField &ps)
Return vector area given face points.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionSet normalised(const dimensionSet &)