33template<
class FaceList,
class Po
intField>
37 return Foam::edge(this->meshPoints(), this->edges()[edgei]);
41template<
class FaceList,
class Po
intField>
49template<
class FaceList,
class Po
intField>
60 <<
"Calculating labels of patch edges in mesh edge list" <<
nl;
69 forAll(meshEdgeLabels, edgei)
71 const edge globalEdge(this->meshEdge(edgei));
76 for (
const label patchFacei : EdgeFaces[edgei])
79 const label curCelli =
faceCells[patchFacei];
82 for (
const label cellEdgei : cellEdges[curCelli])
84 if (allEdges[cellEdgei] == globalEdge)
87 meshEdgeLabels[edgei] = cellEdgei;
96 return meshEdgeLabels;
100template<
class FaceList,
class Po
intField>
109 <<
"Calculating labels of patch edges in mesh edge list" <<
nl;
115 forAll(meshEdgeLabels, edgei)
117 const edge globalEdge(this->meshEdge(edgei));
120 for (
const label meshEdgei : pointEdges[globalEdge.
start()])
122 if (allEdges[meshEdgei] == globalEdge)
124 meshEdgeLabels[edgei] = meshEdgei;
130 return meshEdgeLabels;
134template<
class FaceList,
class Po
intField>
144 const edge globalEdge(this->meshEdge(edgei));
147 for (
const label meshEdgei : pointEdges[globalEdge.
start()])
149 if (allEdges[meshEdgei] == globalEdge)
159template<
class FaceList,
class Po
intField>
170 forAll(meshEdgeLabels, edgei)
172 meshEdgeLabels[edgei] =
173 this->meshEdge(edgeLabels[edgei], allEdges, pointEdges);
176 return meshEdgeLabels;
180template<
class FaceList,
class Po
intField>
190 const edgeList& myEdges = this->edges();
192 for (
const label patchEdgei : pointEdges()[
e.first()])
194 if (
e == myEdges[patchEdgei])
edge meshEdge(const label edgei) const
From patch edge to global edge using meshPoints.
label findEdge(const edge &e) const
void size(const label n)
Older name for setAddressableSize.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
label start() const
Return start (first) vertex label.
Smooth ATC in cells next to a set of patches supplied by type.
const labelList & meshEdges() const
Return global edge index for local edges.
const labelList nEdges(UPstream::listGatherValues< label >(aMesh.nEdges()))
#define DebugInFunction
Report an information message using Foam::Info.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.