OpenFAST
Wind turbine multiphysics simulator
SuperController_Types.h
1 
7 #ifndef _SuperController_TYPES_H
8 #define _SuperController_TYPES_H
9 
10 
11 #ifdef _WIN32 //define something for Windows (32-bit)
12 # include "stdbool.h"
13 # define CALL __declspec( dllexport )
14 #elif _WIN64 //define something for Windows (64-bit)
15 # include "stdbool.h"
16 # define CALL __declspec( dllexport )
17 #else
18 # include <stdbool.h>
19 # define CALL
20 #endif
21 
22 
23  typedef struct SC_InitInputType {
24  void * object ;
25  int nTurbines ;
26  char DLL_FileName[1024] ;
28  typedef struct SC_InitOutputType {
29  void * object ;
30 
31  int NumCtrl2SC ;
32  int nInpGlobal ;
33  int NumSC2Ctrl ;
34  int NumSC2CtrlGlob ;
36  typedef struct SC_ParameterType {
37  void * object ;
38  double DT ;
39  int nTurbines ;
40  int NumCtrl2SC ;
41  int nInpGlobal ;
42  int NumSC2Ctrl ;
43  int NumSC2CtrlGlob ;
44  int NumStatesGlobal ;
45  int NumStatesTurbine ;
46  int NumParamGlobal ;
47  int NumParamTurbine ;
48  float * ParamGlobal ; int ParamGlobal_Len ;
49  float * ParamTurbine ; int ParamTurbine_Len ;
50 
52  typedef struct SC_DiscreteStateType {
53  void * object ;
54  float * Global ; int Global_Len ;
55  float * Turbine ; int Turbine_Len ;
57  typedef struct SC_ContinuousStateType {
58  void * object ;
59  float Dummy ;
61  typedef struct SC_ConstraintStateType {
62  void * object ;
63  float Dummy ;
65  typedef struct SC_MiscVarType {
66  void * object ;
67  float Dummy ;
69  typedef struct SC_OtherStateType {
70  void * object ;
71  int Dummy ;
73  typedef struct SC_InputType {
74  void * object ;
75  float * toSCglob ; int toSCglob_Len ;
76  float * toSC ; int toSC_Len ;
77  } SC_InputType_t ;
78  typedef struct SC_OutputType {
79  void * object ;
80  float * fromSCglob ; int fromSCglob_Len ;
81  float * fromSC ; int fromSC_Len ;
82  } SC_OutputType_t ;
83  typedef struct SC_UserData {
84  SC_InitInputType_t SC_InitInput ;
85  SC_InitOutputType_t SC_InitOutput ;
86  SC_ParameterType_t SC_Param ;
87  SC_DiscreteStateType_t SC_DiscState ;
88  SC_ContinuousStateType_t SC_ContState ;
89  SC_ConstraintStateType_t SC_ConstrState ;
90  SC_MiscVarType_t SC_Misc ;
91  SC_OtherStateType_t SC_OtherState ;
92  SC_InputType_t SC_Input ;
93  SC_OutputType_t SC_Output ;
94  } SC_t ;
95 
96 #endif // _SuperController_TYPES_H
97 
98 
Definition: SuperController_Types.h:52
Definition: SuperController_Types.h:61
Definition: SuperController_Types.h:83
Definition: SuperController_Types.h:73
Definition: SuperController_Types.h:36
Definition: SuperController_Types.h:23
Definition: SuperController_Types.h:28
Definition: SuperController_Types.h:78
Definition: SuperController_Types.h:65
Definition: SuperController_Types.h:57
Definition: SuperController_Types.h:69