OpenFAST
Wind turbine multiphysics simulator
MAP_Types.h
1 
7 #ifndef _MAP_TYPES_H
8 #define _MAP_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 MAP_InitInputType {
24  void * object ;
25  double gravity ;
26  double sea_density ;
27  double depth ;
28  char file_name[255] ;
29  char summary_file_name[255] ;
30  char library_input_str[255] ;
31  char node_input_str[255] ;
32  char line_input_str[255] ;
33  char option_input_str[255] ;
34 
36  typedef struct MAP_InitOutputType {
37  void * object ;
38  char progName[99] ;
39  char version[99] ;
40  char compilingData[24] ;
41  char * writeOutputHdr ; int writeOutputHdr_Len ;
42  char * writeOutputUnt ; int writeOutputUnt_Len ;
43 
44 
46  typedef struct MAP_ContinuousStateType {
47  void * object ;
48  double dummy ;
50  typedef struct MAP_DiscreteStateType {
51  void * object ;
52  double dummy ;
54  typedef struct MAP_OtherStateType {
55  void * object ;
56  double * H ; int H_Len ;
57  double * V ; int V_Len ;
58  double * Ha ; int Ha_Len ;
59  double * Va ; int Va_Len ;
60  double * x ; int x_Len ;
61  double * y ; int y_Len ;
62  double * z ; int z_Len ;
63  double * xa ; int xa_Len ;
64  double * ya ; int ya_Len ;
65  double * za ; int za_Len ;
66  double * Fx_connect ; int Fx_connect_Len ;
67  double * Fy_connect ; int Fy_connect_Len ;
68  double * Fz_connect ; int Fz_connect_Len ;
69  double * Fx_anchor ; int Fx_anchor_Len ;
70  double * Fy_anchor ; int Fy_anchor_Len ;
71  double * Fz_anchor ; int Fz_anchor_Len ;
73  typedef struct MAP_ConstraintStateType {
74  void * object ;
75  double * H ; int H_Len ;
76  double * V ; int V_Len ;
77  double * x ; int x_Len ;
78  double * y ; int y_Len ;
79  double * z ; int z_Len ;
81  typedef struct MAP_ParameterType {
82  void * object ;
83  double g ;
84  double depth ;
85  double rho_sea ;
86  double dt ;
87 
88 
89  int numOuts ;
90 
92  typedef struct MAP_InputType {
93  void * object ;
94  double * x ; int x_Len ;
95  double * y ; int y_Len ;
96  double * z ; int z_Len ;
97 
98  } MAP_InputType_t ;
99  typedef struct MAP_OutputType {
100  void * object ;
101  double * Fx ; int Fx_Len ;
102  double * Fy ; int Fy_Len ;
103  double * Fz ; int Fz_Len ;
104  float * WriteOutput ; int WriteOutput_Len ;
105  double * wrtOutput ; int wrtOutput_Len ;
106 
107  } MAP_OutputType_t ;
108  typedef struct MAP_UserData {
109  MAP_InitInputType_t MAP_InitInput ;
110  MAP_InitOutputType_t MAP_InitOutput ;
111  MAP_ContinuousStateType_t MAP_ContState ;
112  MAP_DiscreteStateType_t MAP_DiscState ;
113  MAP_OtherStateType_t MAP_OtherState ;
114  MAP_ConstraintStateType_t MAP_ConstrState ;
115  MAP_ParameterType_t MAP_Param ;
116  MAP_InputType_t MAP_Input ;
117  MAP_OutputType_t MAP_Output ;
118  } MAP_t ;
119 
120 #endif // _MAP_TYPES_H
121 
122 
Definition: MAP_Types.h:50
Definition: MAP_Types.h:99
Definition: MAP_Types.h:92
Definition: MAP_Types.h:23
Definition: MAP_Types.h:46
Definition: MAP_Types.h:73
Definition: MAP_Types.h:36
Definition: MAP_Types.h:108
Definition: MAP_Types.h:81
Definition: MAP_Types.h:54