Go to the documentation of this file.
36 const word& fieldName,
40 if (isState(outputState::CELL_DATA))
43 vtk::fileWriter::writeUniform<Type>(fieldName, val, numberOfCells_);
48 vtk::fileWriter::writeUniform<Type>(fieldName, val, numberOfPoints_);
53 <<
"Ignore bad writer state (" << stateNames[state_]
54 <<
") for field " << fieldName <<
nl <<
endl
63 const word& fieldName,
67 if (isState(outputState::CELL_DATA))
74 <<
"Bad writer state (" << stateNames[state_]
75 <<
") - should be (" << stateNames[outputState::CELL_DATA]
76 <<
") for field " << fieldName <<
nl <<
endl
82 const labelList& cellMap = vtuCells_.cellMap();
88 legacy::floatField<nCmpt>(
format(), fieldName, numberOfCells_);
92 const uint64_t payLoad =
93 vtk::sizeofData<float, nCmpt>(numberOfCells_);
95 format().beginDataArray<float, nCmpt>(fieldName);
96 format().writeSize(payLoad);
void writeListParallel(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
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.
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.
Traits class for primitives.
#define WarningInFunction
Report a warning using Foam::Warning.