@@ -2,7 +2,9 @@ using LinearAlgebra
22using VortexStepMethod
33
44PLOT = true
5+ SAVE_ALL = false
56USE_TEX = false
7+ OUTPUT_DIR = joinpath (dirname (@__DIR__ ), " output" )
68
79# Data paths (all within this repo)
810vsm_src_path = something (pathof (VortexStepMethod), @__FILE__ )
@@ -132,28 +134,12 @@ println("Billowed: CL=$(round(results_bill["cl"]; digits=4)), " *
132134 " CD=$(round (results_bill[" cd" ]; digits= 4 )) " )
133135
134136if PLOT
135- # Plot polars comparison
136- plot_polars (
137- [solver_flat, solver_bill],
138- [body_aero_flat, body_aero_bill],
139- labels;
140- literature_path_list= literature_paths,
141- angle_range= range (- 5 , 25 , length= 31 ),
142- angle_type= " angle_of_attack" ,
143- angle_of_attack= angle_of_attack_deg,
144- side_slip= sideslip_deg,
145- v_a= wind_speed,
146- title= " V3 Kite: flat vs billowing $(BILLOWING_PCT) %" ,
147- is_show= true ,
148- use_tex= USE_TEX,
149- show_moments= true
150- )
151-
152137 # Plot geometry (flat wing)
153138 plot_geometry (
154139 body_aero_flat,
155140 " Flat wing geometry" ;
156- is_save= false ,
141+ save_path= OUTPUT_DIR,
142+ is_save= false || SAVE_ALL,
157143 is_show= true ,
158144 use_tex= USE_TEX
159145 )
@@ -168,9 +154,30 @@ if PLOT
168154 [results_flat, results_bill],
169155 [" VSM flat" , " VSM billowing" ];
170156 title= " Billowing comparison distributions" ,
157+ save_path= OUTPUT_DIR,
158+ is_save= false || SAVE_ALL,
171159 is_show= true ,
172160 use_tex= USE_TEX
173161 )
162+
163+ # Plot polars comparison
164+ plot_polars (
165+ [solver_flat, solver_bill],
166+ [body_aero_flat, body_aero_bill],
167+ labels;
168+ literature_path_list= literature_paths,
169+ angle_range= range (- 5 , 25 , length= 31 ),
170+ angle_type= " angle_of_attack" ,
171+ angle_of_attack= angle_of_attack_deg,
172+ side_slip= sideslip_deg,
173+ v_a= wind_speed,
174+ title= " V3 Kite flat vs billowing $(BILLOWING_PCT) %" ,
175+ save_path= OUTPUT_DIR,
176+ is_save= false || SAVE_ALL,
177+ is_show= true ,
178+ use_tex= USE_TEX,
179+ show_moments= true
180+ )
174181end
175182
176183nothing
0 commit comments