Go to the documentation of this file.
35 const char* Foam::vtk::legacyRawFormatter::legacyName_ =
"BINARY";
38 Foam::vtk::legacyRawFormatter::opts_(formatType::LEGACY_BINARY);
55 Foam::vtk::legacyRawFormatter::legacyRawFormatter
109 #ifdef WM_LITTLE_ENDIAN
110 # if WM_LABEL_SIZE == 32
112 write(
reinterpret_cast<const char*
>(&swapped),
sizeof(uint32_t));
113 # elif WM_LABEL_SIZE == 64
115 write(
reinterpret_cast<const char*
>(&swapped),
sizeof(uint64_t));
118 write(
reinterpret_cast<const char*
>(&val),
sizeof(label));
127 #ifdef WM_LITTLE_ENDIAN
132 const uint32_t* ptr =
reinterpret_cast<const uint32_t*
>(&val);
134 write(
reinterpret_cast<const char*
>(&swapped),
sizeof(uint32_t));
136 write(
reinterpret_cast<const char*
>(&val),
sizeof(
float));
151 else if (val <= std::numeric_limits<float>::lowest())
153 write(std::numeric_limits<float>::lowest());
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))
label max(const labelHashSet &set, label maxValue=labelMin)
OBJstream os(runTime.globalPath()/outputName)
static uint32_t swap32(uint32_t)
static uint64_t swap64(uint64_t)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Help with architecture-specific aspects.