Skip to content

Commit b424518

Browse files
committed
added corrected alpha plot
1 parent a541ef2 commit b424518

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/plotting.jl

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -325,19 +325,22 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
325325
axs[2, 1].set_ylabel(L"Angle of Attack $\alpha$ (deg)")
326326
axs[2, 1].legend()
327327

328+
# Corrected Alpha
329+
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))"
331+
axs[2, 2].plot(
332+
y_coordinates_i,
333+
result_i["alpha_at_ac"],
334+
label=label_i
335+
)
336+
end
337+
axs[2, 2].set_title(L"$\alpha$ result (corrected to aerodynamic center)", size=16)
338+
axs[2, 2].set_xlabel(L"Spanwise Position $y/b$")
339+
axs[2, 2].set_ylabel(L"Angle of Attack $\alpha$ (deg)")
340+
axs[2, 2].legend()
328341

329342
fig.tight_layout()
330343

331-
# # Geometric Alpha
332-
# plot!(res[4],
333-
# title=L"\alpha Geometric",
334-
# xlabel="Spanwise Position y/b",
335-
# ylabel=L"Angle of Attack \alpha (deg)"
336-
# )
337-
# for (y_coords, results, label) in zip(y_coordinates_list, results_list, label_list)
338-
# plot!(res[4], y_coords, rad2deg.(results["alpha_geometric"]), label=label)
339-
# end
340-
341344
# # Corrected Alpha
342345
# plot!(res[5],
343346
# title=L"\alpha Corrected",

0 commit comments

Comments
 (0)