@@ -13,12 +13,6 @@ angle_of_attack_deg = settings.condition.alpha
1313sideslip_deg = settings. condition. beta
1414yaw_rate = settings. condition. yaw_rate
1515
16- # Use wing geometry path from settings if provided, otherwise use default
17- yaml_geometry_path = if ! isempty (settings. wings[1 ]. yaml_path)
18- joinpath (project_dir, settings. wings[1 ]. yaml_path)
19- else
20- joinpath (project_dir, " data" , " TUDELFT_V3_KITE" , " wing_geometry_CAD_CFD_polars_pchip_fitted.yaml" )
21- end
2216literature_paths = [
2317 joinpath (project_dir, " data" , " TUDELFT_V3_KITE" , " literature_results" ," CFD_RANS_Rey_5e5_Poland2025_alpha_sweep_beta_0_NoStruts.csv" ),
2418 joinpath (project_dir, " data" , " TUDELFT_V3_KITE" , " literature_results" ," CFD_RANS_Rey_10e5_Poland2025_alpha_sweep_beta_0.csv" ),
@@ -37,7 +31,7 @@ labels= [
3731settings = vs (" TUDELFT_V3_KITE/vsm_settings.yaml" )
3832
3933# Create wing, body_aero, and solver objects using settings
40- wing = YamlWing (yaml_geometry_path ;
34+ wing = YamlWing (settings . wings[ 1 ] . yaml_path ;
4135 n_panels= settings. wings[1 ]. n_panels,
4236 n_groups= settings. wings[1 ]. n_groups,
4337 spanwise_distribution= settings. wings[1 ]. spanwise_panel_distribution
@@ -51,6 +45,19 @@ solver = Solver(body_aero;
5145 relaxation_factor= settings. solver_settings. relaxation_factor,
5246 core_radius_fraction= settings. solver_settings. core_radius_fraction,
5347)
48+ # Set flight conditions
49+ α = deg2rad (settings. condition. alpha)
50+ β = deg2rad (settings. condition. beta)
51+ va = settings. condition. wind_speed * [
52+ cos (α)* cos (β), # X_b (forward)
53+ sin (β), # Y_b (right)
54+ sin (α)* cos (β) # Z_b (down)
55+ ]
56+ set_va! (body_aero, va)
57+ # Run the solver
58+ results = VortexStepMethod. solve (solver, body_aero; log= true )
59+
60+
5461
5562# Using plotting modules, to create more comprehensive plots
5663PLOT = true
@@ -76,16 +83,6 @@ PLOT && plot_polars(
7683
7784
7885# Plotting geometry
79- # --- Set apparent wind vector in body axes ---
80- α = deg2rad (angle_of_attack_deg)
81- β = deg2rad (sideslip_deg)
82- va = wind_speed * [
83- cos (α)* cos (β), # X_b (forward)
84- sin (β), # Y_b (right)
85- sin (α)* cos (β) # Z_b (down)
86- ]
87- set_va! (body_aero, va)
88-
8986results = VortexStepMethod. solve (solver, body_aero; log= true )
9087PLOT && plot_geometry (
9188 body_aero,
0 commit comments