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