8 char *part_descriptions[Z_BUFL],
10 int *number_of_elements[Z_MAXTYPE],
11 int *ijk_dimensions[9],
12 int *iblanking_options[6]
16 Info<<
"Entering: USERD_get_gold_part_build_info" <<
endl <<
flush;
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);
50 if ((nFacesInCell == 6) && (
points.size() == 8))
54 else if ((nFacesInCell == 4) && (
points.size() == 4))
58 else if (nFacesInCell == 5)
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();
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();
141 cloud::prefix.c_str(),
149 Info<<
"Leaving: USERD_get_gold_part_build_info" <<
endl <<
flush;
#define forAll(list, i)
Loop across all elements in list.
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[9], int *iblanking_options[6])
label size() const
Return the number of particles in the cloud.
const cellShapeList & cellShapes
const polyBoundaryMesh & bMesh
static Cloud< passiveParticle > * sprayPtr
static int Numparts_available
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.