4 Num_variables - nSprayVariables
5 - nSecondMeshVariables - nFaMeshVariables
11 IOobject fieldObjectPtr
13 fieldNames[var2field[nVar]],
19 if (!fieldObjectPtr.headerOk())
26 fieldNames[var2field[nVar]],
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 # include "tensorConversion.H"
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 # include "tensorConversion.H"
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 # include "tensorConversion.H"
98 if (which_type == Z_TET04)
100 const cellModel& tet = *(cellModeller::lookup("tet"));
104 for (label n=0; n<nCells; n++)
106 const cellShape& cellShape = cellShapes[n];
107 const cellModel& cellModel = cellShape.model();
109 if (cellModel == tet)
111 # include "tensorConversion.H"
116 if (which_type == Z_NFACED)
118 const cellList& cells = meshPtr->cells();
121 for (label n=0; n<nCells; n++)
123 const labelList& points = cellShapes[n];
124 label nFacesInCell = cells[n].size();
126 if ((nFacesInCell == 6) && (points.size() == 8))
128 else if ((nFacesInCell == 4) && (points.size() == 4))
130 else if (nFacesInCell == 5)
132 if (points.size() == 6)
134 else if (points.size() == 5)
138 # include "tensorConversion.H"
143 # include "tensorConversion.H"