36 const word& fieldName,
43 std::is_same<label, typename pTraits<Type>::cmptType>::value
44 || std::is_floating_point<typename pTraits<Type>::cmptType>::value
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;
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 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A traits class, which is primarily used for primitives.
void writeUniform(const word &fieldName, const Type &val, const label nValues)
Write uniform field content.
bool legacy() const noexcept
Commonly used query.
autoPtr< vtk::formatter > format_
The VTK formatter in use (only valid on master process)
void beginDataArray(const word &fieldName, const label nValues)
Start of a field or DataArray output (legacy or non-legacy).
void writeBasicField(const word &fieldName, const UList< Type > &field)
Write basic (primitive) field content.
vtk::formatter & format()
The VTK formatter in use. FatalError for off-processor.
A class for handling words, derived from Foam::string.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
Write a list of values.
void writeValueParallel(vtk::formatter &fmt, const Type &val, const label count=1)
Component-wise write of a value (N times) in parallel.
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
word format(conversionProperties.get< word >("format"))