OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

getLagrangianScalar.H

Go to the documentation of this file.
00001 
00002 // Not sure if this is necessary anymore
00003 nVar -= Num_variables - nSprayVariables;
00004 
00005 if (nVar >= 0)
00006 {
00007     word name = lagrangianScalarNames[nVar];
00008 
00009     IOField<scalar> s
00010     (
00011         IOobject
00012         (
00013             name,
00014             runTime.timeName(),
00015             cloud::prefix,
00016             mesh,
00017             IOobject::MUST_READ,
00018             IOobject::NO_WRITE
00019         )
00020     );
00021 
00022     if (s.size())
00023     {
00024         for (label n = 0; n < s.size(); n++)
00025         {
00026             var_array[n+1] = s[n];
00027         }
00028     }
00029 }
00030 else
00031 {
00032     // Info << "getLagrangianScalar: nVar = " << nVar << endl;
00033     return Z_UNDEF;
00034 }
00035 
Copyright © 2000-2009 OpenCFD Ltd