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);
283 const cell&
c = *
this;
287 const face& f = fs[c[cfi]];
291 const point& p = ps[f[fpi]];
316 label curLabel = b[bI];
322 if (a[aI] == curLabel)
341 result = (result && fnd[aI]);
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
A face is a list of labels corresponding to mesh vertices.
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].
A bounding box defined in terms of the points at its extremities.
T & first()
Return the first element of the list.
const dimensionedScalar c
Speed of light in a vacuum.
boundBox bb(const pointField &, const faceUList &) const
Returns the cell bounding box.
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 > &)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
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.
const point & max() const
Maximum point defining the bounding box.
static const boundBox invertedBox
A very large inverted boundBox: min/max == +/- vGreat.
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 > &)
const point & min() const
Minimum point defining the bounding box.
label size() const
Return the number of elements in the UList.
static const char *const typeName