gmvOutputParcels.H
Go to the documentation of this file.
1gmvFile << "tracers " << particles.size() << nl;
2for (const passiveParticle& p : particles)
3{
4 gmvFile << p.position().x() << " ";
5}
6gmvFile << nl;
7
8for (const passiveParticle& p : particles)
9{
10 gmvFile << p.position().y() << " ";
11}
12gmvFile << nl;
13
14for (const passiveParticle& p : particles)
15{
16 gmvFile << p.position().z() << " ";
17}
18gmvFile << nl;
19
20gmvFile << "U" << nl;
21for (const passiveParticle& p : particles)
22{
23 gmvFile << p.velocity().x() << " ";
24}
25gmvFile << nl;
26
27gmvFile << "V" << nl;
28for (const passiveParticle& p : particles)
29{
30 gmvFile << p.velocity().y() << " ";
31}
32gmvFile << nl;
33
34gmvFile << "W" << nl;
35for (const passiveParticle& p : particles)
36{
37{
38 gmvFile << p.velocity().z() << " ";
39}
40gmvFile << nl;
41
42gmvFile << "Diam" << nl;
43for (const passiveParticle& p : particles)
44{
45 gmvFile << p.d() << " ";
46}
47
48gmvFile << "endtrace"<< nl;
volScalarField & p
constexpr char nl
The newline '\n' character (0x0a)
Definition: Ostream.H:53