Go to the documentation of this file.
29 #ifndef vtkPV3FoamVolFields_H
30 #define vtkPV3FoamVolFields_H
51 const bool interpFields,
52 vtkMultiBlockDataSet* output
62 iter()->headerClassName()
82 Info<<
"convertVolFieldBlock interpolating:" <<
tf.name()
109 arrayRangeCellZones_,
129 int partId = arrayRangePatches_.start();
130 partId < arrayRangePatches_.end();
134 const word patchName = getPartName(partId);
135 const label datasetNo = partDataset_[partId];
138 if (!partStatus_[partId] || datasetNo < 0 ||
patchId < 0)
150 reader_->GetExtrapolatePatches()
173 convertPatchPointField
176 ppInterpList[
patchId].faceToPointInterpolate(tpptf)(),
196 convertPatchPointField
199 ppInterpList[
patchId].faceToPointInterpolate(ptf)(),
213 int partId = arrayRangeFaceZones_.start();
214 partId < arrayRangeFaceZones_.end();
218 const word zoneName = getPartName(partId);
219 const label datasetNo = partDataset_[partId];
221 if (!partStatus_[partId] || datasetNo < 0)
238 arrayRangeFaceZones_,
252 int partId = arrayRangeFaceSets_.start();
253 partId < arrayRangeFaceSets_.end();
257 const word selectName = getPartName(partId);
258 const label datasetNo = partDataset_[partId];
260 if (!partStatus_[partId] || datasetNo < 0)
288 vtkMultiBlockDataSet* output,
293 for (
int partId =
range.start(); partId <
range.end(); ++partId)
295 const label datasetNo = partDataset_[partId];
297 if (datasetNo >= 0 && partStatus_[partId])
329 vtkMultiBlockDataSet* output,
331 const label datasetNo,
339 celldata->SetNumberOfTuples(superCells.
size());
340 celldata->SetNumberOfComponents(nComp);
341 celldata->Allocate(nComp*superCells.
size());
342 celldata->SetName(
tf.name().c_str());
346 Info<<
"convert volField: "
348 <<
" size = " <<
tf.size()
349 <<
" nComp=" << nComp
350 <<
" nTuples = " << superCells.
size() <<
endl;
356 const Type& t =
tf[superCells[i]];
361 vtkOpenFOAMTupleRemap<Type>(vec);
363 celldata->InsertTuple(i, vec);
366 vtkUnstructuredGrid::SafeDownCast
370 ->AddArray(celldata);
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)
List< Key > toc() const
Return the table of contents.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
void convertVolFieldBlock(const GeometricField< Type, fvPatchField, volMesh > &, autoPtr< GeometricField< Type, pointPatchField, pointMesh > > &, vtkMultiBlockDataSet *output, const arrayRange &, const List< polyDecomp > &decompLst)
Volume field - all selected parts.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Bookkeeping for polyhedral cell decomposition.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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 convertVolField(const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const polyDecomp &)
Volume field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
This boundary condition provides an 'empty' condition for reduced dimensions cases,...
Mesh data needed to do the Finite Volume discretisation.
label findZoneID(const word &zoneName) const
Find zone index given a name.
List of IOobjects with searching and retrieving facilities.
bool isType(const Type &t)
Check the typeid.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Bookkeeping for GUI checklists and the multi-block organization.
labelList & superCells()
Label of original cell for decomposed cells.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
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.
const polyPatch & patch() const
Return the polyPatch.
vtkDataSet * GetDataSetFromBlock(vtkMultiBlockDataSet *output, const partInfo &selector, const label datasetNo)
Convenience method use to convert the readers from VTK 5.
void reset(T *=0)
If object pointer already set, delete object and set to given.
const fvPatch & patch() const
Return patch.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
void convertVolFields(vtkMultiBlockDataSet *)
Convert volume fields.