|
1 | 1 |
|
2 | 2 | """ |
3 | | - Section |
| 3 | + Section{T} |
4 | 4 |
|
5 | 5 | Represents a wing section with leading edge, trailing edge, and aerodynamic properties. |
6 | 6 |
|
7 | 7 | # Fields |
8 | 8 | - `LE_point::MVec3`: Leading edge point coordinates |
9 | 9 | - `TE_point::MVec3`: Trailing edge point coordinates |
10 | | -- `aero_input::Vector{Any}`: Aerodynamic input data for the section: |
11 | | - - `("inviscid")`: Inviscid aerodynamics |
12 | | - - `("polar_data", [alpha_column,CL_column,CD_column,CM_column])`: Polar data aerodynamics |
13 | | - - `("lei_airfoil_breukels", [d_tube,camber])`: LEI airfoil with Breukels parameters |
| 10 | +- `aero_input`::T: Aerodynamic input, one of three possible types |
14 | 11 | """ |
15 | 12 | struct Section{T} |
16 | 13 | LE_point::MVec3 |
@@ -61,8 +58,7 @@ mutable struct Wing <: AbstractWing |
61 | 58 | end |
62 | 59 |
|
63 | 60 | """ |
64 | | - add_section!(wing::Wing, LE_point::PosVector, |
65 | | - TE_point::PosVector, aero_input::Vector{Any}) |
| 61 | + add_section!(wing::Wing, LE_point::PosVector, TE_point::PosVector, aero_input) |
66 | 62 |
|
67 | 63 | Add a new section to the wing. |
68 | 64 | """ |
@@ -182,7 +178,7 @@ function interpolate_to_common_alpha(alpha_common, |
182 | 178 | end |
183 | 179 |
|
184 | 180 | """ |
185 | | - calculate_new_aero_input(aero_input::Vector{Any}, |
| 181 | + calculate_new_aero_input(aero_input, |
186 | 182 | section_index::Int, |
187 | 183 | left_weight::Float64, |
188 | 184 | right_weight::Float64) |
|
272 | 268 | n_sections::Int, |
273 | 269 | LE::Matrix{Float64}, |
274 | 270 | TE::Matrix{Float64}, |
275 | | - aero_input::Vector{Any}) |
| 271 | + aero_input) |
276 | 272 |
|
277 | 273 | Refine wing mesh using linear or cosine spacing. |
278 | 274 |
|
|
0 commit comments