59 #ifndef VTK_EXCLUDE_STRSTREAM_HEADERS
60 #define VTK_EXCLUDE_STRSTREAM_HEADERS
75 class vtkDataArraySelection;
78 class vtkPVFoamReader;
81 class vtkMultiBlockDataSet;
83 class vtkUnstructuredGrid;
118 arrayRange(
const char *
name,
const int blockNo=0)
133 int block(
int blockNo)
141 const char*
name()
const
155 return start_ + size_;
170 void reset(
const int startAt = 0)
177 void operator+=(
const int n)
211 return addPointCellLabels_;
215 const labelList& addPointCellLabels()
const
217 return addPointCellLabels_;
237 addPointCellLabels_.
clear();
246 vtkPVFoamReader* reader_;
281 arrayRange arrayRangeVolume_;
282 arrayRange arrayRangePatches_;
283 arrayRange arrayRangeLagrangian_;
284 arrayRange arrayRangeCellZones_;
285 arrayRange arrayRangeFaceZones_;
286 arrayRange arrayRangePointZones_;
287 arrayRange arrayRangeCellSets_;
288 arrayRange arrayRangeFaceSets_;
289 arrayRange arrayRangePointSets_;
308 static void AddToBlock
310 vtkMultiBlockDataSet* output,
313 const label datasetNo,
314 const std::string& datasetName
319 static vtkDataSet* GetDataSetFromBlock
321 vtkMultiBlockDataSet* output,
323 const label datasetNo
328 static label GetNumberOfDataSets
330 vtkMultiBlockDataSet* output,
335 void resetCounters();
340 void topoChangePartsStatus();
343 void updateInfoInternalMesh(vtkDataArraySelection*);
346 void updateInfoLagrangian(vtkDataArraySelection*);
349 void updateInfoPatches
351 vtkDataArraySelection*,
357 void updateInfoSets(vtkDataArraySelection*);
360 void updateInfoZones(vtkDataArraySelection*);
363 template<
class ZonesType>
367 template<
class ZonesType>
368 wordList getZoneNames(
const ZonesType&)
const;
374 vtkDataArraySelection*,
380 template<
template<
class>
class patchType,
class meshType>
381 void addFieldsToSelection
383 vtkDataArraySelection *select,
389 template<
template<
class>
class patchType,
class meshType>
390 void addInternalFieldsToSelection
392 vtkDataArraySelection *select,
398 void updateInfoFields();
401 void updateInfoLagrangianFields();
407 void updateFoamMesh();
413 void updateVolFields(vtkMultiBlockDataSet*);
416 void updatePointFields(vtkMultiBlockDataSet*);
419 void updateLagrangianFields(vtkMultiBlockDataSet*);
425 void convertMeshVolume(vtkMultiBlockDataSet*,
int& blockNo);
428 void convertMeshLagrangian(vtkMultiBlockDataSet*,
int& blockNo);
431 void convertMeshPatches(vtkMultiBlockDataSet*,
int& blockNo);
434 void convertMeshCellZones(vtkMultiBlockDataSet*,
int& blockNo);
437 void convertMeshFaceZones(vtkMultiBlockDataSet*,
int& blockNo);
440 void convertMeshPointZones(vtkMultiBlockDataSet*,
int& blockNo);
443 void convertMeshCellSets(vtkMultiBlockDataSet*,
int& blockNo);
446 void convertMeshFaceSets(vtkMultiBlockDataSet*,
int& blockNo);
449 void convertMeshPointSets(vtkMultiBlockDataSet*,
int& blockNo);
455 vtkUnstructuredGrid* volumeVTKMesh(
const fvMesh&, polyDecomp&);
458 vtkPolyData* lagrangianVTKMesh
465 template<
class PatchType>
466 vtkPolyData* patchVTKMesh(
const word&
name,
const PatchType&);
469 vtkPolyData* pointZoneVTKMesh
476 vtkPolyData* faceSetVTKMesh
483 vtkPolyData* pointSetVTKMesh
492 void convertFields(vtkMultiBlockDataSet*);
495 void convertLagrangianFields(vtkMultiBlockDataSet*);
500 template<
class GeoField>
501 label addObjectsToSelection
503 vtkDataArraySelection*,
513 void convertVolFields
518 const bool interpFields,
519 vtkMultiBlockDataSet* output
524 void convertVolInternalFields
528 vtkMultiBlockDataSet* output
533 void convertVolFieldBlock
537 vtkMultiBlockDataSet* output,
544 void convertVolInternalFieldBlock
548 vtkMultiBlockDataSet* output,
555 void convertVolInternalField
559 vtkMultiBlockDataSet* output,
561 const label datasetNo,
567 void convertPatchField
571 vtkMultiBlockDataSet* output,
573 const label datasetNo
578 void convertSurfaceField
581 vtkMultiBlockDataSet* output,
583 const label datasetNo,
590 void convertSurfaceField
593 vtkMultiBlockDataSet* output,
594 const arrayRange&
range,
595 const label datasetNo,
602 void convertSurfaceFields
606 vtkMultiBlockDataSet* output
611 void convertLagrangianFields
614 vtkMultiBlockDataSet* output,
615 const label datasetNo
620 void convertLagrangianField
623 vtkMultiBlockDataSet* output,
625 const label datasetNo
630 void convertPointFields
635 vtkMultiBlockDataSet* output
640 void convertPointFieldBlock
643 vtkMultiBlockDataSet* output,
650 void convertPointField
654 vtkMultiBlockDataSet* output,
656 const label datasetNo,
662 void convertPatchPointField
666 vtkMultiBlockDataSet* output,
668 const label datasetNo
675 static void pruneObjectList
691 static wordHashSet getSelected(vtkDataArraySelection*);
696 vtkDataArraySelection*,
701 static stringList getSelectedArrayEntries(vtkDataArraySelection*);
706 vtkDataArraySelection*,
711 static void setSelectedArrayEntries
713 vtkDataArraySelection*,
718 word getPartName(
const int);
733 const char*
const FileName,
734 vtkPVFoamReader* reader
753 vtkMultiBlockDataSet* output,
754 vtkMultiBlockDataSet* lagrangianOutput
782 void PrintSelf(ostream&, vtkIndent)
const;
Pre-declare SubField and related Field type.
Generic GeometricField class.
A HashTable with keys but without contents.
A primitive field of type <Type> with automated input and output.
List of IOobjects with searching and retrieving facilities.
void clear()
Clear the list, i.e. set size to zero.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling file names.
Mesh data needed to do the Finite Volume discretisation.
Mesh representing a set of points created from polyMesh.
static const string null
An empty string.
Provides a reader interface for OpenFOAM to VTK interaction.
ClassName("vtkPVFoam")
Static data members.
int setTime(int count, const double requestTimes[])
Set the runTime to the first plausible request time,.
void operator=(const vtkPVFoam &)=delete
Disallow default bitwise assignment.
void PrintSelf(ostream &, vtkIndent) const
Debug information.
int timeIndex() const
The current time index.
void renderPatchNames(vtkRenderer *, const bool show)
Add/remove patch names to/from the view.
vtkPVFoam(const char *const FileName, vtkPVFoamReader *reader)
Construct from components.
void CleanUp()
Clean any storage.
static void printMemory()
Simple memory used debugging information.
double * findTimes(int &nTimeSteps)
Allocate and return a list of selected times.
void Update(vtkMultiBlockDataSet *output, vtkMultiBlockDataSet *lagrangianOutput)
Update.
void updateInfo()
Update information for selection dialogs.
A class for handling words, derived from string.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
labelList pointLabels(nPoints, -1)
const word cloudName(propsDict.lookup("cloudName"))