boundaryProcessorFaPatchPoints.H
Go to the documentation of this file.
1// Boundary processor patch points
2{
3 const labelList& curPointEdges = pointEdges[curPoint];
4
5 label patchID = -1;
6 label edgeID = -1;
7
8 for (const label curEdgei : curPointEdges)
9 {
10 if (edgeFaces[curEdgei].size() == 1)
11 {
12 forAll(aMesh().boundary(), patchI)
13 {
14 const labelList& curEdges = aMesh().boundary()[patchI];
15
16 label index = curEdges.find(curEdgei);
17
18 if (index != -1)
19 {
20 if
21 (
22 aMesh().boundary()[patchI].type()
23 != processorFaPatch::typeName
24 )
25 {
26 patchID = patchI;
27 edgeID = index;
28 break;
29 }
30 }
31 }
32 }
33 }
34
35 if (patchID != -1)
36 {
37 vector mirrorCtrlPoint =
38 patchMirrorPoints[patchID][edgeID];
39
40 lsPoints[curPatchPoint].setSize(lsPoints[curPatchPoint].size() + 1);
41 lsPoints[curPatchPoint][lsPoints[curPatchPoint].size() - 1] =
42 mirrorCtrlPoint;
43 }
44}
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
faceListList boundary
List< label > labelList
A List of labels.
Definition: List.H:66
faMesh aMesh(mesh)
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:333