Go to the documentation of this file.
60 #ifndef VTK_EXCLUDE_STRSTREAM_HEADERS
61 # define VTK_EXCLUDE_STRSTREAM_HEADERS
68 #include "primitivePatch.H"
72 #undef VTKPV4FOAM_DUALPORT
76 class vtkDataArraySelection;
79 class vtkPV4FoamReader;
82 class vtkMultiBlockDataSet;
84 class vtkUnstructuredGrid;
101 template<
class Type>
class IOField;
102 template<
class Type>
class List;
137 int block(
int blockNo)
145 const char*
name()
const
174 void reset(
const int startAt = 0)
311 vtkMultiBlockDataSet* output,
314 const label datasetNo,
315 const std::string& datasetName
322 vtkMultiBlockDataSet* output,
324 const label datasetNo
331 vtkMultiBlockDataSet* output,
362 template<
class ZoneType>
372 vtkDataArraySelection*,
378 template<
template<
class>
class patchType,
class meshType>
437 template<
class PatchType>
475 template<
class GeoField>
478 vtkDataArraySelection*,
492 const bool interpFields,
493 vtkMultiBlockDataSet* output
503 const bool interpFields,
504 vtkMultiBlockDataSet* output
514 const bool interpFields,
515 vtkMultiBlockDataSet* output
524 vtkMultiBlockDataSet* output,
534 vtkMultiBlockDataSet* output,
536 const label datasetNo,
546 vtkMultiBlockDataSet* output,
548 const label datasetNo
556 vtkMultiBlockDataSet* output,
558 const label datasetNo,
568 vtkMultiBlockDataSet* output,
569 const label datasetNo
577 vtkMultiBlockDataSet* output,
579 const label datasetNo
589 vtkMultiBlockDataSet* output
597 vtkMultiBlockDataSet* output,
608 vtkMultiBlockDataSet* output,
610 const label datasetNo,
620 vtkMultiBlockDataSet* output,
622 const label datasetNo
641 vtkDataArraySelection*,
651 vtkDataArraySelection*,
658 vtkDataArraySelection*,
685 const char*
const FileName,
686 vtkPV4FoamReader* reader
701 vtkMultiBlockDataSet* output,
702 vtkMultiBlockDataSet* lagrangianOutput
718 int setTime(
int count,
const double requestTimes[]);
731 void PrintSelf(ostream&, vtkIndent)
const;
void updateInfoPatches(vtkDataArraySelection *, stringList &)
Patch info.
void updateInfoFields(vtkDataArraySelection *)
Field info.
vtkPolyData * faceSetVTKMesh(const fvMesh &, const faceSet &)
Add face set mesh.
Bookkeeping for GUI checklists and the multi-block organization.
Bookkeeping for polyhedral cell decomposition.
int timeIndex() const
The current time index.
arrayRange(const char *name, const int blockNo=0)
arrayRange arrayRangeLagrangian_
A class for handling words, derived from string.
static void setSelectedArrayEntries(vtkDataArraySelection *, const stringList &)
Set selection(s)
void convertLagrangianField(const IOField< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
Lagrangian field.
int start() const
Return array start index.
A class for handling file names.
A primitive field of type <T> with automated input and output.
int block() const
Return the block holding these datasets.
void convertMeshFaceZones(vtkMultiBlockDataSet *, int &blockNo)
Face zone meshes.
const labelList & superCells() const
Label of original cell for decomposed cells.
arrayRange arrayRangeFaceSets_
labelList partDataset_
Datasets corresponding to selected geometrical pieces.
vtkPV4Foam(const vtkPV4Foam &)
Disallow default bitwise copy construct.
arrayRange arrayRangePointZones_
double * findTimes(int &nTimeSteps)
Allocate and return a list of selected times.
const char * name() const
Return block name.
void convertMeshVolume(vtkMultiBlockDataSet *, int &blockNo)
Volume mesh.
wordList getZoneNames(const word &zoneType) const
Get non-empty zone names for zoneType from file.
vtkPolyData * patchVTKMesh(const word &name, const PatchType &)
Add patch mesh.
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.
void convertMeshPointSets(vtkMultiBlockDataSet *, int &blockNo)
Point set meshes.
const labelList & addPointCellLabels() const
Cell-centre labels for additional points of decomposed cells.
void renderPatchNames(vtkRenderer *, const bool show)
Add/remove patch names to/from the view.
void updateMeshPartsStatus()
Update the mesh parts selected in the GUI.
bool fieldsChanged_
Track changes in fields.
void resetCounters()
Reset data counters.
int size() const
Return sublist size.
boolList partStatus_
Selected geometrical parts (internalMesh, patches, ...)
void convertPointField(const GeometricField< Type, pointPatchField, pointMesh > &, const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const polyDecomp &)
Point fields.
void updateInfoInternalMesh(vtkDataArraySelection *)
Internal mesh info.
List< polyDecomp > zonePolyDecomp_
Decomposed cells information (cellZone meshes)
void convertFaceField(const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const fvMesh &, const labelList &faceLabels)
Face set/zone field.
int block(int blockNo)
Assign block number, return previous value.
void PrintSelf(ostream &, vtkIndent) const
Debug information.
void convertMeshCellSets(vtkMultiBlockDataSet *, int &blockNo)
Cell set meshes.
A HashTable with keys but without contents.
const labelList & pointMap() const
Point labels for subsetted meshes.
void updateInfoLagrangian(vtkDataArraySelection *)
Lagrangian info.
ClassName("vtkPV4Foam")
Static data members.
arrayRange arrayRangeVolume_
First instance and size of various mesh parts.
void updateFoamMesh()
OpenFOAM mesh.
vtkPolyData * pointZoneVTKMesh(const fvMesh &, const labelList &pointLabels)
Add point zone.
vtkPolyData * pointSetVTKMesh(const fvMesh &, const pointSet &)
Add point mesh.
arrayRange arrayRangeCellZones_
void convertMeshCellZones(vtkMultiBlockDataSet *, int &blockNo)
Cell zone 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.
void operator=(const vtkPV4Foam &)
Disallow default bitwise assignment.
vtkPolyData * lagrangianVTKMesh(const fvMesh &, const word &cloudName)
Add Lagrangian mesh.
void convertLagrangianFields(vtkMultiBlockDataSet *)
Convert Lagrangian fields.
List< polyDecomp > csetPolyDecomp_
Decomposed cells information (cellSet meshes)
vtkUnstructuredGrid * volumeVTKMesh(const fvMesh &, polyDecomp &)
Add internal mesh/cell set meshes.
void convertMeshFaceSets(vtkMultiBlockDataSet *, int &blockNo)
Face set meshes.
void convertMeshPointZones(vtkMultiBlockDataSet *, int &blockNo)
Point zone meshes.
void reset(const int startAt=0)
Reset the size to zero and optionally assign a new start.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
label addToSelection(vtkDataArraySelection *, const IOobjectList &, const string &suffix=string::null)
Add objects of Type to paraview array selection.
void convertVolField(const PtrList< PrimitivePatchInterpolation< primitivePatch > > &, const GeometricField< Type, fvPatchField, volMesh > &, const bool interpFields, vtkMultiBlockDataSet *output)
Volume field - all types.
fileName meshDir_
The mesh directory for the region.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
labelList & pointMap()
Point labels for subsetted meshes.
static void printMemory()
Simple memory used debugging information.
vtkPV4FoamReader * reader_
Access to the controlling vtkPV4FoamReader.
void Update(vtkMultiBlockDataSet *output, vtkMultiBlockDataSet *lagrangianOutput)
autoPtr< Time > dbPtr_
OpenFOAM time control.
int end() const
Return array end index.
label addObjectsToSelection(vtkDataArraySelection *, const IOobjectList &, const string &suffix=string::null)
Add the fields in the selected time directory to the selection.
static const string null
An empty string.
void convertPatchField(const word &name, const Field< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
Patch field.
bool meshChanged_
Track changes in mesh geometry.
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.
int setTime(int count, const double requestTimes[])
Set the runTime to the first plausible request time,.
void convertDimFields(const fvMesh &, const PtrList< PrimitivePatchInterpolation< primitivePatch > > &, const IOobjectList &, const bool interpFields, vtkMultiBlockDataSet *output)
Volume internal fields (DimensionedField)- all types.
labelList & addPointCellLabels()
Cell-centre labels for additional points of decomposed cells.
labelList & superCells()
Label of original cell for decomposed cells.
fvMesh * meshPtr_
OpenFOAM mesh.
void convertPointFieldBlock(const GeometricField< Type, pointPatchField, pointMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const List< polyDecomp > &)
Point field - all selected parts.
void updateInfoLagrangianFields()
Lagrangian field info.
static label GetNumberOfDataSets(vtkMultiBlockDataSet *output, const arrayRange &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
word meshRegion_
The mesh region.
void updateInfoZones(vtkDataArraySelection *)
Zone info.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
Provides a reader interface for OpenFOAM to VTK interaction.
void CleanUp()
Clean any storage.
word getPartName(const int)
Get the first word from the mesh parts selection.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void convertPatchPointField(const word &name, const Field< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
Patch point field.
List< vtkTextActor * > patchTextActorsPtrs_
List of patch names for rendering to window.
void convertMeshPatches(vtkMultiBlockDataSet *, int &blockNo)
Patch meshes.
void clear()
Clear the list, i.e. set size to zero.
static vtkDataSet * GetDataSetFromBlock(vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
const word cloudName(propsDict.lookup("cloudName"))
arrayRange arrayRangePatches_
arrayRange arrayRangePointSets_
void operator+=(const int n)
Increment the size.
static void pruneObjectList(IOobjectList &, const wordHashSet &)
Only keep what is listed in hashSet.
void convertPointFields(vtkMultiBlockDataSet *)
Convert point fields.
Generic GeometricField class.
arrayRange arrayRangeFaceZones_
List< polyDecomp > regionPolyDecomp_
Decomposed cells information (mesh regions)
static stringList getSelectedArrayEntries(vtkDataArraySelection *)
Retrieve the current selections.
static void AddToBlock(vtkMultiBlockDataSet *output, vtkDataSet *dataset, const arrayRange &, const label datasetNo, const std::string &datasetName)
static wordHashSet getSelected(vtkDataArraySelection *)
Retrieve the current selections.
labelList addPointCellLabels_
labelList pointLabels(nPoints, -1)
void convertVolFields(vtkMultiBlockDataSet *)
Convert volume fields.
void convertMeshLagrangian(vtkMultiBlockDataSet *, int &blockNo)
Lagrangian mesh.
word name(const complex &)
Return a string representation of a complex.
int timeIndex_
The time index.
void updateInfoSets(vtkDataArraySelection *)
Set info.
arrayRange arrayRangeCellSets_
void reduceMemory()
Reduce memory footprint after conversion.