Skip to content

Commit 1c434e3

Browse files
committed
improve bench.jl
1 parent e7ee4c4 commit 1c434e3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/bench.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
using Pkg
2+
if !("BenchmarkTools" keys(Pkg.project().dependencies))
3+
using TestEnv
4+
TestEnv.activate()
5+
end
16
using BenchmarkTools
27
using StaticArrays
38
using VortexStepMethod
@@ -18,18 +23,18 @@ using LinearAlgebra
1823
n_panels = 20 # Number of panels
1924
span = 20.0 # Wing span [m]
2025
chord = 1.0 # Chord length [m]
21-
v_a = 20.0 # Magnitude of inflow velocity [m/s]
26+
v_a = 20.0 # Magnitude of inflow velocity [m/s]
2227
density = 1.225 # Air density [kg/m³]
2328
alpha_deg = 30.0 # Angle of attack [degrees]
2429
alpha = deg2rad(alpha_deg)
2530

2631
wing = Wing(n_panels, spanwise_panel_distribution=LINEAR)
2732
add_section!(wing,
28-
[0.0, span/2, 0.0], # Left tip LE
33+
[0.0, span/2, 0.0], # Left tip LE
2934
[chord, span/2, 0.0], # Left tip TE
3035
:inviscid)
3136
add_section!(wing,
32-
[0.0, -span/2, 0.0], # Right tip LE
37+
[0.0, -span/2, 0.0], # Right tip LE
3338
[chord, -span/2, 0.0], # Right tip TE
3439
:inviscid)
3540

0 commit comments

Comments
 (0)