vtkFLUENTReader Class Reference

#include <vtkFLUENTReader.h>

Inheritance diagram for vtkFLUENTReader:

Inheritance graph
[legend]
Collaboration diagram for vtkFLUENTReader:

Collaboration graph
[legend]

List of all members.


Detailed Description

reads a dataset in Fluent file format

vtkFLUENTReader creates an unstructured grid dataset. It reads .cas and .dat files stored in FLUENT native format.

Thanks:
Thanks to Brian W. Dotson & Terry E. Jordan (Department of Energy, National Energy Technology Laboratory) & Douglas McCorkle (Iowa State University) who developed this class. Please address all comments to Brian Dotson (brian.dotson@netl.doe.gov) & Terry Jordan (terry.jordan@sa.netl.doe.gov) & Doug McCorkle (mccdo@iastate.edu)
See also:
vtkGAMBITReader

Definition at line 49 of file vtkFLUENTReader.h.


Public Types

typedef
vtkMultiBlockDataSetAlgorithm 
Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
int GetNumberOfCellArrays (void)
const char * GetCellArrayName (int index)
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual int GetNumberOfCells ()
int GetCellArrayStatus (const char *name)
void SetCellArrayStatus (const char *name, int status)
void DisableAllCellArrays ()
void EnableAllCellArrays ()
void SetDataByteOrderToBigEndian ()
void SetDataByteOrderToLittleEndian ()
int GetDataByteOrder ()
void SetDataByteOrder (int)
const char * GetDataByteOrderAsString ()

Static Public Member Functions

static vtkFLUENTReaderNew ()
static int IsTypeOf (const char *type)
static vtkFLUENTReaderSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkFLUENTReader ()
 ~vtkFLUENTReader ()
int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual bool OpenCaseFile (const char *filename)
virtual bool OpenDataFile (const char *filename)
virtual int GetCaseChunk ()
virtual void GetNumberOfCellZones ()
virtual int GetCaseIndex ()
virtual void LoadVariableNames ()
virtual int GetDataIndex ()
virtual int GetDataChunk ()
virtual void GetSpeciesVariableNames ()
virtual void ParseCaseFile ()
virtual int GetDimension ()
virtual void GetLittleEndianFlag ()
virtual void GetNodesAscii ()
virtual void GetNodesSinglePrecision ()
virtual void GetNodesDoublePrecision ()
virtual void GetCellsAscii ()
virtual void GetCellsBinary ()
virtual void GetFacesAscii ()
virtual void GetFacesBinary ()
virtual void GetPeriodicShadowFacesAscii ()
virtual void GetPeriodicShadowFacesBinary ()
virtual void GetCellTreeAscii ()
virtual void GetCellTreeBinary ()
virtual void GetFaceTreeAscii ()
virtual void GetFaceTreeBinary ()
virtual void GetInterfaceFaceParentsAscii ()
virtual void GetInterfaceFaceParentsBinary ()
virtual void GetNonconformalGridInterfaceFaceInformationAscii ()
virtual void GetNonconformalGridInterfaceFaceInformationBinary ()
virtual void GetPartitionInfo ()
virtual void CleanCells ()
virtual void PopulateCellNodes ()
virtual int GetCaseBufferInt (int ptr)
virtual float GetCaseBufferFloat (int ptr)
virtual double GetCaseBufferDouble (int ptr)
virtual void PopulateTriangleCell (int i)
virtual void PopulateTetraCell (int i)
virtual void PopulateQuadCell (int i)
virtual void PopulateHexahedronCell (int i)
virtual void PopulatePyramidCell (int i)
virtual void PopulateWedgeCell (int i)
virtual void PopulatePolyhedronCell (int i)
virtual void ParseDataFile ()
virtual int GetDataBufferInt (int ptr)
virtual float GetDataBufferFloat (int ptr)
virtual double GetDataBufferDouble (int ptr)
virtual void GetData (int dataType)
virtual bool ParallelCheckCell (int vtkNotUsed(i))
virtual void SetSwapBytes (int)
int GetSwapBytes ()
virtual void SwapBytesOn ()
virtual void SwapBytesOff ()

Protected Attributes

vtkDataArraySelectionCellDataArraySelection
char * FileName
int NumberOfCells
int NumberOfCellArrays
ifstream * FluentCaseFile
ifstream * FluentDataFile
stdString * CaseBuffer
stdString * DataBuffer
vtkPointsPoints
vtkTriangleTriangle
vtkTetraTetra
vtkQuadQuad
vtkHexahedronHexahedron
vtkPyramidPyramid
vtkWedgeWedge
vtkConvexPointSetConvexPointSet
cellVector * Cells
faceVector * Faces
stdMap * VariableNames
intVector * CellZones
scalarDataVector * ScalarDataChunks
vectorDataVector * VectorDataChunks
intVectorVector * SubSectionZones
intVector * SubSectionIds
intVector * SubSectionSize
stringVector * ScalarVariableNames
intVector * ScalarSubSectionIds
stringVector * VectorVariableNames
intVector * VectorSubSectionIds
int SwapBytes
int GridDimension
int DataPass
int NumberOfScalars
int NumberOfVectors

