db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
81 lines
1.3 KiB
C++
81 lines
1.3 KiB
C++
gmvFile << "tracers " << particles.size() << nl;
|
|
for
|
|
(
|
|
discretePhase::iterator elmnt = particles.begin();
|
|
elmnt != particles.end();
|
|
++elmnt
|
|
)
|
|
{
|
|
gmvFile << elmnt().position().x() << " ";
|
|
}
|
|
gmvFile << nl;
|
|
for
|
|
(
|
|
discretePhase::iterator elmnt = particles.begin();
|
|
elmnt != particles.end();
|
|
++elmnt
|
|
)
|
|
{
|
|
gmvFile << elmnt().position().y() << " ";
|
|
}
|
|
gmvFile << nl;
|
|
for
|
|
(
|
|
discretePhase::iterator elmnt = particles.begin();
|
|
elmnt != particles.end();
|
|
++elmnt
|
|
)
|
|
{
|
|
gmvFile << elmnt().position().z() << " ";
|
|
}
|
|
gmvFile << nl;
|
|
|
|
gmvFile << "U" << nl;
|
|
for
|
|
(
|
|
discretePhase::iterator elmnt = particles.begin();
|
|
elmnt != particles.end();
|
|
++elmnt
|
|
)
|
|
{
|
|
gmvFile << elmnt().velocity().x() << " ";
|
|
}
|
|
gmvFile << nl;
|
|
gmvFile << "V" << nl;
|
|
for
|
|
(
|
|
discretePhase::iterator elmnt = particles.begin();
|
|
elmnt != particles.end();
|
|
++elmnt
|
|
)
|
|
{
|
|
gmvFile << elmnt().velocity().y() << " ";
|
|
}
|
|
gmvFile << nl;
|
|
|
|
gmvFile << "W" << nl;
|
|
for
|
|
(
|
|
discretePhase::iterator elmnt = particles.begin();
|
|
elmnt != particles.end();
|
|
++elmnt
|
|
)
|
|
{
|
|
gmvFile << elmnt().velocity().z() << " ";
|
|
}
|
|
gmvFile << nl;
|
|
|
|
gmvFile << "Diam" << nl;
|
|
|
|
for
|
|
(
|
|
discretePhase::iterator elmnt = particles.begin();
|
|
elmnt != particles.end();
|
|
++elmnt
|
|
)
|
|
{
|
|
gmvFile << elmnt().d() << " ";
|
|
}
|
|
|
|
|
|
gmvFile << "endtrace"<< nl;
|