40 #ifndef Foam_vtk_legacyRawFormatter_H 41 #define Foam_vtk_legacyRawFormatter_H 62 static const char* legacyName_;
71 void write(
const char*
s, std::streamsize
n);
98 virtual const char*
name()
const;
102 virtual const char*
encoding()
const;
107 virtual bool writeSize(
const uint64_t ignored);
109 virtual void write(
const uint8_t val);
110 virtual void write(
const label val);
111 virtual void write(
const float val);
112 virtual void write(
const double val);
115 virtual void flush();
Encapsulated combinations of output format options. This is primarily useful when defining the output...
fileTag
Some common XML tags for vtk files.
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))