Go to the documentation of this file.
34 const word& fieldName,
38 if (isState(outputState::CELL_DATA))
41 vtk::fileWriter::writeUniform<Type>(fieldName, val, numberOfCells_);
46 vtk::fileWriter::writeUniform<Type>(fieldName, val, numberOfPoints_);
51 <<
"Bad writer state (" << stateNames[state_]
52 <<
") for field " << fieldName <<
nl <<
endl
61 const word& fieldName,
65 if (isState(outputState::CELL_DATA))
76 <<
"Bad writer state (" << stateNames[state_]
77 <<
") - should be (" << stateNames[outputState::CELL_DATA]
79 <<
") for field " << fieldName <<
nl <<
endl
89 "Label and Floating-point vector space only"
94 label nValues =
field.size();
111 legacy::intField<nCmpt>(
format(), fieldName, nValues);
115 const uint64_t payLoad = vtk::sizeofData<label, nCmpt>(nValues);
117 format().beginDataArray<label, nCmpt>(fieldName);
118 format().writeSize(payLoad);
125 legacy::floatField<nCmpt>(
format(), fieldName, nValues);
129 const uint64_t payLoad = vtk::sizeofData<float, nCmpt>(nValues);
131 format().beginDataArray<float, nCmpt>(fieldName);
132 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 (Face) 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.
reduce(hasMovingMesh, orOp< bool >())
void write(const word &fieldName, const UList< Type > &field)
Write a list of Cell (Face) or Point values.
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.