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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/turbine/fast/fast_types.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
fast_types.H
Go to the documentation of this file.
1#ifndef FAST_TYPES_H
2#define FAST_TYPES_H
3
5
6#include <string>
7
8namespace exw_fast {
9
10enum class SimMode : int {
11 init = 0,
12 replay,
13 restart
14};
15
19{
20 static constexpr int ndim = 3;
21
23 std::string tlabel;
24
27
30
33
36
38 amrex::Array<float, ndim> base_pos;
39
41 amrex::Array<float, 3> hub_abs_pos;
42
43 amrex::Array<float, 3> hub_rot_vel;
44
45 amrex::Array<double, 9> hub_orient;
46
48
50 std::string input_file;
51
53 std::string checkpoint_file;
54
57
60
63
65 double start_time{0.0};
66
68 double stop_time;
69
71 double dt_cfd;
72
74 double dt_fast;
75
78
80 int time_index{0};
81
83 bool is_solution0{true};
84
87
88 // Data structures that are used to exchange between fast/cfd
89
92
95};
96
97} // namespace exw_fast
98
99#endif /* FAST_TYPES_H */
Definition fast_types.H:8
SimMode
Definition fast_types.H:10
@ restart
Restart using FAST checkpoint files.
@ replay
Replay using velocities stored in file.
@ init
Clean start.
Definition fast_types.H:19
double dt_fast
Timestep for FAST using per-turbine to check input files.
Definition fast_types.H:74
int num_blade_elem
Total number of elements along the blade.
Definition fast_types.H:59
int time_index
Time step index for FAST.
Definition fast_types.H:80
double stop_time
End time for this turbine.
Definition fast_types.H:68
std::string input_file
OpenFAST input file.
Definition fast_types.H:50
amrex::Array< double, 9 > hub_orient
Definition fast_types.H:45
bool is_solution0
Does FAST need solution0.
Definition fast_types.H:83
int num_pts_tower
Number of actuator points for tower.
Definition fast_types.H:35
int num_pts_blade
Number of actuator points per blade.
Definition fast_types.H:32
int chord_cluster_type
Node cluster type for the chord.
Definition fast_types.H:62
int chkpt_interval
Checkpoint interval for FAST.
Definition fast_types.H:86
int tid_global
Global ID for this turbine (set by Turbine instance)
Definition fast_types.H:29
static constexpr int ndim
Definition fast_types.H:20
double start_time
Start time for this turbine.
Definition fast_types.H:65
amrex::Array< float, 3 > hub_rot_vel
Definition fast_types.H:43
std::string tlabel
Unique string identifier for this turbine.
Definition fast_types.H:23
SimMode sim_mode
Definition fast_types.H:47
amrex::Array< float, 3 > hub_abs_pos
Hub stats for Spinner Lidar.
Definition fast_types.H:41
double dt_cfd
Timestep for CFD.
Definition fast_types.H:71
int num_blades
Number of blades.
Definition fast_types.H:56
int tid_local
Local ID for this turbine (provided by FAST interface)
Definition fast_types.H:26
exw_fast::OpFM_OutputType from_cfd
Definition fast_types.H:91
exw_fast::SC_DX_OutputType from_sc
Definition fast_types.H:94
exw_fast::OpFM_InputType to_cfd
Definition fast_types.H:90
amrex::Array< float, ndim > base_pos
Position of tower base in global coordinate system.
Definition fast_types.H:38
exw_fast::SC_DX_InputType to_sc
Definition fast_types.H:93
std::string checkpoint_file
Checkpoint file name.
Definition fast_types.H:53
int num_substeps
Number of sub-steps of fast per CFD timestep.
Definition fast_types.H:77
Definition fast_wrapper.H:23
Definition fast_wrapper.H:25
Definition fast_wrapper.H:28
Definition fast_wrapper.H:30