Skip to content

Commit 4329a05

Browse files
committed
Nearly working
1 parent 68c0c1f commit 4329a05

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

examples/rectangular_wing.jl

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,26 @@ println("CL = $(round(results_vsm["cl"], digits=4))")
5252
println("CD = $(round(results_vsm["cd"], digits=4))")
5353
println("Projected area = $(round(results_vsm["projected_area"], digits=4))")
5454

55-
# # Step 6: Plot geometry
56-
# plot_geometry(
57-
# wa,
58-
# "Rectangular_wing_geometry";
59-
# data_type=".pdf",
60-
# save_path=".",
61-
# is_save=false,
62-
# is_show=true,
63-
# )
55+
# Step 6: Plot geometry
56+
plot_geometry(
57+
wa,
58+
"Rectangular_wing_geometry";
59+
data_type=".pdf",
60+
save_path=".",
61+
is_save=false,
62+
is_show=true,
63+
)
64+
nothing
6465

6566
# Step 7: Plot spanwise distributions
6667
y_coordinates = [panel.aerodynamic_center[2] for panel in wa.panels]
6768

68-
# plot_distribution(
69-
# [y_coordinates, y_coordinates],
70-
# [results_vsm, results_llt],
71-
# ["VSM", "LLT"],
72-
# title="Spanwise Distributions"
73-
# )
69+
plot_distribution(
70+
[y_coordinates, y_coordinates],
71+
[results_vsm, results_llt],
72+
["VSM", "LLT"],
73+
title="Spanwise Distributions"
74+
)
7475

7576
# Step 8: Plot polar curves
7677
angle_range = range(0, 20, 20)
@@ -83,8 +84,3 @@ plot_polars(
8384
Umag=Umag,
8485
title="Rectangular Wing Polars"
8586
)
86-
87-
# Save plots if needed
88-
# savefig("geometry.pdf")
89-
# savefig("distributions.pdf")
90-
# savefig("polars.pdf")

0 commit comments

Comments
 (0)