From 0efc96eb451507b9051fef616d38cd287fb82173 Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Tue, 13 Aug 2024 16:11:17 +0200 Subject: [PATCH] add lift and drag f(aoa) plots --- examples/plots.jl | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/examples/plots.jl b/examples/plots.jl index ecc11ec9..a2188b56 100644 --- a/examples/plots.jl +++ b/examples/plots.jl @@ -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}~[°]"],