Data Structures | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
vtkPV4Foam Class Reference

Provides a reader interface for OpenFOAM to VTK interaction. More...

Collaboration diagram for vtkPV4Foam:
Collaboration graph
[legend]

Data Structures

class  arrayRange
 Bookkeeping for GUI checklists and the multi-block organization. More...
 
class  polyDecomp
 Bookkeeping for polyhedral cell decomposition. More...
 

Public Member Functions

 ClassName ("vtkPV4Foam")
 Static data members. More...
 
 vtkPV4Foam (const char *const FileName, vtkPV4FoamReader *reader)
 Construct from components. More...
 
 ~vtkPV4Foam ()
 Destructor. More...
 
void updateInfo ()
 Update. More...
 
void Update (vtkMultiBlockDataSet *output, vtkMultiBlockDataSet *lagrangianOutput)
 
void CleanUp ()
 Clean any storage. More...
 
double * findTimes (int &nTimeSteps)
 Allocate and return a list of selected times. More...
 
void renderPatchNames (vtkRenderer *, const bool show)
 Add/remove patch names to/from the view. More...
 
int setTime (int count, const double requestTimes[])
 Set the runTime to the first plausible request time,. More...
 
int timeIndex () const
 The current time index. More...
 
void PrintSelf (ostream &, vtkIndent) const
 Debug information. More...
 
template<class Type >
Foam::label addToSelection (vtkDataArraySelection *select, const IOobjectList &objectLst, const string &suffix)
 

Static Public Member Functions

static void printMemory ()
 Simple memory used debugging information. More...
 

Private Member Functions

void resetCounters ()
 Reset data counters. More...
 
void updateMeshPartsStatus ()
 Update the mesh parts selected in the GUI. More...
 
void updateInfoInternalMesh (vtkDataArraySelection *)
 Internal mesh info. More...
 
void updateInfoLagrangian (vtkDataArraySelection *)
 Lagrangian info. More...
 
void updateInfoPatches (vtkDataArraySelection *, stringList &)
 Patch info. More...
 
void updateInfoSets (vtkDataArraySelection *)
 Set info. More...
 
void updateInfoZones (vtkDataArraySelection *)
 Zone info. More...
 
wordList getZoneNames (const word &zoneType) const
 Get non-empty zone names for zoneType from file. More...
 
template<class ZoneType >
wordList getZoneNames (const ZoneMesh< ZoneType, polyMesh > &) const
 Get non-empty zone names from mesh info. More...
 
template<class Type >
label addToSelection (vtkDataArraySelection *, const IOobjectList &, const string &suffix=string::null)
 Add objects of Type to paraview array selection. More...
 
template<template< class > class patchType, class meshType >
void updateInfoFields (vtkDataArraySelection *)
 Field info. More...
 
void updateInfoLagrangianFields ()
 Lagrangian field info. More...
 
void updateFoamMesh ()
 OpenFOAM mesh. More...
 
void reduceMemory ()
 Reduce memory footprint after conversion. More...
 
void convertMeshVolume (vtkMultiBlockDataSet *, int &blockNo)
 Volume mesh. More...
 
void convertMeshLagrangian (vtkMultiBlockDataSet *, int &blockNo)
 Lagrangian mesh. More...
 
void convertMeshPatches (vtkMultiBlockDataSet *, int &blockNo)
 Patch meshes. More...
 
void convertMeshCellZones (vtkMultiBlockDataSet *, int &blockNo)
 Cell zone meshes. More...
 
void convertMeshFaceZones (vtkMultiBlockDataSet *, int &blockNo)
 Face zone meshes. More...
 
void convertMeshPointZones (vtkMultiBlockDataSet *, int &blockNo)
 Point zone meshes. More...
 
void convertMeshCellSets (vtkMultiBlockDataSet *, int &blockNo)
 Cell set meshes. More...
 
void convertMeshFaceSets (vtkMultiBlockDataSet *, int &blockNo)
 Face set meshes. More...
 
void convertMeshPointSets (vtkMultiBlockDataSet *, int &blockNo)
 Point set meshes. More...
 
vtkUnstructuredGrid * volumeVTKMesh (const fvMesh &, polyDecomp &)
 Add internal mesh/cell set meshes. More...
 
