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