OpenFAST
Wind turbine multiphysics simulator
glue-codes
openfast-cpp
src
SC.h
1
2
#include "SuperController_Types.h"
3
#include <sstream>
4
#include <iostream>
5
#include "hdf5.h"
6
#include <string>
7
8
class
SuperController
{
9
10
private
:
11
12
int
nTurbines;
13
int
nScInputs;
14
int
nScOutputs;
15
16
int
nGlobStates;
// Global states like time
17
double
* globStates;
18
19
int
nTurbineStates;
// States for each turbine
20
double
** turbineStates ;
21
22
double
d2R = 0.01745329251 ;
//Degrees to Radians
23
24
public
:
25
26
SuperController
();
27
28
virtual
~
SuperController
() ;
29
30
virtual
void
init(
int
n,
int
numScInputs,
int
numScOutputs);
31
32
virtual
void
calcOutputs(std::vector<double> & scOutputsGlob) ;
33
34
virtual
void
updateStates(std::vector<double> & scInputsGlob) ;
35
36
virtual
int
writeRestartFile(
int
n_t_global);
37
38
virtual
int
readRestartFile(
int
n_t_global);
39
};
SuperController
Generated by
1.8.13