|
virtual int | IsA (const char *type) |
|
vtkMultiBlockPLOT3DReader * | NewInstance () 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 vtkMultiProcessController * | GetController () |
|
vtkMultiBlockDataSetAlgorithm * | NewInstance () const |
|
vtkMultiBlockDataSet * | GetOutput () |
|
vtkMultiBlockDataSet * | GetOutput (int) |
|
void | SetInputData (vtkDataObject *) |
|
void | SetInputData (int, vtkDataObject *) |
|
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
|
vtkAlgorithm * | NewInstance () const |
|
int | HasExecutive () |
|
vtkExecutive * | GetExecutive () |
|
virtual void | SetExecutive (vtkExecutive *executive) |
|
virtual int | ModifyRequest (vtkInformation *request, int when) |
|
vtkInformation * | GetInputPortInformation (int port) |
|
vtkInformation * | GetOutputPortInformation (int port) |
|
int | GetNumberOfInputPorts () |
|
int | GetNumberOfOutputPorts () |
|
void | UpdateProgress (double amount) |
|
vtkInformation * | GetInputArrayInformation (int idx) |
|
void | RemoveAllInputs () |
|
vtkDataObject * | GetOutputDataObject (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 () |
|
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
|
vtkAlgorithm * | GetInputAlgorithm (int port, int index, int &algPort) |
|
vtkAlgorithm * | GetInputAlgorithm (int port, int index) |
|
vtkExecutive * | GetInputExecutive (int port, int index) |
|
vtkInformation * | GetInputInformation (int port, int index) |
|
vtkInformation * | GetOutputInformation (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 vtkInformation * | GetInformation () |
|
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) |
|
vtkDataObject * | GetInputDataObject (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) |
|
vtkAlgorithmOutput * | GetOutputPort (int index) |
|
vtkAlgorithmOutput * | GetOutputPort () |
|
vtkAlgorithm * | GetInputAlgorithm () |
|
vtkExecutive * | GetInputExecutive () |
|
vtkInformation * | GetInputInformation () |
|
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]) |
|
int * | GetUpdateExtent () |
|
int * | GetUpdateExtent (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 vtkProgressObserver * | GetProgressObserver () |
|
vtkObject * | NewInstance () 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) |
|
vtkCommand * | GetCommand (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) |
|
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 () |
|
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkMultiBlockPLOT3DReader () |
|
| ~vtkMultiBlockPLOT3DReader () |
|
vtkDataArray * | CreateFloatArray () |
|
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) |
|
vtkDataArray * | NewFloatArray () |
|
void | ClearGeometryCache () |
|
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
|
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
| vtkMultiBlockDataSetAlgorithm () |
|
| ~vtkMultiBlockDataSetAlgorithm () |
|
virtual vtkExecutive * | CreateDefaultExecutive () |
|
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
|
vtkDataObject * | GetInput (int port) |
|
virtual int | RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
virtual int | RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
| 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) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkInformationVector **inputVector) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkDataObject *input) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkDataObject *input, int &association) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkDataObject *input) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association) |
|
vtkInformation * | GetInputArrayFieldInformation (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) |
|
| vtkObject () |
|
virtual | ~vtkObject () |
|
virtual void | RegisterInternal (vtkObjectBase *, int check) |
|
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
|
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
|
void | InternalReleaseFocus () |
|
| vtkObjectBase () |
|
virtual | ~vtkObjectBase () |
|
virtual void | CollectRevisions (ostream &) |
|
| vtkObjectBase (const vtkObjectBase &) |
|
void | operator= (const vtkObjectBase &) |
|
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.