1 //======================================================================
2 int USERD_get_var_value_at_specific
5 int which_node_or_elem,
14 Info << "Entering: USERD_get_var_value_at_specific" << endl
17 // Not sure if it is 0 or 1 based
19 label nNode = which_node_or_elem;
20 label nVar = which_var - 1;
22 fvMesh& mesh = *meshPtr;
24 if (nVar < Num_variables - nSprayVariables)
26 Time& runTime = *runTimePtr;
30 fieldNames[var2field[nVar]],
39 volScalarField scalarField(fieldObject,mesh);
40 values[0] = scalarField[nNode];
42 else if (isVector[nVar])
44 volVectorField vectorField(fieldObject,mesh);
45 values[0] = vectorField[nNode].x();
46 values[1] = vectorField[nNode].y();
47 values[2] = vectorField[nNode].z();
51 Info<< "ERROR in USERD_get_variable_value_at_specific. "
52 << "No available variable???"
59 Info<< "This functionality is not implemented yet."
66 Info << "Leaving: USERD_get_var_value_at_specific" << endl