30#ifndef vtkWindBladeReader_h
31#define vtkWindBladeReader_h
33#include "vtkIOGeometryModule.h"
44class vtkMultiBlockDataSetAglorithm;
46class WindBladeReaderInternal;
58 vtkSetVector6Macro(WholeExtent,
int);
59 vtkGetVector6Macro(WholeExtent,
int);
61 vtkSetVector6Macro(SubExtent,
int);
62 vtkGetVector6Macro(SubExtent,
int);
201 float GDeform(
float sigma,
float sigmaMax,
int flag);
202 void Spline(
float* x,
float* y,
int n,
float yp1,
float ypn,
float* y2);
203 void Splint(
float* xa,
float* ya,
float* y2a,
int n,
float x,
float* y,
int);
221 void InitPressureData(
int pressure,
int prespre,
float*& pressureData,
float*& prespreData);
223 float* pressureData,
float* prespreData,
const float* tempgData,
const float* densityData);
226 int var,
int& numberOfComponents,
float*& varData,
int& planeSize,
int& rowSize);
229 void ReadBladeHeader(
const std::string& fileName, std::stringstream& inStr,
int& numColumns);
237 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
253 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)
const char * GetPointArrayName(int index)
The following methods allow selective reading of solutions fields.
int GetNumberOfPointArrays()
The following methods allow selective reading of solutions fields.
vtkFloatArray * HubHeight
vtkGetFilePathMacro(Filename)
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)
vtkUnstructuredGrid * GetBladeOutput()
static int BYTES_PER_DATA
vtkFloatArray * BladeLength
vtkStdString * VariableName
vtkStdString DataBaseName
vtkFloatArray * YPosition
int NumberOfDerivedVariables
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)
int NumberOfFileVariables
static void SelectionCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
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
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
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)
vtkStructuredGrid * GetGroundOutput()
static int NUM_PART_SIDES
virtual void SetupBladeData()
~vtkWindBladeReader() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStdString TurbineDirectory
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
We intercept the requests to check for which port information is being requested for and if there is ...
vtkFloatArray * XPosition
virtual void LoadBladeData(int timeStep)
vtkStructuredGrid * GetFieldOutput()
Get the reader's output.
void SetUpVorticityData(float *uData, float *vData, const float *densityData, float *vortData)
static vtkWindBladeReader * New()
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
void ReadBladeHeader(const std::string &fileName, std::stringstream &inStr, int &numColumns)
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkSetFilePathMacro(Filename)
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void FillGroundCoordinates()