44 for (
const label facei : cFaces)
46 nVerts += meshFaces[facei].
size();
52 const labelList& firstFace = meshFaces[cFaces[0]];
57 nVerts = firstFace.
size();
63 for (label facei = 1; facei < cFaces.
size(); ++facei)
65 for (
const label curPoint : meshFaces[cFaces[facei]])
67 bool pointFound =
false;
69 for (label checki = 0; checki < nVerts; ++checki)
116 for (
const label facei : cFaces)
118 nEdges += meshFaces[facei].nEdges();
127 for (
const edge& curEdge : meshFaces[cFaces[facei]].edges())
129 bool edgeFound =
false;
131 for (label checki = 0; checki <
nEdges; ++checki)
133 if (curEdge == allEdges[checki])
142 allEdges[
nEdges] = curEdge;
182 for (
const label facei : cFaces)
184 const scalar magArea = meshFaces[facei].mag(meshPoints);
185 ctr += meshFaces[facei].centre(meshPoints)*magArea;
189 ctr /= sumArea + VSMALL;
197 for (
const label facei : cFaces)
199 const face&
f = meshFaces[facei];
214 return sumVc/(sumV + VSMALL);
237 for (
const label facei : cFaces)
239 ctr += meshFaces[facei].centre(meshPoints);
241 ctr /= cFaces.
size();
246 for (
const label facei : cFaces)
248 const face&
f = meshFaces[facei];
269 for (
const label curLabel :
b)
275 if (a[ai] == curLabel)
DynamicList< label > & labels() const
Return temporary addressing.
void resize(const label len)
Adjust allocated size of list.
scalar centre() const
Mid-point location, zero for an empty list.
iterator begin() noexcept
Return an iterator to begin traversing the UList.
const_iterator cend() const noexcept
Return const_iterator to end traversing the constant UList.
const_iterator cbegin() const noexcept
Return const_iterator to begin traversing the constant UList.
void size(const label n)
Older name for setAddressableSize.
A cell is defined as a list of faces with extra functionality.
static const char *const typeName
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.
Computes the magnitude of an input field.
static const edgeList edges
Edge to point addressing.
const labelList nEdges(UPstream::listGatherValues< label >(aMesh.nEdges()))
pyramid< point, const point &, const face & > pyramidPointFaceRef
A pyramid using referred points and faces.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)
labelList pointLabels(nPoints, -1)
#define forAll(list, i)
Loop across all elements in list.