OpenFAST
Wind turbine multiphysics simulator
OpenFOAM_Types.h
1 
7 #ifndef _OpenFOAM_TYPES_H
8 #define _OpenFOAM_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 OpFM_InitInputType {
24  void * object ;
25  int NumSC2Ctrl ;
26  int NumCtrl2SC ;
27  int NumActForcePtsBlade ;
28  int NumActForcePtsTower ;
29  float * StructBldRNodes ; int StructBldRNodes_Len ;
30  float * StructTwrHNodes ; int StructTwrHNodes_Len ;
31  float BladeLength ;
32  float TowerHeight ;
33  float TowerBaseHeight ;
35  typedef struct OpFM_InitOutputType {
36  void * object ;
37  char * WriteOutputHdr ; int WriteOutputHdr_Len ;
38  char * WriteOutputUnt ; int WriteOutputUnt_Len ;
39 
41  typedef struct OpFM_MiscVarType {
42  void * object ;
43 
44 
45 
46 
47 
48 
49 
50 
52  typedef struct OpFM_ParameterType {
53  void * object ;
54  float AirDens ;
55  int NumBl ;
56  int NMappings ;
57  int NnodesVel ;
58  int NnodesForce ;
59  int NnodesForceBlade ;
60  int NnodesForceTower ;
61  float * forceBldRnodes ; int forceBldRnodes_Len ;
62  float * forceTwrHnodes ; int forceTwrHnodes_Len ;
63  float BladeLength ;
64  float TowerHeight ;
65  float TowerBaseHeight ;
67  typedef struct OpFM_InputType {
68  void * object ;
69  float * pxVel ; int pxVel_Len ;
70  float * pyVel ; int pyVel_Len ;
71  float * pzVel ; int pzVel_Len ;
72  float * pxForce ; int pxForce_Len ;
73  float * pyForce ; int pyForce_Len ;
74  float * pzForce ; int pzForce_Len ;
75  float * xdotForce ; int xdotForce_Len ;
76  float * ydotForce ; int ydotForce_Len ;
77  float * zdotForce ; int zdotForce_Len ;
78  float * pOrientation ; int pOrientation_Len ;
79  float * fx ; int fx_Len ;
80  float * fy ; int fy_Len ;
81  float * fz ; int fz_Len ;
82  float * momentx ; int momentx_Len ;
83  float * momenty ; int momenty_Len ;
84  float * momentz ; int momentz_Len ;
85  float * forceNodesChord ; int forceNodesChord_Len ;
86  float * SuperController ; int SuperController_Len ;
88  typedef struct OpFM_OutputType {
89  void * object ;
90  float * u ; int u_Len ;
91  float * v ; int v_Len ;
92  float * w ; int w_Len ;
93  float * SuperController ; int SuperController_Len ;
94  float * WriteOutput ; int WriteOutput_Len ;
96  typedef struct OpFM_UserData {
97  OpFM_InitInputType_t OpFM_InitInput ;
98  OpFM_InitOutputType_t OpFM_InitOutput ;
99  OpFM_MiscVarType_t OpFM_Misc ;
100  OpFM_ParameterType_t OpFM_Param ;
101  OpFM_InputType_t OpFM_Input ;
102  OpFM_OutputType_t OpFM_Output ;
103  } OpFM_t ;
104 
105 #endif // _OpenFOAM_TYPES_H
106 
107 
Definition: OpenFOAM_Types.h:41
Definition: OpenFOAM_Types.h:67
Definition: OpenFOAM_Types.h:35
Definition: OpenFOAM_Types.h:23
Definition: OpenFOAM_Types.h:52
Definition: OpenFOAM_Types.h:88
Definition: OpenFOAM_Types.h:96