VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkMultiBlockPLOT3DReader Class Reference

read PLOT3D data files More...

#include <vtkMultiBlockPLOT3DReader.h>

Inheritance diagram for vtkMultiBlockPLOT3DReader:
[legend]
Collaboration diagram for vtkMultiBlockPLOT3DReader:
[legend]

Public Types

enum  { FILE_BIG_ENDIAN =0, FILE_LITTLE_ENDIAN =1 }
 
typedef vtkMultiBlockDataSetAlgorithm Superclass
 
- Public Types inherited from vtkMultiBlockDataSetAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkMultiBlockPLOT3DReaderNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int CanReadBinaryFile (const char *fname)
 
void SetFileName (const char *name)
 
const char * GetFileName ()
 
virtual void SetXYZFileName (const char *)
 
virtual char * GetXYZFileName ()
 
virtual void SetQFileName (const char *)
 
virtual char * GetQFileName ()
 
virtual void SetFunctionFileName (const char *)
 
virtual char * GetFunctionFileName ()
 
virtual void SetAutoDetectFormat (int)
 
virtual int GetAutoDetectFormat ()
 
virtual void AutoDetectFormatOn ()
 
virtual void AutoDetectFormatOff ()
 
virtual void SetBinaryFile (int)
 
virtual int GetBinaryFile ()
 
virtual void BinaryFileOn ()
 
virtual void BinaryFileOff ()
 
virtual void SetMultiGrid (int)
 
virtual int GetMultiGrid ()
 
virtual void MultiGridOn ()
 
virtual void MultiGridOff ()
 
virtual void SetHasByteCount (int)
 
virtual int GetHasByteCount ()
 
virtual void HasByteCountOn ()
 
virtual void HasByteCountOff ()
 
virtual void SetIBlanking (int)
 
virtual int GetIBlanking ()
 
virtual void IBlankingOn ()
 
virtual void IBlankingOff ()
 
virtual void SetTwoDimensionalGeometry (int)
 
virtual int GetTwoDimensionalGeometry ()
 
virtual void TwoDimensionalGeometryOn ()
 
virtual void TwoDimensionalGeometryOff ()
 
virtual void SetDoublePrecision (int)
 
virtual int GetDoublePrecision ()
 
virtual void DoublePrecisionOn ()
 
virtual void DoublePrecisionOff ()
 
virtual void SetForceRead (int)
 
virtual int GetForceRead ()
 
virtual void ForceReadOn ()
 
virtual void ForceReadOff ()
 
void SetByteOrderToBigEndian ()
 
void SetByteOrderToLittleEndian ()
 
virtual void SetByteOrder (int)
 
virtual int GetByteOrder ()
 
const char * GetByteOrderAsString ()
 
virtual void SetR (double)
 
virtual double GetR ()
 
virtual void SetGamma (double)
 
virtual double GetGamma ()
 
void SetScalarFunctionNumber (int num)
 
virtual int GetScalarFunctionNumber ()
 
void SetVectorFunctionNumber (int num)
 
virtual int GetVectorFunctionNumber ()
 
void AddFunction (int functionNumber)
 
void RemoveFunction (int)
 
void RemoveAllFunctions ()
 
void SetController (vtkMultiProcessController *c)
 
virtual vtkMultiProcessControllerGetController ()
 
- Public Member Functions inherited from vtkMultiBlockDataSetAlgorithm
vtkMultiBlockDataSetAlgorithmNewInstance () const
 
vtkMultiBlockDataSetGetOutput ()
 
vtkMultiBlockDataSetGetOutput (int)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkMultiBlockPLOT3DReaderNew ()
 
static int IsTypeOf (const char *type)
 
static vtkMultiBlockPLOT3DReaderSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkMultiBlockDataSetAlgorithm
static vtkMultiBlockDataSetAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkMultiBlockDataSetAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkMultiBlockPLOT3DReader ()
 
 ~vtkMultiBlockPLOT3DReader ()
 
