34const char* Foam::vtk::appendRawFormatter::name_ =
"append";
35const char* Foam::vtk::appendRawFormatter::encoding_ =
"raw";
38Foam::vtk::appendRawFormatter::opts_(formatType::APPEND_BINARY);
85 uint64_t prev = offset_;
89 offset_ += this->encodedLength(
sizeof(uint64_t) + numbytes);
97 write(
reinterpret_cast<const char*
>(&numbytes),
sizeof(uint64_t));
104 write(
reinterpret_cast<const char*
>(&val),
sizeof(uint8_t));
111 write(
reinterpret_cast<const char*
>(&val),
sizeof(label));
118 write(
reinterpret_cast<const char*
>(&val),
sizeof(
float));
127 if (val >= std::numeric_limits<float>::max())
129 write(std::numeric_limits<float>::max());
131 else if (val <= std::numeric_limits<float>::lowest())
133 write(std::numeric_limits<float>::lowest());
virtual bool write()
Write the output fields.
const vector & offset() const noexcept
Offset vector (from patch faces to destination mesh objects)
Encapsulated combinations of output format options. This is primarily useful when defining the output...
OBJstream os(runTime.globalPath()/outputName)
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))