38#ifndef vtkMFIXReader_h
39#define vtkMFIXReader_h
41#include "vtkIOGeometryModule.h"
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);
Store on/off settings for data arrays, etc.
dynamic, self-adjusting array of double
dynamic, self-adjusting array of float
a cell that represents a linear 3D hexahedron
a simple class to control print indentation
dynamic, self-adjusting array of int
~vtkMFIXReader() override
const char * GetCellArrayName(int index)
Get the name of the cell array with the given index in the input.
vtkGetFilePathMacro(FileName)
Specify the file name of the MFIX Restart data file to read.
vtkIntArray * SPXToNVarTable
vtkSetFilePathMacro(FileName)
Specify the file name of the MFIX Restart data file to read.
vtkHexahedron * AHexahedron
int GetNumberOfCellArrays(void)
Get the number of cell arrays available in the input.
void SetCellArrayStatus(const char *name, int status)
Get/Set whether the cell array with the given name is to be read.
int GetCellArrayStatus(const char *name)
Get/Set whether the cell array with the given name is to be read.
vtkUnstructuredGrid * Mesh
int NumberOfReactionRates
vtkIntArray * VariableToSkipTable
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIntArray * SPXTimestepIndexTable
vtkIntArray * VariableTimestepTable
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkStringArray * VariableNames
vtkIntArray * VariableTimesteps
char CoordinateSystem[17]
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArraySelection * CellDataArraySelection
vtkIntArray * VariableComponents
vtkFloatArray ** CellDataArray
int SPXRecordsPerTimestep
vtkIntArray * SpxFileExists
void EnableAllCellArrays()
Turn on/off all cell arrays.
vtkIntArray * VectorLength
static vtkMFIXReader * New()
vtkIntArray * VariableIndexToSPX
int RequestInformationFlag
void DisableAllCellArrays()
Turn on/off all cell arrays.
vtkIntArray * variableIndexToSPX
void GetCellDataRange(int cellComp, float *min, float *max)
Get the range of cell data.
represent and manipulate 3D points
a cell that represents a 2D quadrilateral
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
vtkUnstructuredGridAlgorithm()
dataset represents arbitrary combinations of all possible cell types
a 3D cell that represents a linear wedge
Write VTK XML UnstructuredGrid files.