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 }
Foam::labelList
List< label > labelList
A List of labels.
Definition: List.H:67
edgeID
label edgeID
Definition: boundaryProcessorFaPatchPoints.H:6
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:296
aMesh
faMesh aMesh(mesh)
patchID
label patchID
Definition: boundaryProcessorFaPatchPoints.H:5
Foam::vector
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:51
Foam::roots::type
type
Types of root.
Definition: Roots.H:54
boundary
faceListList boundary
Definition: createBlockMesh.H:4