Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / utilities / postProcessing / dataConversion / foamToGMV / gmvOutputSpray.H
blob725bf836aa9cb5de3c171fa617fca035795a3ac3
1 gmvFile << "tracers " << particles.size() << nl;
2 forAllConstIter(Cloud<passiveParticle>, particles, iter)
4     gmvFile << iter().position().x() << " ";
6 gmvFile << nl;
8 forAllConstIter(Cloud<passiveParticle>, particles, iter)
10     gmvFile << iter().position().y() << " ";
12 gmvFile << nl;
14 forAllConstIter(Cloud<passiveParticle>, particles, iter)
16     gmvFile << iter().position().z() << " ";
18 gmvFile << nl;
20 forAll(lagrangianScalarNames, i)
22     word name = lagrangianScalarNames[i];
24     IOField<scalar> s
25     (
26         IOobject
27         (
28             name,
29             runTime.timeName(),
30             cloud::prefix,
31             mesh,
32             IOobject::MUST_READ,
33             IOobject::NO_WRITE
34         )
35     );
37     if (s.size())
38     {
39         gmvFile << name  << nl;
41         forAll(s, n)
42         {
43             gmvFile << s[n] << token::SPACE;
44         }
45         gmvFile << nl;
46     }
50 gmvFile << "endtrace"<< nl;