41 const label masterFaceLabel,
53 const face& masterFace = meshFaces[masterFaceLabel];
57 label oppositeFaceLabel = -1;
59 forAll(curFaceLabels, facei)
62 const face& curFace = meshFaces[curFaceLabels[facei]];
67 curFaceLabels[facei] != masterFaceLabel
68 && curFace.
size() == masterFace.
size()
71 bool sharedPoint =
false;
77 const label l = curFace[pointi];
79 forAll(masterFace, masterPointi)
81 if (masterFace[masterPointi] == l)
88 if (sharedPoint)
break;
94 if (oppositeFaceLabel == -1)
97 oppositeFaceLabel = curFaceLabels[facei];
109 return oppositeFaceLabel;
115 const label masterFaceLabel,
120 label oppFaceLabel = opposingFaceLabel(masterFaceLabel, meshFaces);
123 if (oppFaceLabel < 0)
137 const face& masterFace = meshFaces[masterFaceLabel];
138 const face& slaveFace = meshFaces[oppFaceLabel];
151 forAll(masterFace, pointi)
157 if (!usedEdges[edgeI])
161 e[edgeI].otherVertex(masterFace[pointi]);
163 if (otherVertex != -1)
168 forAll(slaveFace, slavePointi)
170 if (slaveFace[slavePointi] == otherVertex)
172 usedEdges[edgeI] =
true;
173 oppFace[pointi] = otherVertex;
#define forAll(list, i)
Loop across all elements in list.
Class containing opposite face for a prismatic cell with addressing and a possibility of failure...
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
oppositeFace opposingFace(const label masterFaceLabel, const faceUList &meshFaces) const
Return opposite face oriented the same way as the master face.
label opposingFaceLabel(const label masterFaceLabel, const faceUList &meshFaces) const
Return index of opposite face.
const dimensionedScalar e
Elementary charge.