46 maxVert += f[faces[facei]].
size();
57 p[pointi] = first[pointi];
61 maxVert = first.
size();
66 for (
label facei = 1; facei < faces.size(); facei++)
68 const labelList& curFace = f[faces[facei]];
72 const label curPoint = curFace[pointi];
76 for (
label checkI = 0; checkI < maxVert; checkI++)
78 if (curPoint == p[checkI])
87 p[maxVert] = curPoint;
113 p[i] = meshPoints[pointLabels[i]];
127 label maxNoEdges = 0;
131 maxNoEdges += f[curFaces[facei]].nEdges();
139 const edgeList curFaceEdges = f[curFaces[facei]].edges();
141 forAll(curFaceEdges, faceEdgeI)
143 const edge& curEdge = curFaceEdges[faceEdgeI];
145 bool edgeFound =
false;
147 for (
label addedEdgeI = 0; addedEdgeI < nEdges; addedEdgeI++)
149 if (allEdges[addedEdgeI] == curEdge)
160 allEdges[nEdges] = curEdge;
202 scalar a = f[faces[facei]].mag(p);
203 cEst += f[faces[facei]].centre(p)*a;
207 cEst /= sumArea + vSmall;
230 sumVc += pyrVol*pyrCentre;
234 return sumVc/(sumV + vSmall);
255 scalar nCellFaces = 0;
261 cEst += f[faces[facei]].centre(p);
293 label curLabel = b[bI];
299 if (a[aI] == curLabel)
318 result = (result && fnd[aI]);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList pointLabels(nPoints, -1)
void size(const label)
Override size to be inconsistent with allocated storage.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
T & first()
Return the first element of the list.
edgeList edges(const faceUList &) const
Return cell edges.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
point centre(const pointField &, const faceUList &) const
Returns cell centre.
pyramid< point, const point &, const face & > pyramidPointFaceRef
scalar mag(const pointField &, const faceUList &) const
Returns cell volume.
void setSize(const label)
Reset size of List.
labelList labels(const faceUList &) const
Return labels of cell vertices.
A cell is defined as a list of faces with extra functionality.
pointField points(const faceUList &, const pointField &) const
Return the cell vertices.
dimensioned< scalar > mag(const dimensioned< Type > &)
label size() const
Return the number of elements in the UList.
static const char *const typeName