All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
getLagrangianScalar.H
Go to the documentation of this file.
1 
2 // Not sure if this is necessary anymore
4 
5 if (nVar >= 0)
6 {
8 
9  IOField<scalar> s
10  (
11  IOobject
12  (
13  name,
14  runTime.timeName(),
15  cloud::prefix,
16  mesh,
17  IOobject::MUST_READ,
18  IOobject::NO_WRITE
19  )
20  );
21 
22  if (s.size())
23  {
24  forAll(s, n)
25  {
26  var_array[n+1] = s[n];
27  }
28  }
29 }
30 else
31 {
32  // Info<< "getLagrangianScalar: nVar = " << nVar << endl;
33  return Z_UNDEF;
34 }
static int Num_variables
Definition: globalFoam.H:20
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:434
engineTime & runTime
static List< word > lagrangianScalarNames
Definition: globalFoam.H:47
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dynamicFvMesh & mesh
static label nSprayVariables
Definition: globalFoam.H:24
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
label n