vtkDataArrayCreateFloatArray ()
 
int CheckFile (FILE *&fp, const char *fname)
 
int CheckGeometryFile (FILE *&xyzFp)
 
int CheckSolutionFile (FILE *&qFp)
 
int CheckFunctionFile (FILE *&fFp)
 
int GetByteCountSize ()
 
int SkipByteCount (FILE *fp)
 
int ReadIntBlock (FILE *fp, int n, int *block)
 
vtkIdType ReadValues (FILE *fp, int n, vtkDataArray *scalar)
 
virtual int ReadIntScalar (void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset)
 
virtual int ReadScalar (void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset)
 
virtual int ReadVector (void *vfp, int extent[6], int wextent[6], int numDims, vtkDataArray *vector, vtkTypeUInt64 offset)
 
virtual int OpenFileForDataRead (void *&fp, const char *fname)
 
virtual void CloseFile (void *fp)
 
int GetNumberOfBlocksInternal (FILE *xyzFp, int allocate)
 
int ReadGeometryHeader (FILE *fp)
 
int ReadQHeader (FILE *fp, bool checkGrid, int &nq, int &nqc, int &overflow)
 
int ReadFunctionHeader (FILE *fp, int *nFunctions)
 
void CalculateFileSize (FILE *fp)
 
int AutoDetectionCheck (FILE *fp)
 
void AssignAttribute (int fNumber, vtkStructuredGrid *output, int attributeType)
 
void MapFunction (int fNumber, vtkStructuredGrid *output)
 
void ComputeTemperature (vtkStructuredGrid *output)
 
void ComputePressure (vtkStructuredGrid *output)
 
void ComputeEnthalpy (vtkStructuredGrid *output)
 
void ComputeKineticEnergy (vtkStructuredGrid *output)
 
void ComputeVelocityMagnitude (vtkStructuredGrid *output)
 
void ComputeEntropy (vtkStructuredGrid *output)
 
void ComputeSwirl (vtkStructuredGrid *output)
 
void ComputeVelocity (vtkStructuredGrid *output)
 
void ComputeVorticity (vtkStructuredGrid *output)
 
void ComputePressureGradient (vtkStructuredGrid *output)
 
void ComputePressureCoefficient (vtkStructuredGrid *output)
 
void ComputeMachNumber (vtkStructuredGrid *output)
 
void ComputeSoundSpeed (vtkStructuredGrid *output)
 
void ComputeVorticityMagnitude (vtkStructuredGrid *output)
 
void ComputeStrainRate (vtkStructuredGrid *output)
 
vtkDataArrayNewFloatArray ()
 
void ClearGeometryCache ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkMultiBlockDataSetAlgorithm
 vtkMultiBlockDataSetAlgorithm ()
 
 ~vtkMultiBlockDataSetAlgorithm ()
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
vtkDataObjectGetInput (int port)
 
virtual int RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

char * XYZFileName
 
char * QFileName
 
char * FunctionFileName
 
int BinaryFile
 
int HasByteCount
 
int TwoDimensionalGeometry
 
int MultiGrid
 
int ForceRead
 
int ByteOrder
 
int IBlanking
 
int DoublePrecision
 
int AutoDetectFormat
 
int ExecutedGhostLevels
 
size_t FileSize
 
double R
 
double Gamma
 
double Uvinf
 
double Vvinf
 
double Wvinf
 
vtkIntArrayFunctionList
 
int ScalarFunctionNumber
 
int VectorFunctionNumber
 
vtkMultiBlockPLOT3DReaderInternalsInternal
 
vtkMultiProcessControllerController
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

read PLOT3D data files

vtkMultiBlockPLOT3DReader is a reader object that reads PLOT3D formatted files and generates structured grid(s) on output. PLOT3D is a computer graphics program designed to visualize the grids and solutions of computational fluid dynamics. This reader also supports the variant of the PLOT3D format used by NASA's OVERFLOW CFD software, including full support for all Q variables. Please see the "PLOT3D User's Manual" available from NASA Ames Research Center, Moffett Field CA.

