37 #ifndef Foam_vtk_appendRawFormatter_H 38 #define Foam_vtk_appendRawFormatter_H 59 static const char* name_;
60 static const char* encoding_;
72 void write(
const char*
s, std::streamsize
n);
99 virtual const char*
name()
const;
102 virtual const char*
encoding()
const;
109 virtual uint64_t
offset(
const uint64_t numbytes);
113 virtual bool writeSize(
const uint64_t numbytes);
115 virtual void write(
const uint8_t val);
116 virtual void write(
const label val);
117 virtual void write(
const float val);
118 virtual void write(
const double val);
121 virtual void flush();
Encapsulated combinations of output format options. This is primarily useful when defining the output...
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))