|
3 | 3 | WingAerodynamics |
4 | 4 |
|
5 | 5 | Main structure for calculating aerodynamic properties of wings. |
| 6 | +
|
| 7 | +# Fields |
| 8 | +- panels::Vector{Panel}: Vector of Panel structs |
| 9 | +- n_panels::Int64: number of panels |
| 10 | +- wings::Vector{AbstractWing}: a vector of wings; but why more than one? |
| 11 | +- `_va`::Union{Nothing, Vector{Float64}, Tuple{Vector{Float64}, Float64}}: A vector of the apparent wind speed, |
| 12 | + or a tuple of the v_a vector and yaw rate (rad/s). |
| 13 | +- ` gamma_distribution`::Union{Nothing, Vector{Float64}}: unclear, please defined |
| 14 | +- `alpha_uncorrected`::Union{Nothing, Vector{Float64}}: unclear, please define |
| 15 | +- `alpha_corrected`::Union{Nothing, Vector{Float64}}: unclear, please define |
| 16 | +- `stall_angle_list`::Vector{Float64}: unclear, please define |
6 | 17 | """ |
7 | 18 | mutable struct WingAerodynamics |
8 | 19 | panels::Vector{Panel} |
9 | | - n_panels::Int |
10 | | - wings::Vector{AbstractWing} |
| 20 | + n_panels::Int64 # TODO: Why is this needed? Just use length(panels) |
| 21 | + wings::Vector{AbstractWing} # TODO: Why not a concrete type? And why a vector? |
11 | 22 | _va::Union{Nothing, Vector{Float64}, Tuple{Vector{Float64}, Float64}} |
12 | 23 | gamma_distribution::Union{Nothing, Vector{Float64}} |
13 | 24 | alpha_uncorrected::Union{Nothing, Vector{Float64}} |
|
96 | 107 | PanelProperties |
97 | 108 |
|
98 | 109 | Structure to hold calculated panel properties. |
| 110 | +
|
| 111 | +# Fields |
| 112 | +- `aero_centers`::Vector{PosVector} |
| 113 | +- `control_points`::Vector{PosVector} |
| 114 | +- `bound_points_1`::Vector{PosVector} |
| 115 | +- `bound_points_2`::Vector{PosVector} |
| 116 | +- `x_airf`::Vector{Vector{Float64}}: unclear, please define |
| 117 | +- `y_airf`::Vector{Vector{Float64}}: unclear, please define |
| 118 | +- `z_airf`::Vector{Vector{Float64}}: unclear, please define |
| 119 | +
|
99 | 120 | """ |
100 | 121 | struct PanelProperties |
101 | 122 | aero_centers::Vector{PosVector} |
|
0 commit comments