/home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/turbine/fast/fast_wrapper.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/turbine/fast/fast_wrapper.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
fast_wrapper.H
Go to the documentation of this file.
1#ifndef FAST_WRAPPER_H
2#define FAST_WRAPPER_H
3
4namespace exw_fast {
5#ifdef AMR_WIND_USE_OPENFAST
6extern "C" {
7#include "FAST_Library.h"
8}
9
10extern void exw_fast_output_redirect(char*);
11
12inline constexpr int fast_strlen() { return INTERFACE_STRING_LENGTH; }
13
14#else
15
16#define ErrID_None 0
17#define ErrID_Info 1
18#define ErrID_Warn 2
19#define ErrID_Severe 3
20#define ErrID_Fatal 4
21
23{};
25{};
26
28{};
30{};
31
32inline constexpr int fast_strlen() { return 1025; }
33
34inline void exw_fast_output_redirect(char* /*unused*/) {}
35
36inline void
37FAST_AllocateTurbines(int* /*unused*/, int* /*unused*/, char* /*unused*/)
38{}
39inline void FAST_DeallocateTurbines(int* /*unused*/, char* /*unused*/) {}
40inline void
41FAST_OpFM_Solution0(int* /*unused*/, int* /*unused*/, char* /*unused*/)
42{}
43inline void FAST_OpFM_Step(int* /*unused*/, int* /*unused*/, char* /*unused*/)
44{}
46 int* /*unused*/, char* /*unused*/, int* /*unused*/, char* /*unused*/)
47{}
48
49inline void FAST_HubPosition(
50 int* /*unused*/,
51 float* /*unused*/,
52 float* /*unused*/,
53 double* /*unused*/,
54 int* /*unused*/,
55 char* /*unused*/)
56{}
57
58inline void FAST_OpFM_Init(
59 int* /*unused*/,
60 double* /*unused*/,
61 const char* /*unused*/,
62 int* /*unused*/,
63 int* /*unused*/,
64 int* /*unused*/,
65 int* /*unused*/,
66 float* /*unused*/,
67 float* /*unused*/,
68 int* /*unused*/,
69 int* /*unused*/,
70 float* /*unused*/,
71 int* /*unused*/,
72 double* /*unused*/,
73 int* /*unused*/,
74 int* /*unused*/,
75 int* /*unused*/,
76 OpFM_InputType* /*unused*/,
77 OpFM_OutputType* /*unused*/,
78 SC_DX_InputType* /*unused*/,
79 SC_DX_OutputType* /*unused*/,
80 int* /*unused*/,
81 char* /*unused*/)
82{}
83
85 int* /*unused*/,
86 char* /*unused*/,
87 int* /*unused*/,
88 double* /*unused*/,
89 int* /*unused*/,
90 int* /*unused*/,
91 int* /*unused*/,
92 OpFM_InputType* /*unused*/,
93 OpFM_OutputType* /*unused*/,
94 SC_DX_InputType* /*unused*/,
95 SC_DX_OutputType* /*unused*/,
96 int* /*unused*/,
97 char* /*unused*/)
98{}
99#endif
100} // namespace exw_fast
101
102#endif /* FAST_WRAPPER_H */
Definition fast_types.H:8
void FAST_OpFM_Init(int *, double *, const char *, int *, int *, int *, int *, float *, float *, int *, int *, float *, int *, double *, int *, int *, int *, OpFM_InputType *, OpFM_OutputType *, SC_DX_InputType *, SC_DX_OutputType *, int *, char *)
Definition fast_wrapper.H:58
void FAST_CreateCheckpoint(int *, char *, int *, char *)
Definition fast_wrapper.H:45
void FAST_OpFM_Restart(int *, char *, int *, double *, int *, int *, int *, OpFM_InputType *, OpFM_OutputType *, SC_DX_InputType *, SC_DX_OutputType *, int *, char *)
Definition fast_wrapper.H:84
void exw_fast_output_redirect(char *)
Definition fast_wrapper.H:34
void FAST_OpFM_Solution0(int *, int *, char *)
Definition fast_wrapper.H:41
void FAST_DeallocateTurbines(int *, char *)
Definition fast_wrapper.H:39
void FAST_AllocateTurbines(int *, int *, char *)
Definition fast_wrapper.H:37
constexpr int fast_strlen()
Definition fast_wrapper.H:32
void FAST_HubPosition(int *, float *, float *, double *, int *, char *)
Definition fast_wrapper.H:49
void FAST_OpFM_Step(int *, int *, char *)
Definition fast_wrapper.H:43
Definition fast_wrapper.H:23
Definition fast_wrapper.H:25
Definition fast_wrapper.H:28
Definition fast_wrapper.H:30