vtkPolyData * lagrangianVTKMesh (const fvMesh &, const word &cloudName)
 Add Lagrangian mesh. More...
 
template<class PatchType >
vtkPolyData * patchVTKMesh (const word &name, const PatchType &)
 Add patch mesh. More...
 
vtkPolyData * pointZoneVTKMesh (const fvMesh &, const labelList &pointLabels)
 Add point zone. More...
 
vtkPolyData * faceSetVTKMesh (const fvMesh &, const faceSet &)
 Add face set mesh. More...
 
vtkPolyData * pointSetVTKMesh (const fvMesh &, const pointSet &)
 Add point mesh. More...
 
void convertVolFields (vtkMultiBlockDataSet *)
 Convert volume fields. More...
 
void convertPointFields (vtkMultiBlockDataSet *)
 Convert point fields. More...
 
void convertLagrangianFields (vtkMultiBlockDataSet *)
 Convert Lagrangian fields. More...
 
template<class GeoField >
label addObjectsToSelection (vtkDataArraySelection *, const IOobjectList &, const string &suffix=string::null)
 Add the fields in the selected time directory to the selection. More...
 
template<class Type >
void convertVolField (const PtrList< PrimitivePatchInterpolation< primitivePatch > > &, const GeometricField< Type, fvPatchField, volMesh > &, const bool interpFields, vtkMultiBlockDataSet *output)
 Volume field - all types. More...
 
template<class Type >
void convertVolFields (const fvMesh &, const PtrList< PrimitivePatchInterpolation< primitivePatch > > &, const IOobjectList &, const bool interpFields, vtkMultiBlockDataSet *output)
 Volume fields - all types. More...
 
template<class Type >
void convertDimFields (const fvMesh &, const PtrList< PrimitivePatchInterpolation< primitivePatch > > &, const IOobjectList &, const bool interpFields, vtkMultiBlockDataSet *output)
 Volume internal fields (DimensionedField)- all types. More...
 
template<class Type >
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. More...
 
template<class Type >
void convertVolField (const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const polyDecomp &)
 Volume field. More...
 
