31 template<
class FaceList,
class Po
intField>
42 <<
"Calculating labels of patch edges in mesh edge list" <<
endl;
46 const edgeList& PatchEdges = edges();
63 (pp[PatchEdges[edgeI].start()], pp[PatchEdges[edgeI].end()]);
68 const labelList& curFaces = EdgeFaces[edgeI];
73 label curCell = faceCells[curFaces[facei]];
80 if (allEdges[ce[cellEdgeI]] == curEdge)
84 meshEdges[edgeI] = ce[cellEdgeI];
98 template<
class FaceList,
class Po
intField>
108 <<
"Calculating labels of patch edges in mesh edge list" <<
endl;
112 const edgeList& PatchEdges = edges();
124 const label globalPointi = pp[PatchEdges[edgeI].start()];
125 const edge curEdge(globalPointi, pp[PatchEdges[edgeI].end()]);
127 const labelList& pe = pointEdges[globalPointi];
131 if (allEdges[pe[i]] == curEdge)
133 meshEdges[edgeI] = pe[i];
145 template<
class FaceList,
class Po
intField>
154 if (
e.start() > -1 &&
e.start() <
nPoints())
156 const labelList& pe = pointEdges()[
e.start()];
160 if (
e == Edges[pe[peI]])
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
label whichEdge(const edge &) const
Given an edge in local point labels, return its.
labelList meshEdges(const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
Return labels of patch edges in the global edge list using.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
#define InfoInFunction
Report an information message using Foam::Info.
const dimensionedScalar e
Elementary charge.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.