Go to the documentation of this file.
29 #include "vtkFloatArray.h"
30 #include "vtkCellData.h"
31 #include "vtkPointData.h"
32 #include "vtkSmartPointer.h"
37 vtkSmartPointer<vtkFloatArray>
48 data->SetName(
fld.name().c_str());
49 data->SetNumberOfComponents(nComp);
50 data->SetNumberOfTuples(cellMap.
size());
63 for (
const label meshCelli : cellMap)
66 data->SetTuple(celli++, scratch);
74 vtkSmartPointer<vtkFloatArray>
81 return convertField<Type>(
fld.internalField(), vtuData);
86 vtkSmartPointer<vtkFloatArray>
92 return convertField<Type>(
fld, *
this);
97 vtkSmartPointer<vtkFloatArray>
103 return convertField<Type>(
fld, *
this);
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static vtkSmartPointer< vtkFloatArray > convertField(const DimensionedField< Type, volMesh > &fld, const vtuAdaptor &vtuData)
Convert internal volume field (CellData)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
A traits class, which is primarily used for primitives.
Bookkeeping for vtkUnstructuredGrid.
void size(const label n)
Older name for setAddressableSize.
Database for solution data, solver performance and other reduced data.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const labelList & cellMap() const noexcept
Original cell ids for all cells (regular and decomposed).