Go to the documentation of this file.
48 maxVert +=
f[faces[facei]].size();
59 p[pointi] = first[pointi];
63 maxVert = first.size();
68 for (label facei = 1; facei < faces.size(); facei++)
74 const label curPoint = curFace[pointi];
78 for (label checkI = 0; checkI < maxVert; checkI++)
80 if (curPoint ==
p[checkI])
89 p[maxVert] = curPoint;
129 label maxNoEdges = 0;
133 maxNoEdges +=
f[curFaces[facei]].nEdges();
141 const edgeList curFaceEdges =
f[curFaces[facei]].edges();
143 forAll(curFaceEdges, faceEdgeI)
145 const edge& curEdge = curFaceEdges[faceEdgeI];
147 bool edgeFound =
false;
149 for (label addedEdgeI = 0; addedEdgeI < nEdges; addedEdgeI++)
151 if (allEdges[addedEdgeI] == curEdge)
162 allEdges[nEdges] = curEdge;
204 scalar a =
f[faces[facei]].mag(
p);
205 cEst +=
f[faces[facei]].centre(
p)*a;
209 cEst /= sumArea + VSMALL;
232 sumVc += pyrVol*pyrCentre;
236 return sumVc/(sumV + VSMALL);
257 scalar nCellFaces = 0;
263 cEst +=
f[faces[facei]].centre(
p);
286 if (a.size() !=
b.size())
293 for (
const label curLabel :
b)
299 if (a[ai] == curLabel)
static constexpr const zero Zero
Global zero (0)
static const char *const typeName
pointField points(const faceUList &f, const UList< point > &meshPoints) const
Return the cell vertices given the list of faces and mesh points.
point centre(const UList< point > &p, const faceUList &f) const
Returns cell centre.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
edgeList edges(const faceUList &f) const
Return cell edges.
scalar mag(const UList< point > &p, const faceUList &f) const
Returns cell volume.
#define forAll(list, i)
Loop across all elements in list.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
labelList labels(const faceUList &f) const
Return unordered list of cell vertices given the list of faces.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void setSize(const label newSize)
Alias for resize(const label)
pyramid< point, const point &, const face & > pyramidPointFaceRef
A cell is defined as a list of faces with extra functionality.
labelList pointLabels(nPoints, -1)