33 const label nCellValues,
34 const word& fieldName,
43 nValues = nCellValues;
58 <<
" for uniform field " << fieldName <<
nl <<
endl 64 vtk::fileWriter::writeUniform<Type>(fieldName, val, nValues);
73 const word& fieldName,
98 <<
" for field " << fieldName <<
nl <<
endl 103 vtk::fileWriter::writeBasicField<Type>(fieldName,
field);
110 const word& fieldName,
125 <<
" for field " << fieldName <<
nl <<
endl 130 vtk::fileWriter::writeBasicField<Type>(fieldName,
field);
137 const word& fieldName,
152 <<
" for field " << fieldName <<
nl <<
endl 157 vtk::fileWriter::writeBasicField<Type>(fieldName,
field);
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.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData (Poly or Line) or PointData values.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
Ostream & reportBadState(Ostream &, outputState expected) const
Generate message reporting bad writer state.
A class for handling words, derived from Foam::string.
label nLocalPoints_
Local number of points.
void writeUniformValue(const label nCellValues, const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly or Line) or Point values.