@@ -76,47 +76,48 @@ results = solve(VSM, wing_aero_CAD_19ribs)
7676@time results_with_stall = solve (VSM_with_stall_correction, wing_aero_CAD_19ribs)
7777@time results_with_stall = solve (VSM_with_stall_correction, wing_aero_CAD_19ribs)
7878
79- # CAD_y_coordinates = [panel.aerodynamic_center[2] for panel in wing_aero_CAD_19ribs.panels]
79+ CAD_y_coordinates = [panel. aerodynamic_center[2 ] for panel in wing_aero_CAD_19ribs. panels]
8080
81- # plot_distribution(
82- # [CAD_y_coordinates, CAD_y_coordinates],
83- # [results, results_with_stall],
84- # ["VSM", "VSM with stall correction"];
85- # title="CAD_spanwise_distributions_alpha_$(round(aoa, digits=1))_beta_$(round(side_slip, digits=1))_yaw_$(round(yaw_rate, digits=1))_Umag_$(round(Umag, digits=1))",
86- # data_type=".pdf",
87- # save_path=joinpath(save_folder, "spanwise_distributions"),
88- # is_save=false,
89- # is_show=true
90- # )
81+ plot_distribution (
82+ [CAD_y_coordinates, CAD_y_coordinates],
83+ [results, results_with_stall],
84+ [" VSM" , " VSM with stall correction" ];
85+ title= " CAD_spanwise_distributions_alpha_$(round (aoa, digits= 1 )) _beta_$(round (side_slip, digits= 1 )) _yaw_$(round (yaw_rate, digits= 1 )) _Umag_$(round (Umag, digits= 1 )) " ,
86+ data_type= " .pdf" ,
87+ save_path= joinpath (save_folder, " spanwise_distributions" ),
88+ is_save= false ,
89+ is_show= true
90+ )
9191
92- # # Plotting polar
93- # save_path = joinpath(root_dir, "results", "TUD_V3_LEI_KITE")
94- # path_cfd_lebesque = joinpath(
95- # root_dir,
96- # "data",
97- # "TUDELFT_V3_LEI_KITE",
98- # "literature_results",
99- # "V3_CL_CD_RANS_Lebesque_2024_Rey_300e4.csv"
100- # )
92+ # Plotting polar
93+ save_path = joinpath (root_dir, " results" , " TUD_V3_LEI_KITE" )
94+ path_cfd_lebesque = joinpath (
95+ root_dir,
96+ " data" ,
97+ " TUDELFT_V3_LEI_KITE" ,
98+ " literature_results" ,
99+ " V3_CL_CD_RANS_Lebesque_2024_Rey_300e4.csv"
100+ )
101101
102- # plot_polars(
103- # [VSM, VSM_with_stall_correction],
104- # [wing_aero_CAD_19ribs, wing_aero_CAD_19ribs],
105- # [
106- # "VSM CAD 19ribs",
107- # "VSM CAD 19ribs , with stall correction",
108- # "CFD_Lebesque Rey 30e5"
109- # ];
110- # literature_path_list=[path_cfd_lebesque],
111- # angle_range=range(0, 25, length=25),
112- # angle_type="angle_of_attack",
113- # angle_of_attack=0,
114- # side_slip=0,
115- # yaw_rate=0,
116- # Umag=10,
117- # title="tutorial_testing_stall_model_n_panels_$(n_panels)_distribution_$(spanwise_panel_distribution)",
118- # data_type=".pdf",
119- # save_path=joinpath(save_folder, "polars"),
120- # is_save=true,
121- # is_show=true
122- # )
102+ plot_polars (
103+ [VSM, VSM_with_stall_correction],
104+ [wing_aero_CAD_19ribs, wing_aero_CAD_19ribs],
105+ [
106+ " VSM CAD 19ribs" ,
107+ " VSM CAD 19ribs , with stall correction" ,
108+ " CFD_Lebesque Rey 30e5"
109+ ];
110+ literature_path_list= [path_cfd_lebesque],
111+ angle_range= range (0 , 25 , length= 25 ),
112+ angle_type= " angle_of_attack" ,
113+ angle_of_attack= 0 ,
114+ side_slip= 0 ,
115+ yaw_rate= 0 ,
116+ Umag= 10 ,
117+ title= " tutorial_testing_stall_model_n_panels_$(n_panels) _distribution_$(spanwise_panel_distribution) " ,
118+ data_type= " .pdf" ,
119+ save_path= joinpath (save_folder, " polars" ),
120+ is_save= true ,
121+ is_show= true
122+ )
123+ nothing
0 commit comments