@@ -52,25 +52,26 @@ println("CL = $(round(results_vsm["cl"], digits=4))")
5252println (" CD = $(round (results_vsm[" cd" ], digits= 4 )) " )
5353println (" Projected area = $(round (results_vsm[" projected_area" ], digits= 4 )) m²" )
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
6667y_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
7677angle_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