3 nVar >= Num_variables - nSprayVariables
4 - nSecondMeshVariables - nFaMeshVariables
11 IOobject fieldObjectPtr
13 fieldNames[var2field[nVar]],
19 if (!fieldObjectPtr.headerOk())
26 fieldNames[var2field[nVar]],
33 volVectorField vectorField
39 const cellShapeList& cellShapes = meshPtr->cellShapes();
42 if (which_type == Z_HEX08)
44 const cellModel& hex = *(cellModeller::lookup("hex"));
45 //const cellModel& wedge = *(cellModeller::lookup("wedge"));
48 for (label n=0; n<nCells; n++)
50 const cellShape& cellShape = cellShapes[n];
51 const cellModel& cellModel = cellShape.model();
53 if (cellModel == hex) // || (cellModel == wedge))
55 var_array[counter++] = vectorField[n][component];
61 if (which_type == Z_PEN06)
63 const cellModel& prism = *(cellModeller::lookup("prism"));
66 for (label n=0; n<nCells; n++)
68 const cellShape& cellShape = cellShapes[n];
69 const cellModel& cellModel = cellShape.model();
71 if (cellModel == prism)
73 var_array[counter++] = vectorField[n][component];
79 if (which_type == Z_PYR05)
81 const cellModel& pyr = *(cellModeller::lookup("pyr"));
84 for (label n=0; n<nCells; n++)
86 const cellShape& cellShape = cellShapes[n];
87 const cellModel& cellModel = cellShape.model();
91 var_array[counter++] = vectorField[n][component];
98 if (which_type == Z_TET04)
100 const cellModel& tet = *(cellModeller::lookup("tet"));
103 for (label n=0; n<nCells; n++)
105 const cellShape& cellShape = cellShapes[n];
106 const cellModel& cellModel = cellShape.model();
108 if (cellModel == tet)
110 var_array[counter++] = vectorField[n][component];
115 if (which_type == Z_NFACED)
117 const cellList& cells = meshPtr->cells();
120 for (label n=0; n<nCells; n++)
122 const labelList& points = cellShapes[n];
123 label nFacesInCell = cells[n].size();
125 if ((nFacesInCell == 6) && (points.size() == 8))
127 else if ((nFacesInCell == 4) && (points.size() == 4))
129 else if (nFacesInCell == 5)
131 if (points.size() == 6)
133 else if (points.size() == 5)
137 var_array[counter++] = vectorField[n][component];
142 var_array[counter++] = vectorField[n][component];