@@ -299,7 +299,6 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
299299
300300 # Gamma Distribution
301301 for (y_coordinates_i, result_i, label_i) in zip (y_coordinates_list, results_list, label_list)
302- value = " $(round (result_i[" cl" ], digits= 2 )) "
303302 axs[1 , 3 ]. plot (
304303 y_coordinates_i,
305304 result_i[" gamma_distribution" ],
@@ -313,7 +312,6 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
313312
314313 # Geometric Alpha
315314 for (y_coordinates_i, result_i, label_i) in zip (y_coordinates_list, results_list, label_list)
316- value = " $(round (result_i[" cl" ], digits= 2 )) "
317315 axs[2 , 1 ]. plot (
318316 y_coordinates_i,
319317 result_i[" alpha_geometric" ],
@@ -325,9 +323,8 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
325323 axs[2 , 1 ]. set_ylabel (L " Angle of Attack $\a lpha$ (deg)" )
326324 axs[2 , 1 ]. legend ()
327325
328- # Corrected Alpha
326+ # Calculated/ Corrected Alpha
329327 for (y_coordinates_i, result_i, label_i) in zip (y_coordinates_list, results_list, label_list)
330- value = " $(round (result_i[" cl" ], digits= 2 )) "
331328 axs[2 , 2 ]. plot (
332329 y_coordinates_i,
333330 result_i[" alpha_at_ac" ],
@@ -339,17 +336,30 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
339336 axs[2 , 2 ]. set_ylabel (L " Angle of Attack $\a lpha$ (deg)" )
340337 axs[2 , 2 ]. legend ()
341338
339+ # Uncorrected Alpha plot
340+ for (y_coordinates_i, result_i, label_i) in zip (y_coordinates_list, results_list, label_list)
341+ axs[2 , 3 ]. plot (
342+ y_coordinates_i,
343+ result_i[" alpha_uncorrected" ],
344+ label= label_i
345+ )
346+ end
347+ axs[2 , 3 ]. set_title (L " $\a lpha$ Uncorrected (if VSM, at the control point)" , size= 16 )
348+ axs[2 , 3 ]. set_xlabel (L " Spanwise Position $y/b$" )
349+ axs[2 , 3 ]. set_ylabel (L " Angle of Attack $\a lpha$ (deg)" )
350+ axs[2 , 3 ]. legend ()
351+
352+ # Force Components
353+ for (idx, component) in enumerate ([" x" , " y" , " z" ])
354+ println (idx)
355+ println (component)
356+ axs[3 , idx]. set_title (" Force in $component direction" , size= 16 )
357+ axs[3 , idx]. set_xlabel (L " Spanwise Position $y/b$" )
358+ axs[3 , idx]. set_ylabel (raw " $F_\m athrm" * " {$component }" * raw " $" )
359+ end
360+
342361 fig. tight_layout ()
343362
344- # # Corrected Alpha
345- # plot!(res[5],
346- # title=L"\alpha Corrected",
347- # xlabel="Spanwise Position y/b",
348- # ylabel=L"Angle of Attack \alpha (deg)"
349- # )
350- # for (y_coords, results, label) in zip(y_coordinates_list, results_list, label_list)
351- # plot!(res[5], y_coords, rad2deg.(results["alpha_at_ac"]), label=label)
352- # end
353363
354364# # Force Components
355365# for (idx, component) in enumerate(["x", "y", "z"])
0 commit comments