Member Typedef Documentation

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Definition at line 53 of file vtkFLUENTReader.h.


Constructor & Destructor Documentation

vtkFLUENTReader::vtkFLUENTReader (  )  [protected]

vtkFLUENTReader::~vtkFLUENTReader (  )  [protected]


Member Function Documentation

static vtkFLUENTReader* vtkFLUENTReader::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual const char* vtkFLUENTReader::GetClassName (  )  [virtual]

Reimplemented from vtkMultiBlockDataSetAlgorithm.

static int vtkFLUENTReader::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual int vtkFLUENTReader::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

static vtkFLUENTReader* vtkFLUENTReader::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkMultiBlockDataSetAlgorithm.

void vtkFLUENTReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual void vtkFLUENTReader::SetFileName ( const char *   )  [virtual]

Specify the file name of the Fluent case file to read.

virtual char* vtkFLUENTReader::GetFileName (  )  [virtual]

Specify the file name of the Fluent case file to read.

virtual int vtkFLUENTReader::GetNumberOfCells (  )  [virtual]

Get the total number of cells. The number of cells is only valid after a successful read of the data file is performed. Initial value is 0.

int vtkFLUENTReader::GetNumberOfCellArrays ( void   ) 

Get the number of cell arrays available in the input.

const char* vtkFLUENTReader::GetCellArrayName ( int  index  ) 

Get the name of the cell array with the given index in the input.

int vtkFLUENTReader::GetCellArrayStatus ( const char *  name  ) 

Get/Set whether the cell array with the given name is to be read.

void vtkFLUENTReader::SetCellArrayStatus ( const char *  name,
int  status 
)

Get/Set whether the cell array with the given name is to be read.

void vtkFLUENTReader::DisableAllCellArrays (  ) 

Turn on/off all cell arrays.

void vtkFLUENTReader::EnableAllCellArrays (  ) 

Turn on/off all cell arrays.

void vtkFLUENTReader::SetDataByteOrderToBigEndian (  ) 

These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. Not used when reading text files.

void vtkFLUENTReader::SetDataByteOrderToLittleEndian (  ) 

These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. Not used when reading text files.

int vtkFLUENTReader::GetDataByteOrder (  ) 

These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. Not used when reading text files.

void vtkFLUENTReader::SetDataByteOrder ( int   ) 

These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. Not used when reading text files.

const char* vtkFLUENTReader::GetDataByteOrderAsString (  ) 

These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian. Not used when reading text files.

int vtkFLUENTReader::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

int vtkFLUENTReader::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual void vtkFLUENTReader::SetSwapBytes ( int   )  [protected, virtual]

Set/Get the byte swapping to explicitly swap the bytes of a file. Not used when reading text files.

int vtkFLUENTReader::GetSwapBytes (  )  [inline, protected]

Set/Get the byte swapping to explicitly swap the bytes of a file. Not used when reading text files.

Definition at line 135 of file vtkFLUENTReader.h.

virtual void vtkFLUENTReader::SwapBytesOn (  )  [protected, virtual]

Set/Get the byte swapping to explicitly swap the bytes of a file. Not used when reading text files.

virtual void vtkFLUENTReader::SwapBytesOff (  )  [protected, virtual]

Set/Get the byte swapping to explicitly swap the bytes of a file. Not used when reading text files.

virtual bool vtkFLUENTReader::OpenCaseFile ( const char *  filename  )  [protected, virtual]

virtual bool vtkFLUENTReader::OpenDataFile ( const char *  filename  )  [protected, virtual]

