2 int USERD_get_nfaced_conn
9 Info << "Entering: USERD_get_nfaced_conn"
10 << ", part_number = " << part_number
18 const cellShapeList& cellShapes = meshPtr->cellShapes();
19 const cellList& cells = meshPtr->cells();
20 const faceList& faces = meshPtr->faces();
21 label nCells = cellShapes.size();
23 for (label n=0; n<nCells; n++)
25 label nFacesInCell = cells[n].size();
26 labelList points = cellShapes[n];
27 if ((nFacesInCell == 6) && (points.size() == 8))
29 else if ((nFacesInCell == 4) && (points.size() == 4))
31 else if (nFacesInCell == 5)
33 if (points.size() == 6)
35 else if (points.size() == 5)
39 for(label i=0; i<nFacesInCell; i++)
41 label facei = cells[n][i];
42 label nPoints = faces[facei].size();
43 for(label j=0; j<nPoints; j++)
45 nfaced_conn_array[nPoint++] = faces[facei][j] + 1;
52 for(label i=0; i<nFacesInCell; i++)
54 label facei = cells[n][i];
55 label nPoints = faces[facei].size();
56 for(label j=0; j<nPoints; j++)
58 nfaced_conn_array[nPoint++] = faces[facei][j] + 1;
65 else if (part_number < nPatches+2)
69 else if (sprayPtr && part_number == nPatches+2)
76 && part_number == secondMeshPartNum
80 const cellShapeList& cellShapes = secondMeshPtr->cellShapes();
81 const cellList& cells = secondMeshPtr->cells();
82 const faceList& faces = secondMeshPtr->faces();
83 label nCells = cellShapes.size();
85 for (label n=0; n<nCells; n++)
87 label nFacesInCell = cells[n].size();
88 labelList points = cellShapes[n];
89 if ((nFacesInCell == 6) && (points.size() == 8))
91 else if ((nFacesInCell == 4) && (points.size() == 4))
93 else if (nFacesInCell == 5)
95 if (points.size() == 6)
97 else if (points.size() == 5)
101 for(label i=0; i<nFacesInCell; i++)
103 label facei = cells[n][i];
104 label nPoints = faces[facei].size();
105 for(label j=0; j<nPoints; j++)
107 nfaced_conn_array[nPoint++] = faces[facei][j] + 1;
114 for(label i=0; i<nFacesInCell; i++)
116 label facei = cells[n][i];
117 label nPoints = faces[facei].size();
118 for(label j=0; j<nPoints; j++)
120 nfaced_conn_array[nPoint++] = faces[facei][j] + 1;
129 && part_number <= secondMeshPartNum + nSecondMeshPatches
136 && part_number == Numparts_available
146 Info << "Exiting: USERD_get_nfaced_conn" << endl