1 gmvFile <<
"tracers " << particles.size() <<
nl;
2 for (
const passiveParticle&
p : particles)
4 gmvFile <<
p.position().x() <<
" ";
8 for (
const passiveParticle&
p : particles)
10 gmvFile <<
p.position().y() <<
" ";
14 for (
const passiveParticle&
p : particles)
16 gmvFile <<
p.position().z() <<
" ";
20 forAll(lagrangianScalarNames, i)
22 word
name = lagrangianScalarNames[i];
43 gmvFile <<
s[
n] << token::SPACE;
50 gmvFile <<
"endtrace"<<
nl;
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))