Public Member Functions |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetOutput (int idx, vtkStructuredGrid *output) |
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 () |
|
int | GetNumberOfOutputs () |
int | GetNumberOfGrids () |
|
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 | SetForceRead (int) |
virtual int | GetForceRead () |
virtual void | ForceReadOn () |
virtual void | ForceReadOff () |
|
virtual void | SetDoNotReduceNumberOfOutputs (int) |
virtual int | GetDoNotReduceNumberOfOutputs () |
virtual void | DoNotReduceNumberOfOutputsOn () |
virtual void | DoNotReduceNumberOfOutputsOff () |
|
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 () |
|
virtual void | SetUvinf (double) |
virtual double | GetUvinf () |
|
virtual void | SetVvinf (double) |
virtual double | GetVvinf () |
|
virtual void | SetWvinf (double) |
virtual double | GetWvinf () |
|
void | SetScalarFunctionNumber (int num) |
virtual int | GetScalarFunctionNumber () |
|
void | SetVectorFunctionNumber (int num) |
virtual int | GetVectorFunctionNumber () |
|
void | AddFunction (int functionNumber) |
void | RemoveFunction (int) |
void | RemoveAllFunctions () |
vtkStructuredGrid * | GetOutput () |
vtkStructuredGrid * | GetOutput (int idx) |
void | SetOutput (vtkStructuredGrid *output) |
virtual void | Update () |
virtual void | UpdateWholeExtent () |
virtual void | UpdateInformation () |
virtual void | PropagateUpdateExtent (vtkDataObject *output) |
virtual void | TriggerAsynchronousUpdate () |
virtual void | UpdateData (vtkDataObject *output) |
virtual void | ComputeInputUpdateExtents (vtkDataObject *output) |
void | UnRegisterAllOutputs (void) |
int | GetOutputIndex (vtkDataObject *out) |
virtual void | SetExecutive (vtkExecutive *executive) |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
virtual void | ReleaseDataFlagOn () |
virtual void | ReleaseDataFlagOff () |
vtkDataObject ** | GetOutputs () |
virtual int | ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | SqueezeInputArray () |
void | RemoveAllInputs () |
vtkDataObject ** | GetInputs () |
int | GetNumberOfInputs () |
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
virtual void | SetInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (vtkAlgorithmOutput *input) |
virtual void | RemoveInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input) |
virtual void | SetNumberOfInputConnections (int port, int n) |
int | HasExecutive () |
vtkExecutive * | GetExecutive () |
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) |
vtkDataObject * | GetOutputDataObject (int port) |
int | GetNumberOfInputConnections (int port) |
int | GetTotalNumberOfInputConnections () |
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
void | ConvertTotalInputToPortConnection (int ind, int &port, int &conn) |
virtual double | ComputePriority () |
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) |
vtkAlgorithmOutput * | GetOutputPort (int index) |
vtkAlgorithmOutput * | GetOutputPort () |
int | UpdateExtentIsEmpty (vtkDataObject *output) |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char 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) |
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 &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Protected Member Functions |
| vtkPLOT3DReader () |
| ~vtkPLOT3DReader () |
void | ExecuteInformation () |
void | Execute () |
int | CheckFile (FILE *&fp, const char *fname) |
int | CheckGeometryFile (FILE *&xyzFp) |
int | CheckSolutionFile (FILE *&qFp) |
int | CheckFunctionFile (FILE *&fFp) |
void | SkipByteCount (FILE *fp) |
int | ReadIntBlock (FILE *fp, int n, int *block) |
int | ReadFloatBlock (FILE *fp, int n, float *block) |
int | GetNumberOfOutputsInternal (FILE *xyzFp, int verify=1) |
int | ReadGeometryHeader (FILE *fp) |
int | ReadQHeader (FILE *fp) |
int | ReadFunctionHeader (FILE *fp, vtkIdList *&counts) |
void | CalculateFileSize (FILE *fp) |
long | EstimateSize (int ni, int nj, int nk) |
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 | ClearGeometryCache () |
void | ReadIntBlockV (char **buf, int n, int *block) |
void | SkipByteCountV (char **buf) |
| vtkStructuredGridSource () |
| ~vtkStructuredGridSource () |
virtual int | FillOutputPortInformation (int, vtkInformation *) |
| vtkSource () |
| ~vtkSource () |
virtual void | ExecuteData (vtkDataObject *output) |
virtual void | MarkGeneratedOutputs (vtkDataObject *) |
void | SetNumberOfOutputs (int num) |
virtual void | SetNthOutput (int num, vtkDataObject *output) |
virtual void | AddOutput (vtkDataObject *output) |
virtual void | RemoveOutput (vtkDataObject *output) |
virtual void | ReportReferences (vtkGarbageCollector *) |
virtual void | SetNumberOfOutputPorts (int n) |
void | SetNumberOfInputs (int num) |
virtual void | SetNthInput (int num, vtkDataObject *input) |
virtual void | AddInput (vtkDataObject *input) |
virtual void | RemoveInput (vtkDataObject *input) |
virtual int | FillInputPortInformation (int, vtkInformation *) |
void | AddInputInternal (vtkDataObject *input) |
void | RemoveInputInternal (vtkDataObject *input) |
void | SetupInputs () |
| vtkProcessObject () |
| ~vtkProcessObject () |
| vtkAlgorithm () |
| ~vtkAlgorithm () |
virtual void | SetNumberOfInputPorts (int n) |
int | InputPortIndexInRange (int index, const char *action) |
int | OutputPortIndexInRange (int index, const char *action) |
int | GetInputArrayAssociation (int idx, vtkInformationVector **inputVector) |
virtual vtkExecutive * | CreateDefaultExecutive () |
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 | 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 &os) |
| vtkObjectBase (const vtkObjectBase &) |
void | operator= (const vtkObjectBase &) |
read PLOT3D data files
vtkPLOT3DReader 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. 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).
The reader can generate additional scalars and vectors (or "functions") from this information. To use vtkPLOT3DReader, 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 120 - temperature 130 - enthalpy 140 - internal energy 144 - kinetic energy 153 - velocity magnitude 163 - stagnation energy 170 - entropy 184 - swirl.
The vector functions are: -1 - don't read or compute any vectors 200 - velocity 201 - vorticity 202 - momentum 210 - pressure gradient.
(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) 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
- vtkStructuredGridSource vtkStructuredGrid
- Examples:
- vtkPLOT3DReader (Examples)
- Tests:
- vtkPLOT3DReader (Tests)
Definition at line 91 of file vtkPLOT3DReader.h.