FreeFOAM The Cross-Platform CFD Toolkit
gmvOutputParcels.H
Go to the documentation of this file.
1 gmvFile << "tracers " << particles.size() << nl;
2 for
3 (
4  discretePhase::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  discretePhase::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  discretePhase::iterator elmnt = particles.begin();
25  elmnt != particles.end();
26  ++elmnt
27 )
28 {
29  gmvFile << elmnt().position().z() << " ";
30 }
31 gmvFile << nl;
32 
33 gmvFile << "U" << nl;
34 for
35 (
36  discretePhase::iterator elmnt = particles.begin();
37  elmnt != particles.end();
38  ++elmnt
39 )
40 {
41  gmvFile << elmnt().velocity().x() << " ";
42 }
43 gmvFile << nl;
44 gmvFile << "V" << nl;
45 for
46 (
47  discretePhase::iterator elmnt = particles.begin();
48  elmnt != particles.end();
49  ++elmnt
50 )
51 {
52  gmvFile << elmnt().velocity().y() << " ";
53 }
54 gmvFile << nl;
55 
56 gmvFile << "W" << nl;
57 for
58 (
59  discretePhase::iterator elmnt = particles.begin();
60  elmnt != particles.end();
61  ++elmnt
62 )
63 {
64  gmvFile << elmnt().velocity().z() << " ";
65 }
66 gmvFile << nl;
67 
68 gmvFile << "Diam" << nl;
69 
70 for
71 (
72  discretePhase::iterator elmnt = particles.begin();
73  elmnt != particles.end();
74  ++elmnt
75 )
76 {
77  gmvFile << elmnt().d() << " ";
78 }
79 
80 
81 gmvFile << "endtrace"<< nl;
82 
83 // ************************ vim: set sw=4 sts=4 et: ************************ //