PLOT3D files consist of a grid file (also known as XYZ file), an optional solution file (also known as a Q file), and an optional function file that contains user created data (currently unsupported). The Q file contains solution information as follows: the four parameters free stream mach number (Fsmach), angle of attack (Alpha), Reynolds number (Re), and total integration time (Time). This information is stored in an array called Properties in the FieldData of each output (tuple 0: fsmach, tuple 1: alpha, tuple 2: re, tuple 3: time). In addition, the solution file contains the flow density (scalar), flow momentum (vector), and flow energy (scalar).

Note that this reader does not support time series data which is usually stored as a series of Q and optionally XYZ files. If you want to read such a file series, use vtkPlot3DMetaReader.

The reader can generate additional scalars and vectors (or "functions") from this information. To use vtkMultiBlockPLOT3DReader, you must specify the particular function number for the scalar and vector you want to visualize. This implementation of the reader provides the following functions. The scalar functions are: -1 - don't read or compute any scalars 100 - density 110 - pressure 111 - pressure coefficient (requires Overflow file with Gamma) 112 - mach number (requires Overflow file with Gamma) 113 - sounds speed (requires Overflow file with Gamma) 120 - temperature 130 - enthalpy 140 - internal energy 144 - kinetic energy 153 - velocity magnitude 163 - stagnation energy 170 - entropy 184 - swirl 211 - vorticity magnitude

The vector functions are: -1 - don't read or compute any vectors 200 - velocity 201 - vorticity 202 - momentum 210 - pressure gradient. 212 - strain rate

(Other functions are described in the PLOT3D spec, but only those listed are implemented here.) Note that by default, this reader creates the density scalar (100), stagnation energy (163) and momentum vector (202) as output. (These are just read in from the solution file.) Please note that the validity of computation is a function of this class's gas constants (R, Gamma) and the equations used. They may not be suitable for your computational domain.

Additionally, you can read other data and associate it as a vtkDataArray into the output's point attribute data. Use the method AddFunction() to list all the functions that you'd like to read. AddFunction() accepts an integer parameter that defines the function number.

See also
vtkMultiBlockDataSet vtkStructuredGrid vtkPlot3DMetaReader
Examples:
vtkMultiBlockPLOT3DReader (Examples)
Tests:
vtkMultiBlockPLOT3DReader (Tests)

Definition at line 105 of file vtkMultiBlockPLOT3DReader.h.

Member Typedef Documentation

Definition at line 109 of file vtkMultiBlockPLOT3DReader.h.

Member Enumeration Documentation

anonymous enum
Enumerator
FILE_BIG_ENDIAN 
FILE_LITTLE_ENDIAN 

Definition at line 264 of file vtkMultiBlockPLOT3DReader.h.

Constructor & Destructor Documentation

vtkMultiBlockPLOT3DReader::vtkMultiBlockPLOT3DReader ( )
protected
vtkMultiBlockPLOT3DReader::~vtkMultiBlockPLOT3DReader ( )
protected

Member Function Documentation

static vtkMultiBlockPLOT3DReader* vtkMultiBlockPLOT3DReader::New ( )
static
static int vtkMultiBlockPLOT3DReader::IsTypeOf ( const char *  type)
static
virtual int vtkMultiBlockPLOT3DReader::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.

Reimplemented in vtkMPIMultiBlockPLOT3DReader.

static vtkMultiBlockPLOT3DReader* vtkMultiBlockPLOT3DReader::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkMultiBlockPLOT3DReader::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Reimplemented in vtkMPIMultiBlockPLOT3DReader.

vtkMultiBlockPLOT3DReader* vtkMultiBlockPLOT3DReader::NewInstance ( ) const
void vtkMultiBlockPLOT3DReader::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.

void vtkMultiBlockPLOT3DReader::SetFileName ( const char *  name)
inline

