Skip to content

Commit a541ef2

Browse files
committed
add alpha_geometric plot
1 parent aba857a commit a541ef2

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/plotting.jl

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,22 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
311311
axs[1, 3].set_ylabel(L"Circulation~\Gamma")
312312
axs[1, 3].legend()
313313

314-
fig.tight_layout()
314+
# Geometric Alpha
315+
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))"
317+
axs[2, 1].plot(
318+
y_coordinates_i,
319+
result_i["alpha_geometric"],
320+
label=label_i
321+
)
322+
end
323+
axs[2, 1].set_title(L"$\alpha$ Geometric", size=16)
324+
axs[2, 1].set_xlabel(L"Spanwise Position $y/b$")
325+
axs[2, 1].set_ylabel(L"Angle of Attack $\alpha$ (deg)")
326+
axs[2, 1].legend()
315327

316-
# # Gamma Distribution
317-
# plot!(res[3],
318-
# title=L"\Gamma Distribution",
319-
# xlabel="Spanwise Position y/b",
320-
# ylabel=L"Circulation \Gamma"
321-
# )
322-
# for (y_coords, results, label) in zip(y_coordinates_list, results_list, label_list)
323-
# plot!(res[3], y_coords, results["gamma_distribution"], label=label)
324-
# end
328+
329+
fig.tight_layout()
325330

326331
# # Geometric Alpha
327332
# plot!(res[4],

0 commit comments

Comments
 (0)