38 #ifndef vtkMFIXReader_h
39 #define vtkMFIXReader_h
41 #include "vtkIOGeometryModule.h"
67 vtkSetFilePathMacro(FileName);
68 vtkGetFilePathMacro(FileName);
76 vtkGetMacro(NumberOfCells,
int);
84 vtkGetMacro(NumberOfPoints,
int);
91 vtkGetMacro(NumberOfCellFields,
int);
98 vtkSetMacro(TimeStep,
int);
99 vtkGetMacro(TimeStep,
int);
106 vtkGetMacro(NumberOfTimeSteps,
int);
113 vtkGetVector2Macro(TimeStepRange,
int);
114 vtkSetVector2Macro(TimeStepRange,
int);
120 int GetNumberOfCellArrays(
void);
126 const char* GetCellArrayName(
int index);
133 int GetCellArrayStatus(
const char*
name);
134 void SetCellArrayStatus(
const char*
name,
int status);
141 void DisableAllCellArrays();
142 void EnableAllCellArrays();
148 void GetCellDataRange(
int cellComp,
float* min,
float*
max);
175 int TimeStepRange[2];
200 char FileExtension[15];
201 char DataBuffer[513];
239 char CoordinateSystem[17];
271 void SwapDouble(
double&
value);
272 void SwapFloat(
float&
value);
273 void SwapInt(
int&
value);
275 int ConvertCharToInt(
char in);
277 void GetInt(istream& in,
int& val);
278 void GetDouble(istream& in,
double& val);
279 void GetFloat(istream& in,
float& val);
280 void SkipBytes(istream& in,
int n);
281 void RestartVersionNumber(
const char* buffer);
284 void GetBlockOfInts(istream& in,
vtkIntArray* v,
int n);
285 void ReadRestartFile();
286 void GetVariableAtTimestep(
int vari,
int tstep,
vtkFloatArray* v);
287 void CreateVariableNames();
289 void MakeTimeStepTable(
int numberOfVariables);
290 void SetProjectName(
const char* infile);
291 void MakeSPXTimeStepIndexTable(
int nvars);
292 void CalculateMaxTimeStep();
293 void GetNumberOfVariablesInSPXFiles();
294 void FillVectorVariable(
int xindex,
int yindex,
int zindex,
vtkFloatArray* v);
295 void ConvertVectorFromCylindricalToCartesian(
int xindex,
int zindex);
int NumberOfReactionRates
vtkIntArray * VariableTimesteps
Wrapper around std::string to keep symbols short.
vtkIntArray * SPXToNVarTable
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int SPXRecordsPerTimestep
vtkIntArray * VectorLength
vtkIntArray * SpxFileExists
vtkIntArray * VariableComponents
vtkIntArray * VariableIndexToSPX
static vtkUnstructuredGridAlgorithm * New()
vtkDataArraySelection * CellDataArraySelection
dynamic, self-adjusting array of float
a vtkAbstractArray subclass for strings
a cell that represents a 2D quadrilateral
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkFloatArray ** CellDataArray
reads a dataset in MFIX file format
dynamic, self-adjusting array of double
dynamic, self-adjusting array of int
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
vtkStringArray * VariableNames
vtkIntArray * SPXTimestepIndexTable
Store on/off settings for data arrays, etc.
dataset represents arbitrary combinations of all possible cell types
a cell that represents a linear 3D hexahedron
Superclass for algorithms that produce only unstructured grid as output.
vtkHexahedron * AHexahedron
vtkIntArray * VariableToSkipTable
vtkUnstructuredGrid * Mesh
vtkIntArray * VariableTimestepTable
Write VTK XML UnstructuredGrid files.
vtkIntArray * variableIndexToSPX
a 3D cell that represents a linear wedge
represent and manipulate 3D points
int RequestInformationFlag