1 gmvFile <<
"tracers " << particles.size() <<
nl;
4 gmvFile << iter().position().x() <<
" ";
10 gmvFile << iter().position().y() <<
" ";
16 gmvFile << iter().position().z() <<
" ";
39 gmvFile << name <<
nl;
43 gmvFile <<
s[
n] << token::SPACE;
50 gmvFile <<
"endtrace"<<
nl;
#define forAll(list, i)
Loop across all elements in list.
static List< word > lagrangianScalarNames
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)