36 const word& fieldName,
60 <<
" for uniform field " << fieldName <<
nl <<
endl 66 vtk::fileWriter::writeUniform<Type>(fieldName, val, nValues);
73 const word& fieldName,
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();
errorManipArg< error, int > exit(error &err, const int errNo=1)
label nCellData_
The number of CellData written for the Piece thus far.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
label nFieldPoints() const noexcept
Number of field points = nPoints + nAddPoints.
label nPointData_
The number of PointData written for the Piece thus far.
bool isState(outputState test) const noexcept
True if output state corresponds to the test state.
const vtuCells & vtuCells_
The volume cells (internalMesh)
Ostream & reportBadState(Ostream &, outputState expected) const
Generate message reporting bad writer state.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
A class for handling words, derived from Foam::string.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
label nFieldCells() const noexcept
Number of field cells = nCells + nAddCells.
word format(conversionProperties.get< word >("format"))
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
Write a list of values.
List< label > labelList
A List of labels.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of Cell or Point values.