Set/Get the PLOT3D geometry filename.

Definition at line 114 of file vtkMultiBlockPLOT3DReader.h.

const char* vtkMultiBlockPLOT3DReader::GetFileName ( )
inline

Set/Get the PLOT3D geometry filename.

Definition at line 115 of file vtkMultiBlockPLOT3DReader.h.

virtual void vtkMultiBlockPLOT3DReader::SetXYZFileName ( const char *  )
virtual

Set/Get the PLOT3D geometry filename.

virtual char* vtkMultiBlockPLOT3DReader::GetXYZFileName ( )
virtual

Set/Get the PLOT3D geometry filename.

virtual void vtkMultiBlockPLOT3DReader::SetQFileName ( const char *  )
virtual

Set/Get the PLOT3D solution filename.

virtual char* vtkMultiBlockPLOT3DReader::GetQFileName ( )
virtual

Set/Get the PLOT3D solution filename.

virtual void vtkMultiBlockPLOT3DReader::SetFunctionFileName ( const char *  )
virtual

Set/Get the PLOT3D function filename.

virtual char* vtkMultiBlockPLOT3DReader::GetFunctionFileName ( )
virtual

Set/Get the PLOT3D function filename.

virtual void vtkMultiBlockPLOT3DReader::SetAutoDetectFormat ( int  )
virtual

When this option is turned on, the reader will try to figure out the values of various options such as byte order, byte count etc. automatically. This options works only for binary files. When it is turned on, the reader should be able to read most Plot3D files automatically. The default is OFF for backwards compatibility reasons. For binary files, it is strongly recommended that you turn on AutoDetectFormat and leave the other file format related options untouched.

virtual int vtkMultiBlockPLOT3DReader::GetAutoDetectFormat ( )
virtual

When this option is turned on, the reader will try to figure out the values of various options such as byte order, byte count etc. automatically. This options works only for binary files. When it is turned on, the reader should be able to read most Plot3D files automatically. The default is OFF for backwards compatibility reasons. For binary files, it is strongly recommended that you turn on AutoDetectFormat and leave the other file format related options untouched.

virtual void vtkMultiBlockPLOT3DReader::AutoDetectFormatOn ( )
virtual

When this option is turned on, the reader will try to figure out the values of various options such as byte order, byte count etc. automatically. This options works only for binary files. When it is turned on, the reader should be able to read most Plot3D files automatically. The default is OFF for backwards compatibility reasons. For binary files, it is strongly recommended that you turn on AutoDetectFormat and leave the other file format related options untouched.

virtual void vtkMultiBlockPLOT3DReader::AutoDetectFormatOff ( )
virtual

When this option is turned on, the reader will try to figure out the values of various options such as byte order, byte count etc. automatically. This options works only for binary files. When it is turned on, the reader should be able to read most Plot3D files automatically. The default is OFF for backwards compatibility reasons. For binary files, it is strongly recommended that you turn on AutoDetectFormat and leave the other file format related options untouched.

virtual void vtkMultiBlockPLOT3DReader::SetBinaryFile ( int  )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual int vtkMultiBlockPLOT3DReader::GetBinaryFile ( )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual void vtkMultiBlockPLOT3DReader::BinaryFileOn ( )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual void vtkMultiBlockPLOT3DReader::BinaryFileOff ( )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual void vtkMultiBlockPLOT3DReader::SetMultiGrid ( int  )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual int vtkMultiBlockPLOT3DReader::GetMultiGrid ( )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual void vtkMultiBlockPLOT3DReader::MultiGridOn ( )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual void vtkMultiBlockPLOT3DReader::MultiGridOff ( )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual void vtkMultiBlockPLOT3DReader::SetHasByteCount ( int  )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual int vtkMultiBlockPLOT3DReader::GetHasByteCount ( )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual void vtkMultiBlockPLOT3DReader::HasByteCountOn ( )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual void vtkMultiBlockPLOT3DReader::HasByteCountOff ( )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual void vtkMultiBlockPLOT3DReader::SetIBlanking ( int  )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual int vtkMultiBlockPLOT3DReader::GetIBlanking ( )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual void vtkMultiBlockPLOT3DReader::IBlankingOn ( )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual void vtkMultiBlockPLOT3DReader::IBlankingOff ( )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual void vtkMultiBlockPLOT3DReader::SetTwoDimensionalGeometry ( int  )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual int vtkMultiBlockPLOT3DReader::GetTwoDimensionalGeometry ( )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual void vtkMultiBlockPLOT3DReader::TwoDimensionalGeometryOn ( )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual void vtkMultiBlockPLOT3DReader::TwoDimensionalGeometryOff ( )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual void vtkMultiBlockPLOT3DReader::SetDoublePrecision ( int  )
virtual

