1 int USERD_get_var_by_component
13 Info<< "Entering: USERD_get_var_by_component" << endl
14 << "which_variable = " << which_variable << endl
15 << "which_part = " << which_part << endl
16 << "var_type = " << var_type << endl
17 << "which_type = " << which_type << endl
18 << "component = " << component << endl
22 label nVar = which_variable - 1;
24 Time& runTime = *runTimePtr;
26 fvMesh& mesh = *meshPtr;
27 const cellShapeList& cells = mesh.cellShapes();
29 label nCells = cells.size();
31 if (var_type == Z_SCALAR)
35 # include "getFieldScalar.H"
37 else if (which_part < nPatches+2)
39 # include "getPatchFieldScalar.H"
41 else if (which_part == nPatches+2)
43 # include "getLagrangianScalar.H"
50 else if (var_type == Z_VECTOR)
54 # include "getFieldVector.H"
56 else if (which_part < nPatches+2)
58 # include "getPatchFieldVector.H"
60 else if (which_part == nPatches+2)
62 # include "getLagrangianVector.H"
70 else if (var_type == Z_TENSOR9)
72 // all tensor are treated as asymmetric tensors here
76 # include "getFieldTensor.H"
78 else if (which_part < nPatches+2)
80 # include "getPatchFieldTensor.H"
82 else if (which_part == nPatches+2)
98 Info<< "Leaving: USERD_get_var_by_component" << endl