Go to the documentation of this file.
36 const word& fieldName,
42 if (isState(outputState::CELL_DATA))
45 nValues = vtuCells_.nFieldCells();
50 nValues = vtuCells_.nFieldPoints();
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();
A class for handling words, derived from Foam::string.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell or Point values.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word format(conversionProperties.get< word >("format"))
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
Write a list of values.