Is this file in double precision or single precision. This only matters for binary files. Default is single.

virtual int vtkMultiBlockPLOT3DReader::GetDoublePrecision ( )
virtual

Is this file in double precision or single precision. This only matters for binary files. Default is single.

virtual void vtkMultiBlockPLOT3DReader::DoublePrecisionOn ( )
virtual

Is this file in double precision or single precision. This only matters for binary files. Default is single.

virtual void vtkMultiBlockPLOT3DReader::DoublePrecisionOff ( )
virtual

Is this file in double precision or single precision. This only matters for binary files. Default is single.

virtual void vtkMultiBlockPLOT3DReader::SetForceRead ( int  )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

virtual int vtkMultiBlockPLOT3DReader::GetForceRead ( )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

virtual void vtkMultiBlockPLOT3DReader::ForceReadOn ( )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

virtual void vtkMultiBlockPLOT3DReader::ForceReadOff ( )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

void vtkMultiBlockPLOT3DReader::SetByteOrderToBigEndian ( )

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

void vtkMultiBlockPLOT3DReader::SetByteOrderToLittleEndian ( )

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

virtual void vtkMultiBlockPLOT3DReader::SetByteOrder ( int  )
virtual

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

virtual int vtkMultiBlockPLOT3DReader::GetByteOrder ( )
virtual

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

const char* vtkMultiBlockPLOT3DReader::GetByteOrderAsString ( )

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

virtual void vtkMultiBlockPLOT3DReader::SetR ( double  )
virtual

Set/Get the gas constant. Default is 1.0.

virtual double vtkMultiBlockPLOT3DReader::GetR ( )
virtual

Set/Get the gas constant. Default is 1.0.

virtual void vtkMultiBlockPLOT3DReader::SetGamma ( double  )
virtual

Set/Get the ratio of specific heats. Default is 1.4.

virtual double vtkMultiBlockPLOT3DReader::GetGamma ( )
virtual

Set/Get the ratio of specific heats. Default is 1.4.

void vtkMultiBlockPLOT3DReader::SetScalarFunctionNumber ( int  num)

Specify the scalar function to extract. If ==(-1), then no scalar function is extracted.

virtual int vtkMultiBlockPLOT3DReader::GetScalarFunctionNumber ( )
virtual

Specify the scalar function to extract. If ==(-1), then no scalar function is extracted.

void vtkMultiBlockPLOT3DReader::SetVectorFunctionNumber ( int  num)

Specify the vector function to extract. If ==(-1), then no vector function is extracted.

virtual int vtkMultiBlockPLOT3DReader::GetVectorFunctionNumber ( )
virtual

Specify the vector function to extract. If ==(-1), then no vector function is extracted.

void vtkMultiBlockPLOT3DReader::AddFunction ( int  functionNumber)

Specify additional functions to read. These are placed into the point data as data arrays. Later on they can be used by labeling them as scalars, etc.

void vtkMultiBlockPLOT3DReader::RemoveFunction ( int  )

Specify additional functions to read. These are placed into the point data as data arrays. Later on they can be used by labeling them as scalars, etc.

