29 #ifndef vtkPVFoamLagrangianFields_H 30 #define vtkPVFoamLagrangianFields_H 39 void Foam::vtkPVFoam::convertLagrangianFields
41 const IOobjectList& objects,
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: " 81 <<
" size = " << tf.size()
83 <<
" nTuples = " << tf.size() <<
endl;
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const char *const typeName
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)