Go to the documentation of this file.
36 const word& fieldName,
42 if (
isState(outputState::CELL_DATA))
57 outputState::CELL_DATA,
60 <<
" for uniform field " << fieldName <<
nl <<
endl
66 vtk::fileWriter::writeUniform<Type>(fieldName, val, nValues);
73 const word& fieldName,
77 if (isState(outputState::CELL_DATA))
84 <<
" for field " << fieldName <<
nl <<
endl
88 const labelList& cellMap = vtuCells_.cellMap();
90 this->beginDataArray<Type>(fieldName, numberOfCells_);
101 this->endDataArray();
108 const word& fieldName,
119 <<
" for field " << fieldName <<
nl <<
endl
123 this->beginDataArray<Type>(fieldName, numberOfPoints_);
134 this->endDataArray();
List< label > labelList
A List of labels.
A class for handling words, derived from Foam::string.
void writeUniform(const word &fieldName, const Type &val)
label nFieldPoints() const noexcept
void writePointData(const word &fieldName, const UList< Type > &field)
Ostream & endl(Ostream &os)
word format(conversionProperties.get< word >("format"))
const vtuCells & vtuCells_
label nFieldCells() const noexcept
bool isState(outputState test) const noexcept
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
void writeCellData(const word &fieldName, const UList< Type > &field)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Ostream & reportBadState(Ostream &, outputState expected) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)