Go to the documentation of this file.
35 template<
class Type,
template<
class>
class PatchField>
48 <<
"Bad writer state (" << stateNames[state_]
56 const labelList& addPointCellLabels = vtuCells_.addPointCellLabels();
62 legacy::floatField<nCmpt>(
format(),
field.name(), numberOfPoints_);
66 const uint64_t payLoad =
67 vtk::sizeofData<float, nCmpt>(numberOfPoints_);
69 format().beginDataArray<float, nCmpt>(
field.name());
70 format().writeSize(payLoad);
76 List<Type> addedValues(addPointCellLabels.size());
79 for (
const label
cellId : addPointCellLabels)
90 for (
const label
cellId : addPointCellLabels)
115 template<
class Type,
template<
class>
class PatchField>
121 writeCellData(
field.name(),
field.primitiveField());
139 <<
"Bad writer state (" << stateNames[state_]
141 <<
") for field " << vfield.name() <<
nl <<
endl
151 const auto& pfield = tfield();
153 const labelList& addPointCellLabels = vtuCells_.addPointCellLabels();
159 legacy::floatField<nCmpt>(
format(), vfield.name(), numberOfPoints_);
163 const uint64_t payLoad =
164 vtk::sizeofData<float, nCmpt>(numberOfPoints_);
166 format().beginDataArray<float, nCmpt>(vfield.name());
167 format().writeSize(payLoad);
208 <<
"Bad writer state (" << stateNames[state_]
210 <<
") for field " << vfield.name() <<
nl <<
endl
220 const auto& pfield = tfield();
222 const labelList& addPointCellLabels = vtuCells_.addPointCellLabels();
228 legacy::floatField<nCmpt>(
format(), vfield.name(), numberOfPoints_);
232 const uint64_t payLoad =
233 vtk::sizeofData<float, nCmpt>(numberOfPoints_);
235 format().beginDataArray<float, nCmpt>(vfield.name());
236 format().writeSize(payLoad);
A class for managing temporary objects.
Type interpolatePointToCell(const GeometricField< Type, pointPatchField, pointMesh > &ptf, const label celli)
Interpolates (averages) the vertex values to the cell center.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeListsParallel(vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2)
Write a list of values and another list of values.
word format(conversionProperties.get< word >("format"))
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
void writeLists(vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2, const labelUList &addressing)
Write a list of values and a list of values via indirect addressing.
void write(const GeometricField< Type, PatchField, pointMesh > &field)
Write point field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Traits class for primitives.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Generic GeometricField class.
Interpolate from cell centres to points (vertices) using inverse distance weighting.
autoPtr< volPointInterpolation > pInterp
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...