Go to the documentation of this file.
46 maxVert +=
f[faces[faceI]].size();
57 p[pointI] = first[pointI];
61 maxVert = first.
size();
66 for (
label faceI = 1; faceI < faces.size(); faceI++)
72 const label curPoint = curFace[pointI];
76 for (
label checkI = 0; checkI < maxVert; checkI++)
78 if (curPoint ==
p[checkI])
87 p[maxVert] = curPoint;
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);
284 if (a.
size() !=
b.size())
299 if (a[aI] == curLabel)
318 result = (result && fnd[aI]);
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
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 > &)
dimensioned< scalar > mag(const dimensioned< Type > &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Pre-declare SubField and related Field type.
edgeList edges(const faceUList &) const
Return cell edges.
point centre(const pointField &, const faceUList &) const
Returns cell centre.
void setSize(const label)
Reset size of List.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
pointField points(const faceUList &, const pointField &) const
Return the cell vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
labelList labels(const faceUList &) const
Return labels of cell vertices.
pyramid< point, const point &, const face & > pyramidPointFaceRef
A cell is defined as a list of faces with extra functionality.
labelList pointLabels(nPoints, -1)
scalar mag(const pointField &, const faceUList &) const
Returns cell volume.