Man Page for vtkPLOT3DReader
Table of Contents

NAME

vtkPLOT3DReader - read PLOT3D data files

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkPLOT3DReader.h"

class VTK_EXPORT vtkPLOT3DReader : public vtkStructuredGridSource

vtkPLOT3DReader();
~vtkPLOT3DReader();
static vtkPLOT3DReader *New() {return new vtkPLOT3DReader;};
const char *GetClassName() {return "vtkPLOT3DReader";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetFileFormat(int);
int GetFileFormat();
void SetXYZFileName(char *);
char *GetXYZFileName();
void SetQFileName(char *);
char *GetQFileName();
void SetFunctionFileName(char *);
char *GetFunctionFileName();
void SetVectorFunctionFileName(char *);
char *GetVectorFunctionFileName();
void SetGridNumber(int);
int GetGridNumber();
void SetScalarFunctionNumber(int);
int GetScalarFunctionNumber();
void SetVectorFunctionNumber(int);
int GetVectorFunctionNumber();
float GetFsmach();
float GetAlpha();
float GetRe();
float GetTime();
void SetR(float);
float GetR();
void SetGamma(float);
float GetGamma();
void SetUvinf(float);
float GetUvinf();
void SetVvinf(float);
float GetVvinf();
void SetWvinf(float);
float GetWvinf();

DESCRIPTION

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.

DEFINED MACROS

VTK_WHOLE_SINGLE_GRID_NO_IBLANKING 0
VTK_WHOLE_MULTI_GRID_NO_IBLANKING 2

SUMMARY

void SetFileFormat(int)
Specify the PLOT3D file format to use

void SetXYZFileName(char *)
Set/Get the PLOT3D geometry FileName.

void SetQFileName(char *)
Set/Get the PLOT3D solution FileName.

void SetFunctionFileName(char *)
Set/Get the PLOT3D function FileName.

void SetVectorFunctionFileName(char *)
Set/Get the PLOT3D vector FileName.

void SetGridNumber(int)
Specify the grid to read.

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

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

float GetFsmach()
Get the free-stream mach number.

float GetAlpha()
Get the angle of attack.

float GetRe()
Get the Reynold's number.

float GetTime()
Get the total integration time.

void SetR(float)
Set/Get the gas constant.

void SetGamma(float)
Set/Get the ratio of specific heats.

void SetUvinf(float)
Set/Get the x-component of the free-stream velocity.

void SetVvinf(float)
Set/Get the y-component of the free-stream velocity.

void SetWvinf(float)
Set/Get the z-component of the free-stream velocity.


Table of Contents