38#ifndef vtkFLUENTCFFReader_h
39#define vtkFLUENTCFFReader_h
44#include "vtkIOFLUENTCFFModule.h"
49VTK_ABI_NAMESPACE_BEGIN
155 vtkSetMacro(ReadFaces,
bool);
156 vtkGetMacro(ReadFaces,
bool);
157 vtkBooleanMacro(ReadFaces,
bool);
373 std::string variableName;
376 std::vector<double> dataVector;
379 typedef long long hid_t;
380 void ReadFieldMetaData(
hid_t parentGroup,
int iphase, std::vector<std::string>& container);
386 std::vector<vtkSmartPointer<vtkUnstructuredGrid>>& grid,
const DataChunk& vectorDataChunk);
391 void CreateFaces(vtkMultiBlockDataSet* output);
398 void FillDataArrayForFaceZone(
const FaceZone& zone, vtkUnstructuredGrid* faceGrid,
399 const std::map<unsigned int, vtkIdType>& faceIdToLocalIndex);
401 std::vector<DataChunk> DataChunks;
402 std::vector<std::string> PreReadData;
403 std::vector<std::string> PreReadFaceData;
404 int NumberOfArrays = 0;
406 std::map<int, FaceZone> FaceZonesById;
408 vtkNew<vtkDataArraySelection> FaceDataArraySelection;
409 bool ReadFaces =
false;
Store on/off settings for data arrays, etc.
virtual void GetCellTree()
Get the tree (AMR) cell topology.
virtual void GetPeriodicShadowFaces()
Get the periodic shadown faces information !
virtual DataState OpenDataFile(const std::string &filename)
int GetFaceArrayStatus(const char *name)
Get/Set whether the face array with the given name is to be read.
void DisableAllCellArrays()
Turn on/off all cell arrays.
virtual void PopulatePolyhedronCell(int i)
const char * GetFaceArrayName(int index)
Get the name of the face array with the given index in the input.
int GetNumberOfFaceArrays()
Get the number of face arrays available in the input.
std::unique_ptr< vtkInternals > HDFImpl
std::vector< Face > Faces
void DisableAllFaceArrays()
Turn on/off all face arrays.
const char * GetCellArrayName(int index)
Get the name of the cell array with the given index in the input.
virtual void CleanCells()
Removes unnecessary faces from the cells.
virtual void PopulatePyramidCell(int i)
virtual void PopulateHexahedronCell(int i)
virtual void PopulateCellTree()
virtual int GetData()
Read and reconstruct data from .dat.h5 file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void GetNodes()
Get the size and index of node per zone.
int GetCellArrayStatus(const char *name)
Get/Set whether the cell array with the given name is to be read.
vtkMTimeType GetMTime() override
Overridden to take into account mtimes for vtkDataArraySelection instances.
virtual void GetFacesGlobal()
void SetFaceArrayStatus(const char *name, int status)
~vtkFLUENTCFFReader() override
virtual int GetMetaData()
Pre-read variable name data available for selection.
virtual void GetNumberOfCellZones()
Retrieve the number of cell zones.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual void PopulateTetraCell(int i)
vtkNew< vtkTriangle > Triangle
virtual void PopulateCellNodes()
Reconstruct and convert the Fluent data format to the VTK format.
virtual void GetCells()
Get the topology of cell per zone.
virtual void GetNodesGlobal()
Get the total number of nodes/cells/faces.
virtual void PopulateQuadCell(int i)
virtual void GetFaces()
Get the topology of face per zone.
virtual void GetFaceTree()
Get the tree (AMR) face topology.
virtual void GetNonconformalGridInterfaceFaceInformation()
Get the non conformal grid interface information !
vtkNew< vtkPyramid > Pyramid
vtkNew< vtkPoints > Points
vtkNew< vtkHexahedron > Hexahedron
int GetNumberOfCellArrays()
Get the number of cell arrays available in the input.
vtkNew< vtkDataArraySelection > CellDataArraySelection
virtual void GetCellsGlobal()
void SetCellArrayStatus(const char *name, int status)
void EnableAllCellArrays()
virtual int ParseCaseFile()
Reads necessary information from the .cas file.
virtual int GetDimension()
Get the dimension of the file (2D/3D)
virtual void PopulateWedgeCell(int i)
virtual void PopulateTriangleCell(int i)
Reconstruct VTK cell topology from Fluent format.
std::vector< Cell > Cells
static vtkFLUENTCFFReader * New()
virtual void GetInterfaceFaceParents()
Get the interface id of parent faces.
void EnableAllFaceArrays()
virtual bool OpenCaseFile(const std::string &filename)
Open the HDF5 file structure.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual void GetCellOverset()
Get the overset cells information !
std::vector< int > CellZones
a cell that represents a linear 3D hexahedron
a simple class to control print indentation
vtkMultiBlockDataSetAlgorithm()
Composite dataset that organizes datasets into blocks.
Allocate and hold a VTK object.
represent and manipulate 3D points
a 3D cell that represents a linear pyramid
a cell that represents a 2D quadrilateral
a 3D cell that represents a tetrahedron
a cell that represents a triangle
dataset represents arbitrary combinations of all possible cell types
a 3D cell that represents a linear wedge
std::vector< int > nodesOffset
std::vector< int > childId
vtkTypeUInt32 vtkMTimeType