Go to the documentation of this file.
33 const label nCellValues,
34 const word& fieldName,
40 if (isState(outputState::CELL_DATA))
43 nValues = nCellValues;
48 nValues = nLocalPoints_;
55 outputState::CELL_DATA,
58 <<
" for uniform field " << fieldName <<
nl <<
endl
64 vtk::fileWriter::writeUniform<Type>(fieldName, val, nValues);
73 const word& fieldName,
82 if (isState(outputState::CELL_DATA))
95 outputState::CELL_DATA,
98 <<
" for field " << fieldName <<
nl <<
endl
103 vtk::fileWriter::writeBasicField<Type>(fieldName,
field);
110 const word& fieldName,
118 if (isState(outputState::CELL_DATA))
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);
A class for handling words, derived from Foam::string.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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 writeUniformValue(const label nCellValues, const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly or Line) or Point values.
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData (Poly or Line) or PointData values.