33 #ifndef vtkWindBladeReader_h
34 #define vtkWindBladeReader_h
36 #include "vtkIOGeometryModule.h"
47 class vtkMultiBlockDataSetAglorithm;
49 class WindBladeReaderInternal;
58 vtkSetStringMacro(Filename);
61 vtkSetVector6Macro(WholeExtent,
int);
62 vtkGetVector6Macro(WholeExtent,
int);
64 vtkSetVector6Macro(SubExtent,
int);
65 vtkGetVector6Macro(SubExtent,
int);
206 float GDeform(
float sigma,
float sigmaMax,
int flag);
207 void Spline(
float* x,
float* y,
int n,
float yp1,
float ypn,
float* y2);
208 void Splint(
float* xa,
float* ya,
float* y2a,
int n,
float x,
float* y,
int);
222 std::ostringstream &fileName,
228 float *&pressureData,
float *&prespreData);
230 const float* tempgData,
const float* densityData);
234 int &planeSize,
int &rowSize);
257 void* clientdata,
void* calldata);
272 WindBladeReaderInternal * Internal;
supports function callbacks
Store on/off settings for data arrays for a vtkSource.
dynamic, self-adjusting array of float
a simple class to control print indentation
dynamic, self-adjusting array of int
abstract base class for most VTK objects
represent and manipulate 3D points
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
Superclass for algorithms that produce only structured grid as output.
topologically regular array of data
dataset represents arbitrary combinations of all possible cell types
class for reading WindBlade data files
vtkStdString TopographyFile
vtkCallbackCommand * SelectionObserver
void SetPointArrayStatus(const char *name, int status)
static void EventCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
int GetNumberOfPointArrays()
The following methods allow selective reading of solutions fields.
vtkFloatArray * HubHeight
float GDeform(float sigma, float sigmaMax, int flag)
void ProcessZCoords(float *topoData, float *zValues)
void Spline(float *x, float *y, int n, float yp1, float ypn, float *y2)
virtual bool FindVariableOffsets()
void SetUpGroundData(vtkInformationVector *outVector)
vtkStdString DataDirectory
void ReadDataVariables(istream &inStr)
static int BYTES_PER_DATA
vtkFloatArray * BladeLength
vtkStdString * VariableName
int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
We intercept the requests to check for which port information is being requested for and if there is ...
vtkStdString DataBaseName
vtkFloatArray * YPosition
int NumberOfDerivedVariables
vtkUnstructuredGrid * GetBladeOutput()
vtkStdString TurbineTowerName
vtkFloatArray * AngularVeloc
virtual void CreateZTopography(float *zdata)
void ReadBladeData(std::stringstream &inStr)
virtual void CalculatePressure(int pres, int prespre, int tempg, int density)
void SetUpFieldVars(vtkStructuredGrid *field)
void InitBladeData(vtkInformationVector *outVector)
static const int LINE_SIZE
void EnableAllPointArrays()
int GetPointArrayStatus(const char *name)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int NumberOfFileVariables
static void SelectionCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static float DRY_AIR_CONSTANT
vtkStdString TurbineBladeName
vtkStdString RootDirectory
vtkStringArray * DivideVariables
virtual bool ReadGlobalData()
void InitPressureData(int pressure, int prespre, float *&pressureData, float *&prespreData)
long int * VariableOffset
vtkStructuredGrid * GetFieldOutput()
Get the reader's output.
const char * GetPointArrayName(int index)
void Splint(float *xa, float *ya, float *y2a, int n, float x, float *y, int)
virtual void CalculateVorticity(int vort, int uvw, int density)
void InitFieldData(vtkInformationVector *outVector, std::ostringstream &fileName, vtkStructuredGrid *field)
void InitVariableData(int var, int &numberOfComponents, float *&varData, int &planeSize, int &rowSize)
virtual void LoadVariableData(int var)
static int NUM_PART_SIDES
virtual void SetupBladeData()
vtkStdString TurbineDirectory
vtkFloatArray * XPosition
virtual void LoadBladeData(int timeStep)
void SetUpVorticityData(float *uData, float *vData, const float *densityData, float *vortData)
static const int NUM_BASE_SIDES
bool SetUpGlobalData(const std::string &fileName, std::stringstream &inStr)
void DisableAllPointArrays()
void SetUpPressureData(float *pressureData, float *prespreData, const float *tempgData, const float *densityData)
vtkDataArraySelection * PointDataArraySelection
void DivideByDensity(const char *name)
float * ZTopographicValues
static vtkWindBladeReader * New()
virtual int FillOutputPortInformation(int, vtkInformation *)
Fill the output port information objects for this algorithm.
void ReadBladeHeader(const std::string &fileName, std::stringstream &inStr, int &numColumns)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkStructuredGrid * GetGroundOutput()
void FillGroundCoordinates()
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.