void vtkMultiBlockPLOT3DReader::RemoveAllFunctions ( )

Specify additional functions to read. These are placed into the point data as data arrays. Later on they can be used by labeling them as scalars, etc.

virtual int vtkMultiBlockPLOT3DReader::CanReadBinaryFile ( const char *  fname)
virtual

Return 1 if the reader can read the given file name. Only meaningful for binary files.

void vtkMultiBlockPLOT3DReader::SetController ( vtkMultiProcessController c)

Set/Get the communicator object (we'll use global World controller if you don't set a different one).

virtual vtkMultiProcessController* vtkMultiBlockPLOT3DReader::GetController ( )
virtual

Set/Get the communicator object (we'll use global World controller if you don't set a different one).

vtkDataArray* vtkMultiBlockPLOT3DReader::CreateFloatArray ( )
protected
int vtkMultiBlockPLOT3DReader::CheckFile ( FILE *&  fp,
const char *  fname 
)
protected
int vtkMultiBlockPLOT3DReader::CheckGeometryFile ( FILE *&  xyzFp)
protected
int vtkMultiBlockPLOT3DReader::CheckSolutionFile ( FILE *&  qFp)
protected
int vtkMultiBlockPLOT3DReader::CheckFunctionFile ( FILE *&  fFp)
protected
int vtkMultiBlockPLOT3DReader::GetByteCountSize ( )
protected
int vtkMultiBlockPLOT3DReader::SkipByteCount ( FILE *  fp)
protected
int vtkMultiBlockPLOT3DReader::ReadIntBlock ( FILE *  fp,
int  n,
int block 
)
protected
vtkIdType vtkMultiBlockPLOT3DReader::ReadValues ( FILE *  fp,
int  n,
vtkDataArray scalar 
)
protected
virtual int vtkMultiBlockPLOT3DReader::ReadIntScalar ( void *  vfp,
int  extent[6],
int  wextent[6],
vtkDataArray scalar,
vtkTypeUInt64  offset 
)
protectedvirtual

Reimplemented in vtkMPIMultiBlockPLOT3DReader.

virtual int vtkMultiBlockPLOT3DReader::ReadScalar ( void *  vfp,
int  extent[6],
int  wextent[6],
vtkDataArray scalar,
vtkTypeUInt64  offset 
)
protectedvirtual

Reimplemented in vtkMPIMultiBlockPLOT3DReader.

virtual int vtkMultiBlockPLOT3DReader::ReadVector ( void *  vfp,
int  extent[6],
int  wextent[6],
int  numDims,
vtkDataArray vector,
vtkTypeUInt64  offset 
)
protectedvirtual

Reimplemented in vtkMPIMultiBlockPLOT3DReader.

virtual int vtkMultiBlockPLOT3DReader::OpenFileForDataRead ( void *&  fp,
const char *  fname 
)
protectedvirtual

Reimplemented in vtkMPIMultiBlockPLOT3DReader.

virtual void vtkMultiBlockPLOT3DReader::CloseFile ( void *  fp)
protectedvirtual

Reimplemented in vtkMPIMultiBlockPLOT3DReader.

