Skip to content

Commit 163d99d

Browse files
committed
Cleanup
1 parent e104242 commit 163d99d

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

src/body_aerodynamics.jl

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -441,27 +441,6 @@ function update_effective_angle_of_attack!(alpha_corrected,
441441

442442
# Calculate AIC matrices (keep existing optimized view)
443443
calculate_AIC_matrices!(body_aero, LLT, core_radius_fraction, va_norm_array, va_unit_array)
444-
# AIC_x, AIC_y, AIC_z = @views body_aero.AIC[1, :, :], body_aero.AIC[2, :, :], body_aero.AIC[3, :, :]
445-
446-
# # Preallocate and calculate induced velocity directly
447-
# # TODO rewrite
448-
# induced_velocity = cache_body[1][va_array]
449-
# induced_velocity[:, 1] .= AIC_x * gamma # 304 bytes
450-
# induced_velocity[:, 2] .= AIC_y * gamma
451-
# induced_velocity[:, 3] .= AIC_z * gamma
452-
453-
# # Get views of AIC matrices without copying
454-
# AIC_views = (@view(body_aero.AIC[1, :, :]),
455-
# @view(body_aero.AIC[2, :, :]),
456-
# @view(body_aero.AIC[3, :, :]))
457-
458-
# # Preallocate induced velocity array
459-
# induced_velocity = cache_body[1][va_array]
460-
461-
# # Calculate induced velocity components in-place
462-
# for (j, aic) in enumerate(AIC_views) # 384 allocated
463-
# mul!(@view(induced_velocity[:, j]), aic, gamma)
464-
# end
465444

466445
# Get dimensions from existing data
467446
n_rows = size(body_aero.AIC, 2)

test/bench.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using BenchmarkTools
77
using StaticArrays
88
using VortexStepMethod
99
using VortexStepMethod: calculate_AIC_matrices!, gamma_loop!, calculate_results,
10-
update_effective_angle_of_attack_if_VSM, calculate_projected_area,
10+
update_effective_angle_of_attack!, calculate_projected_area,
1111
calculate_cl, calculate_cd_cm,
1212
calculate_velocity_induced_single_ring_semiinfinite!,
1313
calculate_velocity_induced_bound_2D!,

0 commit comments

Comments
 (0)