Go to the documentation of this file.
29 #ifndef vtkPV4FoamPatchField_H
30 #define vtkPV4FoamPatchField_H
33 #include "vtkCellData.h"
34 #include "vtkFloatArray.h"
35 #include "vtkMultiBlockDataSet.h"
36 #include "vtkPointData.h"
37 #include "vtkPolyData.h"
48 vtkMultiBlockDataSet* output,
56 cellData->SetNumberOfTuples(ptf.size());
57 cellData->SetNumberOfComponents(nComp);
58 cellData->Allocate(nComp*ptf.size());
59 cellData->SetName(
name.c_str());
64 const Type& t = ptf[i];
69 vtkOpenFOAMTupleRemap<Type>(vec);
71 cellData->InsertTuple(i, vec);
74 vtkPolyData::SafeDownCast
90 vtkMultiBlockDataSet* output,
98 pointData->SetNumberOfTuples(pptf.size());
106 const Type& t = pptf[i];
111 vtkOpenFOAMTupleRemap<Type>(vec);
116 vtkPolyData::SafeDownCast
Bookkeeping for GUI checklists and the multi-block organization.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
#define forAll(list, i)
Loop across all elements in list.
Variant of pointEdgePoint with some transported additional data. WIP - should be templated on data li...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void convertPatchField(const word &name, const Field< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
Patch field.
Traits class for primitives.
void convertPatchPointField(const word &name, const Field< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
Patch point field.
vtkDataSet * GetDataSetFromBlock(vtkMultiBlockDataSet *output, const partInfo &selector, const label datasetNo)
Convenience method use to convert the readers from VTK 5.
word name(const complex &)
Return a string representation of a complex.