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