38 const word&
object = objects[i];
51 IOField<Type>
fld(header);
53 os_ << object << ' ' << pTraits<Type>::nComponents <<
' ' 56 DynamicList<floatScalar> fField(pTraits<Type>::nComponents*
fld.size());
const fvMesh & mesh() const
Access either mesh or submesh.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const Time & time() const
Return the top-level database.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
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){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
static const word prefix
The prefix to local: lagrangian.
List< word > wordList
A List of words.
void writeIOField(const wordList &)
Write IOField.