Go to the documentation of this file.
29 #ifndef vtkPV3FoamFaceField_H
30 #define vtkPV3FoamFaceField_H
33 #include "vtkCellData.h"
34 #include "vtkFloatArray.h"
35 #include "vtkMultiBlockDataSet.h"
36 #include "vtkPolyData.h"
46 vtkMultiBlockDataSet* output,
48 const label datasetNo,
54 const label nInternalFaces =
mesh.nInternalFaces();
59 cellData->SetNumberOfTuples(faceLabels.
size());
60 cellData->SetNumberOfComponents(nComp);
61 cellData->Allocate(nComp*faceLabels.
size());
62 cellData->SetName(
tf.name().c_str());
66 Info<<
"convert convertFaceField: "
68 <<
" size = " <<
tf.size()
70 <<
" nTuples = " << faceLabels.
size() <<
endl;
79 const label faceNo = faceLabels[faceI];
80 if (faceNo < nInternalFaces)
82 Type t = 0.5*(
tf[faceOwner[faceNo]] +
tf[faceNeigh[faceNo]]);
91 const Type& t =
tf[faceOwner[faceNo]];
97 vtkOpenFOAMTupleRemap<Type>(vec);
99 cellData->InsertTuple(faceI, vec);
103 vtkPolyData::SafeDownCast
107 ->AddArray(cellData);
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
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.
void convertFaceField(const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const fvMesh &, const labelList &faceLabels)
Face set/zone field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Mesh data needed to do the Finite Volume discretisation.
Bookkeeping for GUI checklists and the multi-block organization.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
vtkDataSet * GetDataSetFromBlock(vtkMultiBlockDataSet *output, const partInfo &selector, const label datasetNo)
Convenience method use to convert the readers from VTK 5.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.