template<class Type >
void convertPatchField (const word &name, const Field< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
 Patch field. More...
 
template<class Type >
void convertFaceField (const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const fvMesh &, const labelList &faceLabels)
 Face set/zone field. More...
 
template<class Type >
void convertLagrangianFields (const IOobjectList &, vtkMultiBlockDataSet *output, const label datasetNo)
 Lagrangian fields - all types. More...
 
template<class Type >
void convertLagrangianField (const IOField< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
 Lagrangian field. More...
 
template<class Type >
void convertPointFields (const fvMesh &, const pointMesh &, const IOobjectList &, vtkMultiBlockDataSet *output)
 Point fields - all types. More...
 
template<class Type >
void convertPointFieldBlock (const GeometricField< Type, pointPatchField, pointMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const List< polyDecomp > &)
 Point field - all selected parts. More...
 
template<class Type >
void convertPointField (const GeometricField< Type, pointPatchField, pointMesh > &, const GeometricField< Type, fvPatchField, volMesh > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo, const polyDecomp &)
 Point fields. More...
 
template<class Type >
void convertPatchPointField (const word &name, const Field< Type > &, vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
 Patch point field. More...
 
word getPartName (const int)
 Get the first word from the mesh parts selection. More...
 
 vtkPV4Foam (const vtkPV4Foam &)
 Disallow default bitwise copy construct. More...
 
void operator= (const vtkPV4Foam &)
 Disallow default bitwise assignment. More...
 

Static Private Member Functions

static void AddToBlock (vtkMultiBlockDataSet *output, vtkDataSet *dataset, const arrayRange &, const label datasetNo, const std::string &datasetName)
 
static vtkDataSet * GetDataSetFromBlock (vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
 
static label GetNumberOfDataSets (vtkMultiBlockDataSet *output, const arrayRange &)
 
static void pruneObjectList (IOobjectList &, const wordHashSet &)
 Only keep what is listed in hashSet. More...
 
static wordHashSet getSelected (vtkDataArraySelection *)
 Retrieve the current selections. More...
 
static wordHashSet getSelected (vtkDataArraySelection *, const arrayRange &)
 Retrieve a sub-list of the current selections. More...
 
static stringList getSelectedArrayEntries (vtkDataArraySelection *)
 Retrieve the current selections. More...
 
static stringList getSelectedArrayEntries (vtkDataArraySelection *, const arrayRange &)
 Retrieve a sub-list of the current selections. More...
 
static void setSelectedArrayEntries (vtkDataArraySelection *, const stringList &)
 Set selection(s) More...
 

Private Attributes

vtkPV4FoamReader * reader_
 Access to the controlling vtkPV4FoamReader. More...
 
autoPtr< TimedbPtr_
 OpenFOAM time control. More...
 
fvMeshmeshPtr_
 OpenFOAM mesh. More...
 
word meshRegion_
 The mesh region. More...
 
fileName meshDir_
 The mesh directory for the region. More...
 
int timeIndex_
 The time index. More...
 
bool meshChanged_
 Track changes in mesh geometry. More...
 
bool fieldsChanged_
 Track changes in fields. More...
 
boolList partStatus_
 Selected geometrical parts (internalMesh, patches, ...) More...
 
labelList partDataset_
 Datasets corresponding to selected geometrical pieces. More...
 
arrayRange arrayRangeVolume_
 First instance and size of various mesh parts. More...
 
arrayRange arrayRangePatches_
 
arrayRange arrayRangeLagrangian_
 
arrayRange arrayRangeCellZones_
 
arrayRange arrayRangeFaceZones_
 
arrayRange arrayRangePointZones_
 
arrayRange arrayRangeCellSets_
 
arrayRange arrayRangeFaceSets_
 
arrayRange arrayRangePointSets_
 
List< polyDecompregionPolyDecomp_
 Decomposed cells information (mesh regions) More...
 
List< polyDecompzonePolyDecomp_
 Decomposed cells information (cellZone meshes) More...
 
List< polyDecompcsetPolyDecomp_
 Decomposed cells information (cellSet meshes) More...
 
List< vtkTextActor * > patchTextActorsPtrs_
 List of patch names for rendering to window. More...
 

Detailed Description

Provides a reader interface for OpenFOAM to VTK interaction.

Source files
Needed by VTK: vtkDataArrayTemplateImplicit.txx

Definition at line 107 of file vtkPV4Foam.H.

Constructor & Destructor Documentation

◆ vtkPV4Foam() [1/2]

vtkPV4Foam ( const vtkPV4Foam )
private

Disallow default bitwise copy construct.

◆ vtkPV4Foam() [2/2]

vtkPV4Foam ( const char *const  FileName,
vtkPV4FoamReader *  reader 
)

Construct from components.

◆ ~vtkPV4Foam()

~vtkPV4Foam ( )

Destructor.

Member Function Documentation

◆ AddToBlock()

void AddToBlock ( vtkMultiBlockDataSet *  output,
vtkDataSet *  dataset,
const arrayRange range,
const label  datasetNo,
const std::string &  datasetName 
)
staticprivate

Definition at line 77 of file vtkPV4FoamUtils.C.

References Foam::endl(), FatalErrorInFunction, Foam::Info, Foam::compressible::New(), and range.

Here is the call graph for this function:

◆ GetDataSetFromBlock()

vtkDataSet * GetDataSetFromBlock ( vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo 
)
staticprivate

Definition at line 137 of file vtkPV4FoamUtils.C.

References range.

◆ GetNumberOfDataSets()

Foam::label GetNumberOfDataSets ( vtkMultiBlockDataSet *  output,
const arrayRange range 
)
staticprivate

Definition at line 159 of file vtkPV4FoamUtils.C.

References range.

◆ resetCounters()

void resetCounters ( )
private

Reset data counters.

◆ updateMeshPartsStatus()

void updateMeshPartsStatus ( )
private

Update the mesh parts selected in the GUI.

◆ updateInfoInternalMesh()

void updateInfoInternalMesh ( vtkDataArraySelection *  )
private

Internal mesh info.

◆ updateInfoLagrangian()

void updateInfoLagrangian ( vtkDataArraySelection *  )
private

Lagrangian info.

◆ updateInfoPatches()

void updateInfoPatches ( vtkDataArraySelection *  ,
stringList  
)
private

Patch info.

◆ updateInfoSets()

void updateInfoSets ( vtkDataArraySelection *  )
private

Set info.

◆ updateInfoZones()

void updateInfoZones ( vtkDataArraySelection *  )
private

Zone info.

◆ getZoneNames() [1/2]

wordList getZoneNames ( const word zoneType) const
private

Get non-empty zone names for zoneType from file.

◆ getZoneNames() [2/2]

wordList getZoneNames ( const ZoneMesh< ZoneType, polyMesh > &  ) const
private

Get non-empty zone names from mesh info.

◆ addToSelection() [1/2]

label addToSelection ( vtkDataArraySelection *  ,
const IOobjectList ,
const string suffix = string::null 
)
private

Add objects of Type to paraview array selection.

◆ updateInfoFields()

void updateInfoFields ( vtkDataArraySelection *  select)
private

Field info.

Add volume fields to GUI

Add dimensioned fields to GUI

Definition at line 36 of file vtkPV4FoamUpdateInfoFields.H.

References Foam::endl(), Foam::vtkPV3Readers::getSelectedArrayEntries(), Foam::Info, Foam::vtkPV3Readers::setSelectedArrayEntries(), List::setSize(), and timeName.

Here is the call graph for this function:

◆ updateInfoLagrangianFields()

void updateInfoLagrangianFields ( )
private

Lagrangian field info.

◆ updateFoamMesh()

void updateFoamMesh ( )
private

OpenFOAM mesh.

◆ reduceMemory()

void reduceMemory ( )
private

Reduce memory footprint after conversion.

◆ convertMeshVolume()

void convertMeshVolume ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Volume mesh.

◆ convertMeshLagrangian()

void convertMeshLagrangian ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Lagrangian mesh.

◆ convertMeshPatches()

void convertMeshPatches ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Patch meshes.

◆ convertMeshCellZones()

void convertMeshCellZones ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Cell zone meshes.

◆ convertMeshFaceZones()

void convertMeshFaceZones ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Face zone meshes.

◆ convertMeshPointZones()

void convertMeshPointZones ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Point zone meshes.

◆ convertMeshCellSets()

void convertMeshCellSets ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Cell set meshes.

◆ convertMeshFaceSets()

void convertMeshFaceSets ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Face set meshes.

◆ convertMeshPointSets()

void convertMeshPointSets ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Point set meshes.

◆ volumeVTKMesh()

vtkUnstructuredGrid* volumeVTKMesh ( const fvMesh ,
polyDecomp  
)
private

Add internal mesh/cell set meshes.

◆ lagrangianVTKMesh()

vtkPolyData* lagrangianVTKMesh ( const fvMesh ,
const word cloudName 
)
private

Add Lagrangian mesh.

◆ patchVTKMesh()

vtkPolyData* patchVTKMesh ( const word name,
const PatchType &   
)
private

Add patch mesh.

◆ pointZoneVTKMesh()

vtkPolyData* pointZoneVTKMesh ( const fvMesh ,
const labelList pointLabels 
)
private

Add point zone.

◆ faceSetVTKMesh()

vtkPolyData* faceSetVTKMesh ( const fvMesh ,
const faceSet  
)
private

Add face set mesh.

◆ pointSetVTKMesh()

vtkPolyData* pointSetVTKMesh ( const fvMesh ,
const pointSet  
)
private

Add point mesh.

◆ convertVolFields() [1/2]

void convertVolFields ( vtkMultiBlockDataSet *  )
private

Convert volume fields.

◆ convertPointFields() [1/2]

void convertPointFields ( vtkMultiBlockDataSet *  )
private

Convert point fields.

◆ convertLagrangianFields() [1/2]

void convertLagrangianFields ( vtkMultiBlockDataSet *  )
private

Convert Lagrangian fields.

◆ addObjectsToSelection()

label addObjectsToSelection ( vtkDataArraySelection *  ,
const IOobjectList ,
const string suffix = string::null 
)
private

Add the fields in the selected time directory to the selection.

lists

◆ convertVolField() [1/2]

void convertVolField ( const PtrList< PrimitivePatchInterpolation< primitivePatch > > &  ppInterpList,
const GeometricField< Type, fvPatchField, volMesh > &  tf,
const bool  interpFields,
vtkMultiBlockDataSet *  output 
)
private

◆ convertVolFields() [2/2]

void convertVolFields ( const fvMesh mesh,
const PtrList< PrimitivePatchInterpolation< primitivePatch > > &  ppInterpList,
const IOobjectList objects,
const bool  interpFields,
vtkMultiBlockDataSet *  output 
)
private

Volume fields - all types.

Definition at line 266 of file vtkPV4FoamVolFields.H.

References forAllConstIter(), mesh, and tf.

Here is the call graph for this function:

◆ convertDimFields()

void convertDimFields ( const fvMesh mesh,
const PtrList< PrimitivePatchInterpolation< primitivePatch > > &  ppInterpList,
const IOobjectList objects,
const bool  interpFields,
vtkMultiBlockDataSet *  output 
)
private

Volume internal fields (DimensionedField)- all types.

Definition at line 301 of file vtkPV4FoamVolFields.H.

References GeometricField::correctBoundaryConditions(), DimensionedField::dimensions(), forAll, forAllConstIter(), mesh, DimensionedField::mesh(), IOobject::readOpt(), and PtrList::set().

Here is the call graph for this function:

◆ convertVolFieldBlock()

void convertVolFieldBlock ( const GeometricField< Type, fvPatchField, volMesh > &  tf,
autoPtr< GeometricField< Type, pointPatchField, pointMesh > > &  ptfPtr,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const List< polyDecomp > &  decompLst 
)
private

Volume field - all selected parts.

Definition at line 362 of file vtkPV4FoamVolFields.H.

References range, and tf.

◆ convertVolField() [2/2]

void convertVolField ( const GeometricField< Type, fvPatchField, volMesh > &  tf,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo,
const polyDecomp decompInfo 
)
private

◆ convertPatchField()

void convertPatchField ( const word name,
const Field< Type > &  ptf,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo 
)
private

Patch field.

Definition at line 45 of file vtkPV4FoamPatchField.H.

References Foam::component(), forAll, Foam::vtkPV3Readers::GetDataSetFromBlock(), Foam::name(), Foam::compressible::New(), and range.

Here is the call graph for this function:

◆ convertFaceField()

void convertFaceField ( const GeometricField< Type, fvPatchField, volMesh > &  tf,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo,
const fvMesh mesh,
const labelList faceLabels 
)
private

Face set/zone field.

Definition at line 44 of file vtkPV4FoamFaceField.H.

References Foam::component(), Foam::endl(), forAll, Foam::vtkPV3Readers::GetDataSetFromBlock(), Foam::Info, mesh, Foam::compressible::New(), range, List::size(), and tf.

Here is the call graph for this function:

◆ convertLagrangianFields() [2/2]

void convertLagrangianFields ( const IOobjectList objects,
vtkMultiBlockDataSet *  output,
const label  datasetNo 
)
private

Lagrangian fields - all types.

Definition at line 40 of file vtkPV4FoamLagrangianFields.H.

References forAllConstIter(), range, and tf.

Here is the call graph for this function:

◆ convertLagrangianField()

void convertLagrangianField ( const IOField< Type > &  tf,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo 
)
private

Lagrangian field.

Definition at line 62 of file vtkPV4FoamLagrangianFields.H.

References Foam::component(), Foam::endl(), forAll, Foam::vtkPV3Readers::GetDataSetFromBlock(), Foam::Info, Foam::compressible::New(), range, and tf.

Here is the call graph for this function:

◆ convertPointFields() [2/2]

void convertPointFields ( const fvMesh mesh,
const pointMesh pMesh,
const IOobjectList objects,
vtkMultiBlockDataSet *  output 
)
private

Point fields - all types.

Definition at line 41 of file vtkPV4FoamPointFields.H.

References GeometricField::boundaryField(), Foam::endl(), fld(), forAllConstIter(), Foam::Info, GeometricField::internalField(), mesh, patches, and patchId().

Here is the call graph for this function:

◆ convertPointFieldBlock()

void convertPointFieldBlock ( const GeometricField< Type, pointPatchField, pointMesh > &  ptf,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const List< polyDecomp > &  decompLst 
)
private

Point field - all selected parts.

Definition at line 174 of file vtkPV4FoamPointFields.H.

References range.

◆ convertPointField()

void convertPointField ( const GeometricField< Type, pointPatchField, pointMesh > &  ptf,
const GeometricField< Type, fvPatchField, volMesh > &  tf,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo,
const polyDecomp decomp 
)
private

◆ convertPatchPointField()

void convertPatchPointField ( const word name,
const Field< Type > &  pptf,
vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo 
)
private

Patch point field.

Definition at line 87 of file vtkPV4FoamPatchField.H.

References Foam::component(), forAll, Foam::vtkPV3Readers::GetDataSetFromBlock(), Foam::name(), Foam::compressible::New(), and range.

Here is the call graph for this function:

◆ pruneObjectList()

static void pruneObjectList ( IOobjectList ,
const wordHashSet  
)
staticprivate

Only keep what is listed in hashSet.

◆ getSelected() [1/2]

Foam::wordHashSet getSelected ( vtkDataArraySelection *  select)
staticprivate

Retrieve the current selections.

Definition at line 184 of file vtkPV4FoamUtils.C.

References HashSet< Key, Hash >::insert().

Here is the call graph for this function:

◆ getSelected() [2/2]

Foam::wordHashSet getSelected ( vtkDataArraySelection *  select,
const arrayRange range 
)
staticprivate

Retrieve a sub-list of the current selections.

Definition at line 204 of file vtkPV4FoamUtils.C.

References HashSet< Key, Hash >::insert(), and range.

Here is the call graph for this function:

◆ getSelectedArrayEntries() [1/2]

Foam::stringList getSelectedArrayEntries ( vtkDataArraySelection *  select)
staticprivate

Retrieve the current selections.

Definition at line 225 of file vtkPV4FoamUtils.C.

References forAll, Foam::Info, and List::setSize().

Here is the call graph for this function:

◆ getSelectedArrayEntries() [2/2]

Foam::stringList getSelectedArrayEntries ( vtkDataArraySelection *  select,
const arrayRange range 
)
staticprivate

Retrieve a sub-list of the current selections.

Definition at line 264 of file vtkPV4FoamUtils.C.

References forAll, Foam::Info, range, and List::setSize().

Here is the call graph for this function:

◆ setSelectedArrayEntries()

void setSelectedArrayEntries ( vtkDataArraySelection *  select,
const stringList selections 
)
staticprivate

Set selection(s)

Definition at line 303 of file vtkPV4FoamUtils.C.

References forAll.

◆ getPartName()

Foam::word getPartName ( const int  partId)
private

Get the first word from the mesh parts selection.

Definition at line 177 of file vtkPV4FoamUtils.C.

References vtkPV4Foam::reader_.

◆ operator=()

void operator= ( const vtkPV4Foam )
private

Disallow default bitwise assignment.

◆ ClassName()

ClassName ( "vtkPV4Foam"  )

Static data members.

◆ updateInfo()

void updateInfo ( )

Update.

◆ Update()

void Update ( vtkMultiBlockDataSet *  output,
vtkMultiBlockDataSet *  lagrangianOutput 
)

◆ CleanUp()

void CleanUp ( )

Clean any storage.

◆ findTimes()

double* findTimes ( int &  nTimeSteps)

Allocate and return a list of selected times.

returns the count via the parameter

◆ renderPatchNames()

void renderPatchNames ( vtkRenderer *  ,
const bool  show 
)

Add/remove patch names to/from the view.

◆ setTime()

int setTime ( int  count,
const double  requestTimes[] 
)

Set the runTime to the first plausible request time,.

returns the timeIndex sets to "constant" on error

◆ timeIndex()

int timeIndex ( ) const
inline

The current time index.

Definition at line 721 of file vtkPV4Foam.H.

References vtkPV4Foam::timeIndex_.

◆ PrintSelf()

void PrintSelf ( ostream &  ,
vtkIndent   
) const

Debug information.

◆ printMemory()

void printMemory ( )
static

Simple memory used debugging information.

Definition at line 330 of file vtkPV4FoamUtils.C.

References Foam::Info, and memInfo::valid().

Here is the call graph for this function:

◆ addToSelection() [2/2]

Foam::label addToSelection ( vtkDataArraySelection *  select,
const IOobjectList objectLst,
const string suffix 
)

Definition at line 40 of file vtkPV4FoamAddToSelection.H.

References forAll, and IOobjectList::names().

Here is the call graph for this function:

Field Documentation

◆ reader_

vtkPV4FoamReader* reader_
private

Access to the controlling vtkPV4FoamReader.

Definition at line 249 of file vtkPV4Foam.H.

Referenced by vtkPV4Foam::getPartName().

◆ dbPtr_

autoPtr<Time> dbPtr_
private

OpenFOAM time control.

Definition at line 252 of file vtkPV4Foam.H.

◆ meshPtr_

fvMesh* meshPtr_
private

OpenFOAM mesh.

Definition at line 255 of file vtkPV4Foam.H.

◆ meshRegion_

word meshRegion_
private

The mesh region.

Definition at line 258 of file vtkPV4Foam.H.

◆ meshDir_

fileName meshDir_
private

The mesh directory for the region.

Definition at line 261 of file vtkPV4Foam.H.

◆ timeIndex_

int timeIndex_
private

The time index.

Definition at line 264 of file vtkPV4Foam.H.

Referenced by vtkPV4Foam::timeIndex().

◆ meshChanged_

bool meshChanged_
private

Track changes in mesh geometry.

Definition at line 267 of file vtkPV4Foam.H.

◆ fieldsChanged_

bool fieldsChanged_
private

Track changes in fields.

Definition at line 270 of file vtkPV4Foam.H.

◆ partStatus_

boolList partStatus_
private

Selected geometrical parts (internalMesh, patches, ...)

Definition at line 273 of file vtkPV4Foam.H.

◆ partDataset_

labelList partDataset_
private

Datasets corresponding to selected geometrical pieces.

a negative number indicates that no vtkmesh exists for this piece

Definition at line 277 of file vtkPV4Foam.H.

◆ arrayRangeVolume_

arrayRange arrayRangeVolume_
private

First instance and size of various mesh parts.

used to index into partStatus_ and partDataset_

Definition at line 281 of file vtkPV4Foam.H.

◆ arrayRangePatches_

arrayRange arrayRangePatches_
private

Definition at line 282 of file vtkPV4Foam.H.

◆ arrayRangeLagrangian_

arrayRange arrayRangeLagrangian_
private

Definition at line 283 of file vtkPV4Foam.H.

◆ arrayRangeCellZones_

arrayRange arrayRangeCellZones_
private

Definition at line 284 of file vtkPV4Foam.H.

◆ arrayRangeFaceZones_

arrayRange arrayRangeFaceZones_
private

Definition at line 285 of file vtkPV4Foam.H.

◆ arrayRangePointZones_

arrayRange arrayRangePointZones_
private

Definition at line 286 of file vtkPV4Foam.H.

◆ arrayRangeCellSets_

arrayRange arrayRangeCellSets_
private

Definition at line 287 of file vtkPV4Foam.H.

◆ arrayRangeFaceSets_

arrayRange arrayRangeFaceSets_
private

Definition at line 288 of file vtkPV4Foam.H.

◆ arrayRangePointSets_

arrayRange arrayRangePointSets_
private

Definition at line 289 of file vtkPV4Foam.H.

◆ regionPolyDecomp_

List<polyDecomp> regionPolyDecomp_
private

Decomposed cells information (mesh regions)

TODO: regions

Definition at line 293 of file vtkPV4Foam.H.

◆ zonePolyDecomp_

List<polyDecomp> zonePolyDecomp_
private

Decomposed cells information (cellZone meshes)

Definition at line 296 of file vtkPV4Foam.H.

◆ csetPolyDecomp_

List<polyDecomp> csetPolyDecomp_
private

Decomposed cells information (cellSet meshes)

Definition at line 299 of file vtkPV4Foam.H.

◆ patchTextActorsPtrs_

List<vtkTextActor*> patchTextActorsPtrs_
private

List of patch names for rendering to window.

Definition at line 302 of file vtkPV4Foam.H.


The documentation for this class was generated from the following files: