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.name(),
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 }
label n
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:434
static int Num_variables
Definition: globalFoam.H:20
static List< word > lagrangianScalarNames
Definition: globalFoam.H:47
static label nSprayVariables
Definition: globalFoam.H:24
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
word name(const bool)
Return a word representation of a bool.
Definition: boolIO.C:39