Skip to content

Commit e1aee13

Browse files
committed
replace plot with PLOT
1 parent bc8f132 commit e1aee13

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/ram_air_kite.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ end
1010
using CSV
1111
using DataFrames
1212

13-
plot = true
13+
PLOT = true
1414

1515
# Create wing geometry
1616
wing = KiteWing("data/ram_air_kite_body.obj", "data/ram_air_kite_foil.dat")
@@ -36,7 +36,7 @@ vel_app = [
3636
set_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

5454
body_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
[

examples/rectangular_wing.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using LinearAlgebra
22
using ControlPlots
33
using VortexStepMethod
44

5-
plot = true
5+
PLOT = true
66

77
# Step 1: Define wing parameters
88
n_panels = 20 # Number of panels
@@ -53,7 +53,7 @@ println("CD = $(round(results_vsm["cd"], digits=4))")
5353
println("Projected area = $(round(results_vsm["projected_area"], digits=4))")
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
6666
y_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
7676
angle_range = range(0, 20, 20)
77-
plot && plot_polars(
77+
PLOT && plot_polars(
7878
[llt_solver, vsm_solver],
7979
[wa, wa],
8080
["LLT", "VSM"];

0 commit comments

Comments
 (0)