Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
vtkPLOT3DReader Class Reference
read PLOT3D data files.
More...
#include <vtkPLOT3DReader.h>
Inheritance diagram for vtkPLOT3DReader:
[legend]Collaboration diagram for vtkPLOT3DReader:
[legend]List of all members.
Detailed Description
read PLOT3D data files.
-
Date:
-
2000/12/10 20:08:46
-
Revision:
-
1.41
vtkPLOT3DReader is a reader object that reads PLOT3D formatted files and generates a structured grid 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. 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). 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.
The format of the function file is as follows. An integer indicating number of grids, then an integer specifying number of functions per each grid. This is followed by the (integer) dimensions of each grid in the file. Finally, for each grid, and for each function, a float value per each point in the current grid. Note: if both a function from the function file is specified, as well as a scalar from the solution file (or derived from the solution file), the function file takes precedence.
-
Examples:
-
vtkPLOT3DReader (examples)
Definition at line 115 of file vtkPLOT3DReader.h.
Constructor & Destructor Documentation
vtkPLOT3DReader::vtkPLOT3DReader |
( |
|
) |
[protected] |
|
vtkPLOT3DReader::~vtkPLOT3DReader |
( |
|
) |
[protected] |
|
vtkPLOT3DReader::vtkPLOT3DReader |
( |
const vtkPLOT3DReader & |
|
) |
[inline, protected] |
|
Member Function Documentation
vtkPLOT3DReader* vtkPLOT3DReader::New |
( |
|
) |
[static] |
|
virtual const char* vtkPLOT3DReader::GetClassName |
( |
|
) |
[virtual] |
|
int vtkPLOT3DReader::IsTypeOf |
( |
const char * |
type |
) |
[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 vtkStructuredGridSource. |
virtual int vtkPLOT3DReader::IsA |
( |
const char * |
type |
) |
[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 vtkStructuredGridSource. |
vtkPLOT3DReader* vtkPLOT3DReader::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkStructuredGridSource. |
void vtkPLOT3DReader::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 vtkSource. |
virtual void vtkPLOT3DReader::SetFileFormat |
( |
int |
|
) |
[virtual] |
|
|
Specify the PLOT3D file format to use |
virtual int vtkPLOT3DReader::GetFileFormat |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetXYZFileName |
( |
const char * |
|
) |
[virtual] |
|
|
Set/Get the PLOT3D geometry FileName. |
virtual char* vtkPLOT3DReader::GetXYZFileName |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetQFileName |
( |
const char * |
|
) |
[virtual] |
|
|
Set/Get the PLOT3D solution FileName. |
virtual char* vtkPLOT3DReader::GetQFileName |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetFunctionFileName |
( |
const char * |
|
) |
[virtual] |
|
|
Set/Get the PLOT3D function FileName. |
virtual char* vtkPLOT3DReader::GetFunctionFileName |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetVectorFunctionFileName |
( |
const char * |
|
) |
[virtual] |
|
|
Set/Get the PLOT3D vector FileName. |
virtual char* vtkPLOT3DReader::GetVectorFunctionFileName |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetGridNumber |
( |
int |
|
) |
[virtual] |
|
|
Specify the grid to read. |
virtual int vtkPLOT3DReader::GetGridNumber |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetScalarFunctionNumber |
( |
int |
|
) |
[virtual] |
|
|
Specify the scalar function to extract. If ==(-1), then no scalar function is extracted. |
virtual int vtkPLOT3DReader::GetScalarFunctionNumber |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetVectorFunctionNumber |
( |
int |
|
) |
[virtual] |
|
|
Specify the vector function to extract. If ==(-1), then no vector function is extracted. |
virtual int vtkPLOT3DReader::GetVectorFunctionNumber |
( |
|
) |
[virtual] |
|
virtual float vtkPLOT3DReader::GetFsmach |
( |
|
) |
[virtual] |
|
|
Get the free-stream mach number. |
virtual float vtkPLOT3DReader::GetAlpha |
( |
|
) |
[virtual] |
|
virtual float vtkPLOT3DReader::GetRe |
( |
|
) |
[virtual] |
|
|
Get the Reynold's number. |
virtual float vtkPLOT3DReader::GetTime |
( |
|
) |
[virtual] |
|
|
Get the total integration time. |
virtual void vtkPLOT3DReader::SetR |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the gas constant. |
virtual float vtkPLOT3DReader::GetR |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetGamma |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the ratio of specific heats. |
virtual float vtkPLOT3DReader::GetGamma |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetUvinf |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the x-component of the free-stream velocity. |
virtual float vtkPLOT3DReader::GetUvinf |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetVvinf |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the y-component of the free-stream velocity. |
virtual float vtkPLOT3DReader::GetVvinf |
( |
|
) |
[virtual] |
|
virtual void vtkPLOT3DReader::SetWvinf |
( |
float |
|
) |
[virtual] |
|
|
Set/Get the z-component of the free-stream velocity. |
virtual float vtkPLOT3DReader::GetWvinf |
( |
|
) |
[virtual] |
|
virtual int vtkPLOT3DReader::GetNumberOfGrids |
( |
|
) |
[virtual] |
|
|
Get the number of grids. This is valid only after a read has been performed. |
void vtkPLOT3DReader::operator= |
( |
const vtkPLOT3DReader & |
|
) |
[inline, protected] |
|
void vtkPLOT3DReader::ExecuteInformation |
( |
|
) |
[protected, virtual] |
|
void vtkPLOT3DReader::Execute |
( |
|
) |
[protected, virtual] |
|
int vtkPLOT3DReader::GetFileType |
( |
FILE * |
fp |
) |
[protected] |
|
void vtkPLOT3DReader::MapFunction |
( |
int |
fNumber, |
|
|
vtkPointData * |
outputPD |
|
) |
[protected] |
|
int vtkPLOT3DReader::ReadBinaryGrid |
( |
FILE * |
fp, |
|
|
vtkStructuredGrid * |
output |
|
) |
[protected] |
|
int vtkPLOT3DReader::ReadBinaryGridDimensions |
( |
FILE * |
fp, |
|
|
vtkStructuredGrid * |
output |
|
) |
[protected] |
|
int vtkPLOT3DReader::ReadBinarySolution |
( |
FILE * |
fp, |
|
|
vtkStructuredGrid * |
output |
|
) |
[protected] |
|
int vtkPLOT3DReader::ReadBinaryFunctionFile |
( |
FILE * |
fp, |
|
|
vtkStructuredGrid * |
output |
|
) |
[protected] |
|
int vtkPLOT3DReader::ReadBinaryVectorFunctionFile |
( |
FILE * |
fp, |
|
|
vtkStructuredGrid * |
output |
|
) |
[protected] |
|
void vtkPLOT3DReader::ComputeDensity |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputePressure |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeTemperature |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeEnthalpy |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeInternalEnergy |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeKineticEnergy |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeVelocityMagnitude |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeStagnationEnergy |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeEntropy |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeSwirl |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeVelocity |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeVorticity |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputeMomentum |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
void vtkPLOT3DReader::ComputePressureGradient |
( |
vtkPointData * |
outputPD |
) |
[protected] |
|
Member Data Documentation
int vtkPLOT3DReader::FileFormat [protected]
|
|
char* vtkPLOT3DReader::XYZFileName [protected]
|
|
char* vtkPLOT3DReader::QFileName [protected]
|
|
char* vtkPLOT3DReader::FunctionFileName [protected]
|
|
char* vtkPLOT3DReader::VectorFunctionFileName [protected]
|
|
int vtkPLOT3DReader::GridNumber [protected]
|
|
int vtkPLOT3DReader::ScalarFunctionNumber [protected]
|
|
int vtkPLOT3DReader::VectorFunctionNumber [protected]
|
|
int vtkPLOT3DReader::FunctionFileFunctionNumber [protected]
|
|
float* vtkPLOT3DReader::TempStorage [protected]
|
|
int vtkPLOT3DReader::NumberOfPoints [protected]
|
|
int vtkPLOT3DReader::NumberOfGrids [protected]
|
|
float vtkPLOT3DReader::Fsmach [protected]
|
|
float vtkPLOT3DReader::Alpha [protected]
|
|
float vtkPLOT3DReader::Re [protected]
|
|
float vtkPLOT3DReader::Time [protected]
|
|
float vtkPLOT3DReader::R [protected]
|
|
float vtkPLOT3DReader::Gamma [protected]
|
|
float vtkPLOT3DReader::Uvinf [protected]
|
|
float vtkPLOT3DReader::Vvinf [protected]
|
|
float vtkPLOT3DReader::Wvinf [protected]
|
|
The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:57:22 2001 for VTK by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001