Skip to content

Commit 7287f32

Browse files
committed
Remove unused P
1 parent d41a39e commit 7287f32

File tree

6 files changed

+1
-9
lines changed

6 files changed

+1
-9
lines changed

examples/bench.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ vel_app = [cos(alpha), 0.0, sin(alpha)] .* v_a
3939
set_va!(body_aero, vel_app)
4040

4141
# Step 4: Initialize solvers for both LLT and VSM methods
42-
P = length(body_aero.panels)
4342
llt_solver = Solver(body_aero; aerodynamic_model_type=LLT)
4443
vsm_solver = Solver(body_aero; aerodynamic_model_type=VSM)
4544

examples/rectangular_wing.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ vel_app = [cos(alpha), 0.0, sin(alpha)] .* v_a
3535
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(body_aero.panels)
3938
llt_solver = Solver(body_aero; aerodynamic_model_type=LLT)
4039
vsm_solver = Solver(body_aero; aerodynamic_model_type=VSM)
4140

examples/stall_model.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ end
4545
body_aero = BodyAerodynamics([CAD_wing])
4646

4747
# Create solvers
48-
P = length(body_aero.panels)
4948
vsm_solver = Solver(body_aero;
5049
aerodynamic_model_type=VSM,
5150
is_with_artificial_damping=false

test/bench.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ using LinearAlgebra
6767
set_va!(body_aero, vel_app)
6868

6969
# Initialize solvers for both LLT and VSM methods
70-
P = length(body_aero.panels)
7170
solver = Solver(body_aero)
7271
nonlin_solver = Solver(body_aero; solver_type=NONLIN)
7372

@@ -117,8 +116,7 @@ using LinearAlgebra
117116
z_airf_array[i, :] .= panel.z_airf
118117
end
119118

120-
n_angles = 5
121-
alphas = collect(range(-deg2rad(10), deg2rad(10), n_angles))
119+
alphas = collect(-20:30)
122120
cls = [2π * α for α in alphas]
123121
cds = [0.01 + 0.05 * α^2 for α in alphas]
124122
cms = [-0.1 * α for α in alphas]
@@ -138,7 +136,6 @@ using LinearAlgebra
138136
aero_data)
139137
body_aero = BodyAerodynamics([wing])
140138

141-
P = length(body_aero.panels)
142139
solver = Solver(body_aero;
143140
aerodynamic_model_type=model
144141
)

test/test_body_aerodynamics.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ end
308308
set_va!(body_aero, v_a)
309309

310310
# Run analysis
311-
P = length(body_aero.panels)
312311
loop_solver = Solver(body_aero;
313312
aerodynamic_model_type=model,
314313
core_radius_fraction=core_radius_fraction,

test/test_plotting.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ plt.ioff()
7171
rm("/tmp/Rectangular_wing_geometry_top_view.pdf")
7272

7373
# Step 5: Initialize the solvers
74-
P = length(body_aero.panels)
7574
vsm_solver = Solver(body_aero; aerodynamic_model_type=VSM)
7675
llt_solver = Solver(body_aero; aerodynamic_model_type=LLT)
7776

0 commit comments

Comments
 (0)