@@ -28,22 +28,22 @@ add_section!(wing,
2828 INVISCID)
2929
3030# Step 3: Initialize aerodynamics
31- wa = BodyAerodynamics ([wing])
31+ body_aero = BodyAerodynamics ([wing])
3232
3333# Set inflow conditions
3434vel_app = [cos (alpha), 0.0 , sin (alpha)] .* v_a
35- set_va! (wa , vel_app, [0 , 0 , 0.1 ])
35+ set_va! (body_aero , vel_app, [0 , 0 , 0.1 ])
3636
3737# Step 4: Initialize solvers for both LLT and VSM methods
38- P = length (wa . panels)
39- llt_solver = Solver {P} ( aerodynamic_model_type= LLT)
40- vsm_solver = Solver {P} ( aerodynamic_model_type= VSM)
38+ P = length (body_aero . panels)
39+ llt_solver = Solver (body_aero; aerodynamic_model_type= LLT)
40+ vsm_solver = Solver (body_aero; aerodynamic_model_type= VSM)
4141
4242# Step 5: Solve using both methods
43- results_llt = solve (llt_solver, wa )
44- @time results_llt = solve (llt_solver, wa )
45- results_vsm = solve (vsm_solver, wa )
46- @time results_vsm = solve (vsm_solver, wa )
43+ results_llt = solve (llt_solver, body_aero )
44+ @time results_llt = solve (llt_solver, body_aero )
45+ results_vsm = solve (vsm_solver, body_aero )
46+ @time results_vsm = solve (vsm_solver, body_aero )
4747
4848# Print results comparison
4949println (" \n Lifting Line Theory Results:" )
@@ -56,7 +56,7 @@ println("Projected area = $(round(results_vsm["projected_area"], digits=4)) m²"
5656
5757# Step 6: Plot geometry
5858PLOT && plot_geometry (
59- wa ,
59+ body_aero ,
6060 " Rectangular_wing_geometry" ;
6161 data_type= " .pdf" ,
6262 save_path= " ." ,
@@ -66,7 +66,7 @@ PLOT && plot_geometry(
6666)
6767
6868# Step 7: Plot spanwise distributions
69- y_coordinates = [panel. aero_center[2 ] for panel in wa . panels]
69+ y_coordinates = [panel. aero_center[2 ] for panel in body_aero . panels]
7070
7171PLOT && plot_distribution (
7272 [y_coordinates, y_coordinates],
@@ -80,7 +80,7 @@ PLOT && plot_distribution(
8080angle_range = range (0 , 20 , 20 )
8181PLOT && plot_polars (
8282 [llt_solver, vsm_solver],
83- [wa, wa ],
83+ [body_aero, body_aero ],
8484 [" LLT" , " VSM" ];
8585 angle_range,
8686 angle_type= " angle_of_attack" ,
0 commit comments