Skip to content

Commit 604579b

Browse files
committed
Update V3_kite.jl
1 parent 9ffda88 commit 604579b

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

examples/V3_kite.jl

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ using LinearAlgebra
22
using VortexStepMethod
33

44
PLOT = true
5+
SAVE_ALL = false
56
USE_TEX = false
67
DEFORM = false
8+
OUTPUT_DIR = joinpath(dirname(@__DIR__), "output")
79

810
project_dir = dirname(@__DIR__)
911
literature_paths = [
@@ -118,8 +120,8 @@ PLOT && plot_polars(
118120
side_slip=sideslip_deg,
119121
v_a=wind_speed,
120122
title="$(wing.n_panels)_panels_$(wing.spanwise_distribution)_from_yaml_settings",
121-
data_type=".pdf",
122-
is_save=false,
123+
save_path=OUTPUT_DIR,
124+
is_save=false || SAVE_ALL,
123125
is_show=true,
124126
use_tex=USE_TEX,
125127
show_moments=true
@@ -128,10 +130,10 @@ PLOT && plot_polars(
128130
# Plotting geometry
129131
PLOT && plot_geometry(
130132
body_aero,
131-
"";
132-
data_type=".svg",
133-
save_path="",
134-
is_save=false,
133+
"V3 kite geometry";
134+
data_type=".pdf",
135+
save_path=OUTPUT_DIR,
136+
is_save=false || SAVE_ALL,
135137
is_show=true,
136138
view_elevation=15,
137139
view_azimuth=-120,
@@ -147,8 +149,8 @@ PLOT && plot_distribution(
147149
[results],
148150
["VSM"];
149151
title="CAD_spanwise_distributions_alpha_$(round(angle_of_attack_deg, digits=1))_delta_$(round(sideslip_deg, digits=1))_yaw_$(round(yaw_rate, digits=1))_v_a_$(round(wind_speed, digits=1))",
150-
data_type=".pdf",
151-
is_save=false,
152+
save_path=OUTPUT_DIR,
153+
is_save=false || SAVE_ALL,
152154
is_show=true,
153155
use_tex=USE_TEX
154156
)
@@ -193,7 +195,8 @@ PLOT && plot_polars(
193195
v_a=wind_speed,
194196
title="LOOP solver",
195197
show_moments=true,
196-
is_save=false,
198+
save_path=OUTPUT_DIR,
199+
is_save=false || SAVE_ALL,
197200
is_show=true,
198201
use_tex=USE_TEX
199202
)
@@ -211,7 +214,8 @@ PLOT && plot_polars(
211214
v_a=wind_speed,
212215
title="beta sweep",
213216
show_moments=true,
214-
is_save=false,
217+
save_path=OUTPUT_DIR,
218+
is_save=false || SAVE_ALL,
215219
is_show=true,
216220
use_tex=USE_TEX
217221
)

0 commit comments

Comments
 (0)