10 Info<<
"Entering: USERD_get_part_element_ids_by_type" <<
endl
11 <<
"part_number = " << part_number <<
endl
12 <<
"element_type = " << element_type <<
endl <<
flush;
28 if (element_type == Z_HEX08)
35 if ((nFaces == 6) && (
points.size() == 8))
37 elemid_array[nHex08++] =
n + 1;
41 else if (element_type == Z_PEN06)
48 if ((nFaces == 5) && (
points.size() == 6))
50 elemid_array[nPen06++] =
n + 1;
54 else if (element_type == Z_PYR05)
61 if ((nFaces == 5) && (
points.size() == 5))
63 elemid_array[nPyr05++] =
n + 1;
67 else if (element_type == Z_TET04)
74 if ((nFaces == 4) && (
points.size() == 4))
76 elemid_array[nTet04++] =
n + 1;
80 else if (element_type == Z_NFACED)
86 if ((nFaces == 6) && (
points.size() == 8))
88 else if ((nFaces == 5) && (
points.size() == 6))
90 else if ((nFaces == 5) && (
points.size() == 5))
92 else if ((nFaces == 4) && (
points.size() == 4))
96 elemid_array[nFaced++] =
n + 1;
105 const polyBoundaryMesh&
bMesh =
meshPtr->boundaryMesh();
112 if (element_type == Z_TRI03)
118 elemid_array[nTri03++] = facei + 1;
122 else if (element_type == Z_QUA04)
128 elemid_array[nQuad04++] = facei + 1;
132 else if (element_type == Z_NSIDED)
139 elemid_array[nPoly++] = facei + 1;
149 elemid_array[
n] =
n + 1;
158 Info<<
"Leaving: USERD_get_part_element_ids_by_type" <<
endl <<
flush;
#define forAll(list, i)
Loop across all elements in list.
int USERD_get_part_element_ids_by_type(int part_number, int element_type, int *elemid_array)
const cellShapeList & cellShapes
const polyBoundaryMesh & bMesh
static Cloud< passiveParticle > * sprayPtr
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< cell > cellList
list of cells
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & flush(Ostream &os)
Flush stream.