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);
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);
void size(const label n)
Older name for setAddressableSize.
const labelList & cellMap() const noexcept
Original cell ids for all cells (regular and decomposed).
static vtkSmartPointer< vtkFloatArray > convertField(const DimensionedField< Type, volMesh > &fld, const vtuAdaptor &vtuData)
Convert internal volume field (CellData)
A traits class, which is primarily used for primitives and vector-space.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Generic GeometricField class.
Bookkeeping for vtkUnstructuredGrid.
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))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...