29 #ifndef vtkPVFoamLagrangianFields_H
30 #define vtkPVFoamLagrangianFields_H
39 void Foam::vtkPVFoam::convertLagrangianFields
42 vtkMultiBlockDataSet* output,
46 const arrayRange&
range = arrayRangeLagrangian_;
53 IOField<Type>
tf(*iter());
54 convertLagrangianField(
tf, output,
range, datasetNo);
61 void Foam::vtkPVFoam::convertLagrangianField
63 const IOField<Type>&
tf,
64 vtkMultiBlockDataSet* output,
65 const arrayRange&
range,
69 const label nComp = pTraits<Type>::nComponents;
72 pointData->SetNumberOfTuples(
tf.
size());
73 pointData->SetNumberOfComponents(nComp);
74 pointData->Allocate(nComp*
tf.
size());
75 pointData->SetName(
tf.name().c_str());
79 Info<<
"convert LagrangianField: "
89 const Type& t =
tf[i];
94 vtkOpenFOAMTupleRemap<Type>(vec);
96 pointData->InsertTuple(i, vec);
100 vtkPolyData::SafeDownCast
102 GetDataSetFromBlock(output,
range, datasetNo)
104 ->AddArray(pointData);
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
static const char *const typeName
void size(const label)
Override size to be inconsistent with allocated storage.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)