46 maxVert +=
f[faces[facei]].size();
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);
283 const cell&
c = *
this;
287 const face&
f = fs[
c[cfi]];
322 if (a[aI] == curLabel)
341 result = (result && fnd[aI]);
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label & first()
Return the first element of the list.
A bounding box defined in terms of the points at its extremities.
const point & min() const
Minimum point defining the bounding box.
const point & max() const
Maximum point defining the bounding box.
static const boundBox invertedBox
A very large inverted boundBox: min/max == +/- vGreat.
A cell is defined as a list of faces with extra functionality.
point centre(const pointField &, const faceUList &) const
Returns cell centre.
boundBox bb(const pointField &, const faceUList &) const
Returns the cell bounding box.
pointField points(const faceUList &, const pointField &) const
Return the cell vertices.
scalar mag(const pointField &, const faceUList &) const
Returns cell volume.
labelList labels(const faceUList &) const
Return labels of cell vertices.
static const char *const typeName
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...
A face is a list of labels corresponding to mesh vertices.
const dimensionedScalar c
Speed of light in a vacuum.
pyramid< point, const point &, const face & > pyramidPointFaceRef
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
labelList pointLabels(nPoints, -1)