File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ Main structure for calculating aerodynamic properties of bodies.
1313- `alpha_uncorrected`::Vector{Float64}=zeros(Float64, P): angles of attack per panel
1414- `alpha_corrected`::Vector{Float64}=zeros(Float64, P): corrected angles of attack per panel
1515- `stall_angle_list`::Vector{Float64}=zeros(Float64, P): stall angle per panel
16- - alpha_array::Vector{Float64} = zeros(Float64, P)
17- - v_a_array::Vector{Float64} = zeros(Float64, P)
18- - work_vectors::NTuple{10, MVec3} = ntuple(_ -> zeros(MVec3), 10)
16+ - ` alpha_array` ::Vector{Float64} = zeros(Float64, P)
17+ - ` v_a_array` ::Vector{Float64} = zeros(Float64, P)
18+ - ` work_vectors` ::NTuple{10, MVec3} = ntuple(_ -> zeros(MVec3), 10)
1919- AIC::Array{Float64, 3} = zeros(3, P, P)
20- - projected_area::Float64 = 1.0: The area projected onto the xy-plane of the kite body reference frame [m²]
20+ - ` projected_area` ::Float64 = 1.0: The area projected onto the xy-plane of the kite body reference frame [m²]
2121"""
2222@with_kw mutable struct BodyAerodynamics{P}
2323 panels:: Vector{Panel}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ using LinearAlgebra
2929 alpha_deg = 30.0 # Angle of attack [degrees]
3030 alpha = deg2rad (alpha_deg)
3131
32- wing = Wing (n_panels, spanwise_distribution= LINEAR )
32+ wing = Wing (n_panels, spanwise_distribution= UNCHANGED )
3333 add_section! (wing,
3434 [0.0 , span/ 2 , 0.0 ], # Left tip LE
3535 [chord, span/ 2 , 0.0 ], # Left tip TE
@@ -43,7 +43,8 @@ using LinearAlgebra
4343 init! (body_aero)
4444
4545 @testset " Re-initialization" begin
46- result = @benchmark init! (body_aero; init_aero= false ) samples= 1 evals= 1
46+ init_aero= false
47+ result = @benchmark init! ($ body_aero; init_aero= $ init_aero) samples= 1 evals= 1
4748 @info " Re-initializing Allocations: $(result. allocs) \t Memory: $(result. memory) "
4849 @test result. allocs < 100
4950 end
You can’t perform that action at this time.
0 commit comments