2 int USERD_get_nfaced_nodes_per_face
9 Info << "Entering: USERD_get_nfaced_nodes_per_face"
10 << ", part_number = " << part_number
17 const cellShapeList& cellShapes = meshPtr->cellShapes();
18 const cellList& cells = meshPtr->cells();
19 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 label nPoints = points.size();
29 if ((nFacesInCell == 6) && (nPoints == 8))
31 else if ((nFacesInCell == 4) && (nPoints == 4))
33 else if (nFacesInCell == 5)
37 else if (nPoints == 5)
41 for(label i=0; i<nFacesInCell; i++)
43 label facei = cells[n][i];
44 label nFacePoints = faces[facei].size();
45 nfaced_npf_array[nFaced++] = nFacePoints;
51 for(label i=0; i<nFacesInCell; i++)
53 label facei = cells[n][i];
54 label nFacePoints = faces[facei].size();
55 nfaced_npf_array[nFaced++] = nFacePoints;
61 else if (part_number < nPatches+2)
65 else if (sprayPtr && part_number == nPatches+2)
72 && part_number == secondMeshPartNum
75 const cellShapeList& cellShapes = secondMeshPtr->cellShapes();
76 const cellList& cells = secondMeshPtr->cells();
77 const faceList& faces = secondMeshPtr->faces();
79 label nCells = cellShapes.size();
81 for (label n=0; n<nCells; n++)
83 label nFacesInCell = cells[n].size();
84 labelList points = cellShapes[n];
85 label nPoints = points.size();
87 if ((nFacesInCell == 6) && (nPoints == 8))
89 else if ((nFacesInCell == 4) && (nPoints == 4))
91 else if (nFacesInCell == 5)
95 else if (nPoints == 5)
99 for(label i=0; i<nFacesInCell; i++)
101 label facei = cells[n][i];
102 label nFacePoints = faces[facei].size();
103 nfaced_npf_array[nFaced++] = nFacePoints;
109 for(label i=0; i<nFacesInCell; i++)
111 label facei = cells[n][i];
112 label nFacePoints = faces[facei].size();
113 nfaced_npf_array[nFaced++] = nFacePoints;
121 && part_number <= secondMeshPartNum + nSecondMeshPatches
129 && part_number <= Numparts_available
139 Info << "Exiting: USERD_get_nfaced_nodes_per_face" << endl