Skip to content

Commit ac94fef

Browse files
authored
Merge pull request #41 from Albatross-Kite-Transport/fix_example
Fix example stall_model
2 parents 3de010f + c8f0dcc commit ac94fef

File tree

5 files changed

+43
-41
lines changed

5 files changed

+43
-41
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Manifest.toml
22
.vscode/settings.json
3+
results/TUDELFT_V3_LEI_KITE/polars/$C_L$ vs $C_D$.pdf
Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -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
-572 KB
Binary file not shown.

0 commit comments

Comments
 (0)