virtual int vtkFLUENTReader::GetCaseChunk (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetNumberOfCellZones (  )  [protected, virtual]

virtual int vtkFLUENTReader::GetCaseIndex (  )  [protected, virtual]

virtual void vtkFLUENTReader::LoadVariableNames (  )  [protected, virtual]

virtual int vtkFLUENTReader::GetDataIndex (  )  [protected, virtual]

virtual int vtkFLUENTReader::GetDataChunk (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetSpeciesVariableNames (  )  [protected, virtual]

virtual void vtkFLUENTReader::ParseCaseFile (  )  [protected, virtual]

virtual int vtkFLUENTReader::GetDimension (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetLittleEndianFlag (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetNodesAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetNodesSinglePrecision (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetNodesDoublePrecision (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetCellsAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetCellsBinary (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetFacesAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetFacesBinary (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetPeriodicShadowFacesAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetPeriodicShadowFacesBinary (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetCellTreeAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetCellTreeBinary (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetFaceTreeAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetFaceTreeBinary (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetInterfaceFaceParentsAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetInterfaceFaceParentsBinary (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetNonconformalGridInterfaceFaceInformationAscii (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetNonconformalGridInterfaceFaceInformationBinary (  )  [protected, virtual]

virtual void vtkFLUENTReader::GetPartitionInfo (  )  [inline, protected, virtual]

Definition at line 173 of file vtkFLUENTReader.h.

virtual void vtkFLUENTReader::CleanCells (  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulateCellNodes (  )  [protected, virtual]

virtual int vtkFLUENTReader::GetCaseBufferInt ( int  ptr  )  [protected, virtual]

virtual float vtkFLUENTReader::GetCaseBufferFloat ( int  ptr  )  [protected, virtual]

virtual double vtkFLUENTReader::GetCaseBufferDouble ( int  ptr  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulateTriangleCell ( int  i  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulateTetraCell ( int  i  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulateQuadCell ( int  i  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulateHexahedronCell ( int  i  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulatePyramidCell ( int  i  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulateWedgeCell ( int  i  )  [protected, virtual]

virtual void vtkFLUENTReader::PopulatePolyhedronCell ( int  i  )  [protected, virtual]

virtual void vtkFLUENTReader::ParseDataFile (  )  [protected, virtual]

virtual int vtkFLUENTReader::GetDataBufferInt ( int  ptr  )  [protected, virtual]

virtual float vtkFLUENTReader::GetDataBufferFloat ( int  ptr  )  [protected, virtual]

virtual double vtkFLUENTReader::GetDataBufferDouble ( int  ptr  )  [protected, virtual]

virtual void vtkFLUENTReader::GetData ( int  dataType  )  [protected, virtual]

virtual bool vtkFLUENTReader::ParallelCheckCell ( int   vtkNotUsedi  )  [inline, protected, virtual]

Definition at line 191 of file vtkFLUENTReader.h.


Member Data Documentation

Definition at line 136 of file vtkFLUENTReader.h.

char* vtkFLUENTReader::FileName [protected]

Definition at line 140 of file vtkFLUENTReader.h.

Definition at line 141 of file vtkFLUENTReader.h.

Definition at line 142 of file vtkFLUENTReader.h.

ifstream* vtkFLUENTReader::FluentCaseFile [protected]

Definition at line 196 of file vtkFLUENTReader.h.

ifstream* vtkFLUENTReader::FluentDataFile [protected]

Definition at line 197 of file vtkFLUENTReader.h.

stdString* vtkFLUENTReader::CaseBuffer [protected]

Definition at line 198 of file vtkFLUENTReader.h.

stdString* vtkFLUENTReader::DataBuffer [protected]

Definition at line 199 of file vtkFLUENTReader.h.

Definition at line 201 of file vtkFLUENTReader.h.

Definition at line 202 of file vtkFLUENTReader.h.

Definition at line 203 of file vtkFLUENTReader.h.

Definition at line 204 of file vtkFLUENTReader.h.

Definition at line 205 of file vtkFLUENTReader.h.

Definition at line 206 of file vtkFLUENTReader.h.

Definition at line 207 of file vtkFLUENTReader.h.

Definition at line 208 of file vtkFLUENTReader.h.

cellVector* vtkFLUENTReader::Cells [protected]

Definition at line 210 of file vtkFLUENTReader.h.

faceVector* vtkFLUENTReader::Faces [protected]

Definition at line 211 of file vtkFLUENTReader.h.

stdMap* vtkFLUENTReader::VariableNames [protected]

Definition at line 212 of file vtkFLUENTReader.h.

intVector* vtkFLUENTReader::CellZones [protected]

Definition at line 213 of file vtkFLUENTReader.h.

scalarDataVector* vtkFLUENTReader::ScalarDataChunks [protected]

Definition at line 214 of file vtkFLUENTReader.h.

vectorDataVector* vtkFLUENTReader::VectorDataChunks [protected]

Definition at line 215 of file vtkFLUENTReader.h.

intVectorVector* vtkFLUENTReader::SubSectionZones [protected]

Definition at line 217 of file vtkFLUENTReader.h.

intVector* vtkFLUENTReader::SubSectionIds [protected]

Definition at line 218 of file vtkFLUENTReader.h.

intVector* vtkFLUENTReader::SubSectionSize [protected]

Definition at line 219 of file vtkFLUENTReader.h.

stringVector* vtkFLUENTReader::ScalarVariableNames [protected]

Definition at line 221 of file vtkFLUENTReader.h.

intVector* vtkFLUENTReader::ScalarSubSectionIds [protected]

Definition at line 222 of file vtkFLUENTReader.h.

stringVector* vtkFLUENTReader::VectorVariableNames [protected]

Definition at line 223 of file vtkFLUENTReader.h.

intVector* vtkFLUENTReader::VectorSubSectionIds [protected]

Definition at line 224 of file vtkFLUENTReader.h.

int vtkFLUENTReader::SwapBytes [protected]

Definition at line 226 of file vtkFLUENTReader.h.

Definition at line 227 of file vtkFLUENTReader.h.

int vtkFLUENTReader::DataPass [protected]

Definition at line 228 of file vtkFLUENTReader.h.

Definition at line 229 of file vtkFLUENTReader.h.

Definition at line 230 of file vtkFLUENTReader.h.


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

Generated on Mon Sep 27 18:24:24 2010 for VTK by  doxygen 1.5.6