FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

gmvOutputSpray.H

Go to the documentation of this file.
00001 gmvFile << "tracers " << particles.size() << nl;
00002 for
00003 (
00004     Cloud<passiveParticle>::iterator elmnt = particles.begin();
00005     elmnt != particles.end();
00006     ++elmnt
00007 )
00008 {
00009     gmvFile << elmnt().position().x() << " ";
00010 }
00011 gmvFile << nl;
00012 for
00013 (
00014     Cloud<passiveParticle>::iterator elmnt = particles.begin();
00015     elmnt != particles.end();
00016     ++elmnt
00017 )
00018 {
00019     gmvFile << elmnt().position().y() << " ";
00020 }
00021 gmvFile << nl;
00022 for
00023 (
00024     Cloud<passiveParticles>::iterator elmnt = particles.begin();
00025     elmnt != particles.end();
00026     ++elmnt
00027 )
00028 {
00029     gmvFile << elmnt().position().z() << " ";
00030 }
00031 gmvFile << nl;
00032 
00033 forAll(lagrangianScalarNames, i)
00034 {
00035     word name = lagrangianScalarNames[i];
00036 
00037     IOField<scalar> s
00038     (
00039         IOobject
00040         (
00041             name,
00042             runTime.timeName(),
00043             cloud::prefix,
00044             mesh,
00045             IOobject::MUST_READ,
00046             IOobject::NO_WRITE
00047         )
00048     );
00049 
00050     if (s.size())
00051     {
00052         gmvFile << name  << nl;
00053 
00054         for (label n = 0; n < s.size(); n++)
00055         {
00056             gmvFile << s[n] << token::SPACE;
00057         }
00058         gmvFile << nl;
00059     }
00060 
00061 
00062 }
00063 
00064 
00065 gmvFile << "endtrace"<< nl;
00066 
00067 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines