8 char *part_descriptions[Z_BUFL],
10 int *number_of_elements[Z_MAXTYPE],
11 int *ijk_dimensions[3],
12 int *iblanking_options[6]
16 Info<<
"Entering: USERD_get_gold_part_build_info" <<
endl <<
flush;
22 label nCells = cells.size();
27 part_numbers[
n] =
n + 1;
28 part_types[
n] = Z_UNSTRUCTURED;
31 strncpy(part_descriptions[0],
meshName, Z_BUFL);
35 word patchName(
meshPtr->boundary()[i].name());
36 strncpy(part_descriptions[i+1], patchName.c_str(), Z_BUFL);
47 label nFacesInCell = cells[
n].size();
50 if ((nFacesInCell == 6) && (points.size() == 8))
54 else if ((nFacesInCell == 4) && (points.size() == 4))
58 else if (nFacesInCell == 5)
60 if (points.size() == 6)
64 else if (points.size() == 5)
83 number_of_elements[i][
n] = 0;
87 number_of_elements[0][Z_TET04] = nTet04;
88 number_of_elements[0][Z_PYR05] = nPyr05;
89 number_of_elements[0][Z_HEX08] = nHex08;
90 number_of_elements[0][Z_PEN06] = nPen06;
91 number_of_elements[0][Z_NFACED] = nFaced;
101 number_of_nodes[0] =
meshPtr->nPoints();
103 const polyBoundaryMesh&
bMesh =
meshPtr->boundaryMesh();
119 else if (nPoints == 4)
129 number_of_elements[i+1][Z_TRI03] = nTri03;
130 number_of_elements[i+1][Z_QUA04] = nQuad04;
131 number_of_elements[i+1][Z_NSIDED] = nPoly;
133 number_of_nodes[i+1] = bMesh[i].points().size();
136 if (Numparts_available > nPatches+1)
140 part_descriptions[nPatches+1],
141 cloud::prefix.c_str(),
144 number_of_elements[nPatches+1][Z_POINT] =
sprayPtr->
size();
149 Info<<
"Leaving: USERD_get_gold_part_build_info" <<
endl <<
flush;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static Cloud< passiveParticle > * sprayPtr
Ostream & endl(Ostream &os)
Add newline and flush stream.
label size() const
Return the number of particles in the cloud.
static int Numparts_available
int USERD_get_gold_part_build_info(int *part_numbers, int *part_types, char *part_descriptions[Z_BUFL], int *number_of_nodes, int *number_of_elements[Z_MAXTYPE], int *ijk_dimensions[3], int *iblanking_options[6])
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
const cellShapeList & cellShapes
List< label > labelList
A List of labels.
Ostream & flush(Ostream &os)
Flush stream.
const polyBoundaryMesh & bMesh
List< cell > cellList
list of cells