34 #ifndef __vtkMFIXReader_h
35 #define __vtkMFIXReader_h
37 #include "vtkIOGeometryModule.h"
61 vtkSetStringMacro(FileName);
68 vtkGetMacro(NumberOfCells,
int);
74 vtkGetMacro(NumberOfPoints,
int);
79 vtkGetMacro(NumberOfCellFields,
int);
84 vtkSetMacro(TimeStep,
int);
85 vtkGetMacro(TimeStep,
int);
90 vtkGetMacro(NumberOfTimeSteps,
int);
95 vtkGetVector2Macro(TimeStepRange,
int);
96 vtkSetVector2Macro(TimeStepRange,
int);
100 int GetNumberOfCellArrays(
void);
103 const char* GetCellArrayName(
int index);
107 int GetCellArrayStatus(
const char*
name);
108 void SetCellArrayStatus(
const char*
name,
int status);
113 void DisableAllCellArrays();
114 void EnableAllCellArrays();
118 void GetCellDataRange(
int cellComp,
int index,
float *min,
float *
max);
147 int TimeStepRange[2];
172 char FileExtension[15];
173 char DataBuffer[513];
211 char CoordinateSystem[17];
243 void SwapDouble(
double &
value);
244 void SwapFloat(
float &
value);
245 void SwapInt(
int &
value);
247 int ConvertCharToInt(
char in);
249 void GetInt(istream& in,
int &val);
250 void GetDouble(istream& in,
double& val);
251 void GetFloat(istream& in,
float& val);
252 void SkipBytes(istream& in,
int n);
253 void RestartVersionNumber(
const char* buffer);
256 void GetBlockOfInts(istream& in,
vtkIntArray *v,
int n);
257 void ReadRestartFile();
258 void GetVariableAtTimestep(
int vari ,
int tstep,
vtkFloatArray *v);
259 void CreateVariableNames();
261 void MakeTimeStepTable(
int nvars);
262 void SetProjectName (
const char *infile);
263 void MakeSPXTimeStepIndexTable(
int nvars);
264 void CalculateMaxTimeStep();
265 void GetNumberOfVariablesInSPXFiles();
266 void FillVectorVariable(
int xindex,
int yindex,
int zindex,
268 void ConvertVectorFromCylindricalToCartesian(
int xindex,
int zindex);