openfoam/applications/utilities/postProcessing/dataConversion/foamToGMV/gmvOutputParcels.H
Mark Olesen a50f01b079 STYLE: use forAllIter, forAllConstIter instead of long-hand version
STYLE: use 'forAll(' NOT 'forAll (', as per coding guide
2010-04-12 11:18:38 +02:00

49 lines
935 B
C

gmvFile << "tracers " << particles.size() << nl;
forAllConstIter(discretePhase, particles, iter)
{
gmvFile << iter().position().x() << " ";
}
gmvFile << nl;
forAllConstIter(discretePhase, particles, iter)
{
gmvFile << iter().position().y() << " ";
}
gmvFile << nl;
forAllConstIter(discretePhase, particles, iter)
{
gmvFile << iter().position().z() << " ";
}
gmvFile << nl;
gmvFile << "U" << nl;
forAllConstIter(discretePhase, particles, iter)
{
gmvFile << iter().velocity().x() << " ";
}
gmvFile << nl;
gmvFile << "V" << nl;
forAllConstIter(discretePhase, particles, iter)
{
gmvFile << iter().velocity().y() << " ";
}
gmvFile << nl;
gmvFile << "W" << nl;
forAllConstIter(discretePhase, particles, iter)
{
{
gmvFile << iter().velocity().z() << " ";
}
gmvFile << nl;
gmvFile << "Diam" << nl;
forAllConstIter(discretePhase, particles, iter)
{
gmvFile << iter().d() << " ";
}
gmvFile << "endtrace"<< nl;