FreeFOAM The Cross-Platform CFD Toolkit
gmvOutputSpray.H
Go to the documentation of this file.
1 gmvFile << "tracers " << particles.size() << nl;
2 for
3 (
4  Cloud<passiveParticle>::iterator elmnt = particles.begin();
5  elmnt != particles.end();
6  ++elmnt
7 )
8 {
9  gmvFile << elmnt().position().x() << " ";
10 }
11 gmvFile << nl;
12 for
13 (
14  Cloud<passiveParticle>::iterator elmnt = particles.begin();
15  elmnt != particles.end();
16  ++elmnt
17 )
18 {
19  gmvFile << elmnt().position().y() << " ";
20 }
21 gmvFile << nl;
22 for
23 (
24  Cloud<passiveParticles>::iterator elmnt = particles.begin();
25  elmnt != particles.end();
26  ++elmnt
27 )
28 {
29  gmvFile << elmnt().position().z() << " ";
30 }
31 gmvFile << nl;
32 
34 {
35  word name = lagrangianScalarNames[i];
36 
37  IOField<scalar> s
38  (
39  IOobject
40  (
41  name,
42  runTime.timeName(),
43  cloud::prefix,
44  mesh,
45  IOobject::MUST_READ,
46  IOobject::NO_WRITE
47  )
48  );
49 
50  if (s.size())
51  {
52  gmvFile << name << nl;
53 
54  for (label n = 0; n < s.size(); n++)
55  {
56  gmvFile << s[n] << token::SPACE;
57  }
58  gmvFile << nl;
59  }
60 
61 
62 }
63 
64 
65 gmvFile << "endtrace"<< nl;
66 
67 // ************************ vim: set sw=4 sts=4 et: ************************ //