36 const word& fieldName,
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,
112 if (isState(outputState::POINT_DATA))
119 <<
" for field " << fieldName <<
nl <<
endl
123 this->beginDataArray<Type>(fieldName, numberOfPoints_);
134 this->endDataArray();
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool isState(outputState test) const noexcept
True if output state corresponds to the test state.
label nCellData_
The number of CellData written for the Piece thus far.
label nPointData_
The number of PointData written for the Piece thus far.
@ POINT_DATA
Inside PointData.
@ CELL_DATA
Inside CellData.
Ostream & reportBadState(Ostream &, outputState expected) const
Generate message reporting bad writer state.
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.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
const vtuCells & vtuCells_
The volume cells (internalMesh)
label nFieldPoints() const noexcept
Number of field points = nPoints + nAddPoints.
label nFieldCells() const noexcept
Number of field cells = nCells + nAddCells.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
word format(conversionProperties.get< word >("format"))