38 if (which_type == Z_HEX08)
44 for (
label celli=0; celli<nCells; celli++)
46 const cellShape& cellShape = cellShapes[celli];
47 const cellModel& cellModel = cellShape.model();
51 var_array[counter++] = scalarField[celli];
57 if (which_type == Z_PEN06)
64 const cellShape& cellShape = cellShapes[
n];
65 const cellModel& cellModel = cellShape.model();
67 if (cellModel == prism)
69 var_array[counter++] = scalarField[
n];
75 if (which_type == Z_PYR05)
82 const cellShape& cellShape = cellShapes[
n];
83 const cellModel& cellModel = cellShape.model();
87 var_array[counter++] = scalarField[
n];
93 if (which_type == Z_TET04)
100 const cellShape& cellShape = cellShapes[
n];
101 const cellModel& cellModel = cellShape.model();
103 if (cellModel == tet)
105 var_array[counter++] = scalarField[
n];
110 if (which_type == Z_NFACED)
118 label nFacesInCell = cells[
n].size();
120 if ((nFacesInCell == 6) && (points.size() == 8))
122 else if ((nFacesInCell == 4) && (points.size() == 4))
124 else if (nFacesInCell == 5)
126 if (points.size() == 6)
128 else if (points.size() == 5)
132 var_array[counter++] = scalarField[
n];
137 var_array[counter++] = scalarField[
n];
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
IOstream & hex(IOstream &io)
IOobject fieldObject(fieldNames[var2field[nVar]], runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE)
static List< word > fieldNames
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
static label nSprayVariables
List< label > labelList
A List of labels.
volScalarField scalarField(fieldObject, mesh)
IOobject fieldObjectPtr(fieldNames[var2field[nVar]], runTime.timeName(), mesh, IOobject::NO_READ)
List< cell > cellList
list of cells
static label var2field[maxNames]