Go to the documentation of this file.
35 template<
class Type,
template<
class>
class PatchField>
52 const labelList& addPointCellLabels = vtuCells_.addPointCellLabels();
55 this->beginDataArray<Type>(
field.name(), numberOfPoints_);
59 List<Type> addedValues(addPointCellLabels.size());
62 for (
const label
cellId : addPointCellLabels)
73 for (
const label
cellId : addPointCellLabels)
94 template<
class Type,
template<
class>
class PatchField>
100 writeCellData(
field.name(),
field.primitiveField());
118 <<
" for field " << vfield.name() <<
nl <<
endl
126 const auto& pfield = tfield();
128 const labelList& addPointCellLabels = vtuCells_.addPointCellLabels();
131 this->beginDataArray<Type>(vfield.name(), numberOfPoints_);
148 this->endDataArray();
166 <<
" for field " << vfield.name() <<
nl <<
endl
174 const auto& pfield = tfield();
176 const labelList& addPointCellLabels = vtuCells_.addPointCellLabels();
179 this->beginDataArray<Type>(vfield.name(), numberOfPoints_);
196 this->endDataArray();
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.
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...