gmvFile << "tracers " << particles.size() << nl;
for
(
Cloud<passiveParticle>::iterator elmnt = particles.begin();
elmnt != particles.end();
++elmnt
)
{
gmvFile << elmnt().position().x() << " ";
}
gmvFile << nl;
gmvFile << elmnt().position().y() << " ";
gmvFile << elmnt().position().z() << " ";
forAll(lagrangianScalarNames, i)
word name = lagrangianScalarNames[i];
IOField<scalar> s
IOobject
name,
runTime.timeName(),
cloud::prefix,
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
);
if (s.size())
gmvFile << name << nl;
for (label n = 0; n < s.size(); n++)
gmvFile << s[n] << token::SPACE;
forAll(lagrangianVectorNames, i)
word name = lagrangianVectorNames[i];
IOField<vector> v
if (v.size())
gmvFile << name + "x" << nl;
for (label n = 0; n < v.size(); n++)
gmvFile << v[n].x() << token::SPACE;
gmvFile << name + "y" << nl;
gmvFile << v[n].y() << token::SPACE;
gmvFile << name + "z" << nl;
gmvFile << v[n].z() << token::SPACE;
gmvFile << "endtrace"<< nl;