Go to the documentation of this file.
29 #ifndef vtkPV3FoamPointFields_H
30 #define vtkPV3FoamPointFields_H
45 vtkMultiBlockDataSet* output
52 const word& fieldName = iter()->name();
56 iter()->headerClassName()
65 Info<<
"Foam::vtkPV3Foam::convertPointFields : "
77 convertPointFieldBlock
86 convertPointFieldBlock
95 convertPointFieldBlock
109 int partId = arrayRangePatches_.start();
110 partId < arrayRangePatches_.end();
114 const word patchName = getPartName(partId);
115 const label datasetNo = partDataset_[partId];
118 if (!partStatus_[partId] || datasetNo < 0 ||
patchId < 0)
123 convertPatchPointField
138 int partId = arrayRangeFaceZones_.start();
139 partId < arrayRangeFaceZones_.end();
143 const word zoneName = getPartName(partId);
144 const label datasetNo = partDataset_[partId];
145 const label zoneId =
mesh.faceZones().findZoneID(zoneName);
147 if (!partStatus_[partId] || datasetNo < 0 || zoneId < 0)
156 mesh.faceZones()[zoneId]().meshPoints()
159 convertPatchPointField
164 arrayRangeFaceZones_,
176 vtkMultiBlockDataSet* output,
181 for (
int partId =
range.start(); partId <
range.end(); ++partId)
183 const label datasetNo = partDataset_[partId];
185 if (datasetNo >= 0 && partStatus_[partId])
206 vtkMultiBlockDataSet* output,
208 const label datasetNo,
246 Info<<
"convert convertPointField: "
249 <<
" nComp=" << nComp
250 <<
" nTuples = " << (
nPoints + addPointCellLabels.
size())
260 const Type& t = ptf[pointMap[i]];
265 vtkOpenFOAMTupleRemap<Type>(vec);
274 const Type& t = ptf[i];
279 vtkOpenFOAMTupleRemap<Type>(vec);
290 forAll(addPointCellLabels, apI)
292 const Type& t =
tf[addPointCellLabels[apI]];
297 vtkOpenFOAMTupleRemap<Type>(vec);
304 forAll(addPointCellLabels, apI)
311 vtkOpenFOAMTupleRemap<Type>(vec);
317 vtkUnstructuredGrid::SafeDownCast
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.
Type interpolatePointToCell(const GeometricField< Type, pointPatchField, pointMesh > &ptf, const label celli)
Interpolates (averages) the vertex values to the cell center.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
void convertPointField(const GeometricField< Type, pointPatchField, pointMesh > &, const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const polyDecomp &)
Point fields.
Variant of pointEdgePoint with some transported additional data. WIP - should be templated on data li...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Bookkeeping for polyhedral cell decomposition.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
labelList & pointMap()
Point labels for subsetted meshes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
InternalField & internalField()
Return internal field.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Mesh data needed to do the Finite Volume discretisation.
Mesh representing a set of points created from polyMesh.
List of IOobjects with searching and retrieving facilities.
void convertPointFieldBlock(const GeometricField< Type, pointPatchField, pointMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const List< polyDecomp > &)
Point field - all selected parts.
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.
labelList & addPointCellLabels()
Cell-centre labels for additional points of decomposed cells.
Generic GeometricField class.
void convertPointFields(vtkMultiBlockDataSet *)
Convert point fields.