1 if (nVar >= Num_variables - nSprayVariables)
7 IOobject fieldObjectPtr
9 fieldNames[var2field[nVar]],
15 if (!fieldObjectPtr.headerOk())
22 fieldNames[var2field[nVar]],
29 volVectorField vectorField
35 const cellShapeList& cellShapes = meshPtr->cellShapes();
38 if (which_type == Z_HEX08)
40 const cellModel& hex = *(cellModeller::lookup("hex"));
41 //const cellModel& wedge = *(cellModeller::lookup("wedge"));
44 for (label n=0; n<nCells; n++)
46 const cellShape& cellShape = cellShapes[n];
47 const cellModel& cellModel = cellShape.model();
49 if (cellModel == hex) // || (cellModel == wedge))
51 var_array[counter++] = vectorField[n][component];
57 if (which_type == Z_PEN06)
59 const cellModel& prism = *(cellModeller::lookup("prism"));
62 for (label n=0; n<nCells; n++)
64 const cellShape& cellShape = cellShapes[n];
65 const cellModel& cellModel = cellShape.model();
67 if (cellModel == prism)
69 var_array[counter++] = vectorField[n][component];
75 if (which_type == Z_PYR05)
77 const cellModel& pyr = *(cellModeller::lookup("pyr"));
80 for (label n=0; n<nCells; n++)
82 const cellShape& cellShape = cellShapes[n];
83 const cellModel& cellModel = cellShape.model();
87 var_array[counter++] = vectorField[n][component];
94 if (which_type == Z_TET04)
96 const cellModel& tet = *(cellModeller::lookup("tet"));
99 for (label n=0; n<nCells; n++)
101 const cellShape& cellShape = cellShapes[n];
102 const cellModel& cellModel = cellShape.model();
104 if (cellModel == tet)
106 var_array[counter++] = vectorField[n][component];
111 if (which_type == Z_NFACED)
113 const cellList& cells = meshPtr->cells();
116 for (label n=0; n<nCells; n++)
118 const labelList& points = cellShapes[n];
119 label nFacesInCell = cells[n].size();
121 if ((nFacesInCell == 6) && (points.size() == 8))
123 else if ((nFacesInCell == 4) && (points.size() == 4))
125 else if (nFacesInCell == 5)
127 if (points.size() == 6)
129 else if (points.size() == 5)
133 var_array[counter++] = vectorField[n][component];
138 var_array[counter++] = vectorField[n][component];