Go to the documentation of this file.
35 template<
class Type,
template<
class>
class PatchField>
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
122 typedef DimensionedField<Type, pointMesh> PointFieldType;
125 tmp<PointFieldType> tfield =
pInterp.interpolate(vfield);
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
170 typedef GeometricField<Type, pointPatchField, pointMesh> PointFieldType;
173 tmp<PointFieldType> tfield =
pInterp.interpolate(vfield);
174 const auto& pfield = tfield();
176 const labelList& addPointCellLabels = vtuCells_.addPointCellLabels();
179 this->beginDataArray<Type>(vfield.name(), numberOfPoints_);
196 this->endDataArray();
List< label > labelList
A List of labels.
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.
void addPointCellLabels(const labelUList &cellIds)
Ostream & endl(Ostream &os)
void writeListsParallel(vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2)
autoPtr< vtk::formatter > format_
word format(conversionProperties.get< word >("format"))
const vtuCells & vtuCells_
bool isState(outputState test) const noexcept
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
void writeLists(vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2, const labelUList &addressing)
void write(const GeometricField< Type, PatchField, pointMesh > &field)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Ostream & reportBadState(Ostream &, outputState expected) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
vtk::formatter & format()
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...