Skip to content

Commit

Permalink
add lift and drag f(aoa) plots
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Aug 13, 2024
1 parent 574cc00 commit 0efc96e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions examples/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,17 @@ function plot_aerodynamics(plot_lift_drag = false)
sl = log.syslog

if plot_lift_drag
display(plotx(sl.time, sl.var_08, sl.var_13, sl.var_14, sl.var_15, sl.var_16;
ylabels=["LoD [-]", L"\alpha_2~[°]", "Lift [N]", "Drag [N]"],
fig="aerodynamics"))
display(plotx(sl.time, sl.var_08, sl.var_13, sl.var_15, sl.var_16;
ylabels=["LoD [-]", L"\alpha_2~[°]", "Lift [N]", "Drag [N]"],
fig="aerodynamics"))
display(plotxy(sl.var_13[2:end], sl.var_15[2:end];
xlabel="AoA [°]",
ylabel="Lift [N]",
fig="Lift as function of AoA"))
display(plotxy(sl.var_13[2:end], sl.var_16[2:end];
xlabel="AoA [°]",
ylabel="Drag [N]",
fig="Drag as function of AoA"))
else
display(plotx(sl.time, sl.var_08, sl.var_13, sl.var_14, sl.var_15, sl.var_16;
ylabels=["LoD [-]", L"\alpha_2~[°]", L"\alpha_{3b}~[°]", L"\alpha_{4b}~[°]"],
Expand Down

0 comments on commit 0efc96e

Please sign in to comment.