Go to the documentation of this file.
28 #include <type_traits>
36 const word& fieldName,
46 "Label and Floating-point vector space only"
57 legacy::intField<nCmpt>(
format(), fieldName, nValues);
61 const uint64_t payLoad =
62 vtk::sizeofData<label, nCmpt>(nValues);
72 legacy::floatField<nCmpt>(
format(), fieldName, nValues);
76 const uint64_t payLoad =
77 vtk::sizeofData<float, nCmpt>(nValues);
90 const word& fieldName,
92 const label nLocalValues
95 label nTotal = nLocalValues;
99 reduce(nTotal, sumOp<label>());
102 this->beginDataArray<Type>(fieldName, nTotal);
113 this->endDataArray();
120 const word& fieldName,
124 label nValues =
field.size();
131 this->beginDataArray<Type>(fieldName, nValues);
142 this->endDataArray();
A class for handling words, derived from Foam::string.
void beginDataArray(const word &fieldName, const label nValues)
void writeUniform(const word &fieldName, const Type &val, const label nValues)
autoPtr< vtk::formatter > format_
word format(conversionProperties.get< word >("format"))
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
void writeValueParallel(vtk::formatter &fmt, const Type &val, const label count=1)
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
void writeBasicField(const word &fieldName, const UList< Type > &field)
reduce(hasMovingMesh, orOp< bool >())
A traits class, which is primarily used for primitives.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
vtk::formatter & format()
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)