File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1010using CSV
1111using DataFrames
1212
13- plot = true
13+ PLOT = true
1414
1515# Create wing geometry
1616wing = KiteWing (" data/ram_air_kite_body.obj" , " data/ram_air_kite_foil.dat" )
@@ -36,7 +36,7 @@ vel_app = [
3636set_va! (body_aero, vel_app)
3737
3838# Plotting geometry
39- plot && plot_geometry (
39+ PLOT && plot_geometry (
4040 body_aero,
4141 " " ;
4242 data_type= " .svg" ,
@@ -53,7 +53,7 @@ results = solve(vsm_solver, body_aero)
5353
5454body_y_coordinates = [panel. aero_center[2 ] for panel in body_aero. panels]
5555
56- plot && plot_distribution (
56+ PLOT && plot_distribution (
5757 [body_y_coordinates],
5858 [results],
5959 [" VSM" ];
@@ -63,7 +63,7 @@ plot && plot_distribution(
6363 is_show= true
6464)
6565
66- plot && plot_polars (
66+ PLOT && plot_polars (
6767 [vsm_solver],
6868 [body_aero],
6969 [
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ using LinearAlgebra
22using ControlPlots
33using VortexStepMethod
44
5- plot = true
5+ PLOT = true
66
77# Step 1: Define wing parameters
88n_panels = 20 # Number of panels
@@ -53,7 +53,7 @@ println("CD = $(round(results_vsm["cd"], digits=4))")
5353println (" Projected area = $(round (results_vsm[" projected_area" ], digits= 4 )) m²" )
5454
5555# Step 6: Plot geometry
56- plot && plot_geometry (
56+ PLOT && plot_geometry (
5757 wa,
5858 " Rectangular_wing_geometry" ;
5959 data_type= " .pdf" ,
@@ -65,7 +65,7 @@ plot && plot_geometry(
6565# Step 7: Plot spanwise distributions
6666y_coordinates = [panel. aero_center[2 ] for panel in wa. panels]
6767
68- plot && plot_distribution (
68+ PLOT && plot_distribution (
6969 [y_coordinates, y_coordinates],
7070 [results_vsm, results_llt],
7171 [" VSM" , " LLT" ],
@@ -74,7 +74,7 @@ plot && plot_distribution(
7474
7575# Step 8: Plot polar curves
7676angle_range = range (0 , 20 , 20 )
77- plot && plot_polars (
77+ PLOT && plot_polars (
7878 [llt_solver, vsm_solver],
7979 [wa, wa],
8080 [" LLT" , " VSM" ];
You can’t perform that action at this time.
0 commit comments