34 const char* Foam::vtk::appendRawFormatter::name_ =
"append";
35 const char* Foam::vtk::appendRawFormatter::encoding_ =
"raw";
38 Foam::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));
131 else if (val <= std::numeric_limits<float>::lowest())
133 write(std::numeric_limits<float>::lowest());
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Encapsulated combinations of output format options. This is primarily useful when defining the output...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
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))