int vtkMultiBlockPLOT3DReader::GetNumberOfBlocksInternal ( FILE *  xyzFp,
int  allocate 
)
protected
int vtkMultiBlockPLOT3DReader::ReadGeometryHeader ( FILE *  fp)
protected
int vtkMultiBlockPLOT3DReader::ReadQHeader ( FILE *  fp,
bool  checkGrid,
int nq,
int nqc,
int overflow 
)
protected
int vtkMultiBlockPLOT3DReader::ReadFunctionHeader ( FILE *  fp,
int nFunctions 
)
protected
void vtkMultiBlockPLOT3DReader::CalculateFileSize ( FILE *  fp)
protected
int vtkMultiBlockPLOT3DReader::AutoDetectionCheck ( FILE *  fp)
protected
void vtkMultiBlockPLOT3DReader::AssignAttribute ( int  fNumber,
vtkStructuredGrid output,
int  attributeType 
)
protected
void vtkMultiBlockPLOT3DReader::MapFunction ( int  fNumber,
vtkStructuredGrid output 
)
protected
void vtkMultiBlockPLOT3DReader::ComputeTemperature ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputePressure ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeEnthalpy ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeKineticEnergy ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeVelocityMagnitude ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeEntropy ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeSwirl ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeVelocity ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeVorticity ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputePressureGradient ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputePressureCoefficient ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeMachNumber ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeSoundSpeed ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeVorticityMagnitude ( vtkStructuredGrid output)
protected
void vtkMultiBlockPLOT3DReader::ComputeStrainRate ( vtkStructuredGrid output)
protected
vtkDataArray* vtkMultiBlockPLOT3DReader::NewFloatArray ( )
protected
void vtkMultiBlockPLOT3DReader::ClearGeometryCache ( )
protected
virtual int vtkMultiBlockPLOT3DReader::FillOutputPortInformation ( int  port,
vtkInformation info 
)
protectedvirtual

Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual int vtkMultiBlockPLOT3DReader::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

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

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual int vtkMultiBlockPLOT3DReader::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

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

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Member Data Documentation

char* vtkMultiBlockPLOT3DReader::XYZFileName
protected

Definition at line 344 of file vtkMultiBlockPLOT3DReader.h.

char* vtkMultiBlockPLOT3DReader::QFileName
protected

Definition at line 345 of file vtkMultiBlockPLOT3DReader.h.

char* vtkMultiBlockPLOT3DReader::FunctionFileName
protected

Definition at line 346 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::BinaryFile
protected

Definition at line 348 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::HasByteCount
protected

Definition at line 349 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::TwoDimensionalGeometry
protected

Definition at line 350 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::MultiGrid
protected

Definition at line 351 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::ForceRead
protected

Definition at line 352 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::ByteOrder
protected

Definition at line 353 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::IBlanking
protected

Definition at line 354 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::DoublePrecision
protected

Definition at line 355 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::AutoDetectFormat
protected

Definition at line 356 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::ExecutedGhostLevels
protected

Definition at line 358 of file vtkMultiBlockPLOT3DReader.h.

size_t vtkMultiBlockPLOT3DReader::FileSize
protected

Definition at line 360 of file vtkMultiBlockPLOT3DReader.h.

double vtkMultiBlockPLOT3DReader::R
protected

Definition at line 363 of file vtkMultiBlockPLOT3DReader.h.

double vtkMultiBlockPLOT3DReader::Gamma
protected

Definition at line 364 of file vtkMultiBlockPLOT3DReader.h.

double vtkMultiBlockPLOT3DReader::Uvinf
protected

Definition at line 365 of file vtkMultiBlockPLOT3DReader.h.

double vtkMultiBlockPLOT3DReader::Vvinf
protected

Definition at line 366 of file vtkMultiBlockPLOT3DReader.h.

double vtkMultiBlockPLOT3DReader::Wvinf
protected

Definition at line 367 of file vtkMultiBlockPLOT3DReader.h.

vtkIntArray* vtkMultiBlockPLOT3DReader::FunctionList
protected

Definition at line 370 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::ScalarFunctionNumber
protected

Definition at line 372 of file vtkMultiBlockPLOT3DReader.h.

int vtkMultiBlockPLOT3DReader::VectorFunctionNumber
protected

Definition at line 373 of file vtkMultiBlockPLOT3DReader.h.

vtkMultiBlockPLOT3DReaderInternals* vtkMultiBlockPLOT3DReader::Internal
protected

Definition at line 384 of file vtkMultiBlockPLOT3DReader.h.

vtkMultiProcessController* vtkMultiBlockPLOT3DReader::Controller
protected

Definition at line 386 of file vtkMultiBlockPLOT3DReader.h.


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