@@ -227,24 +227,25 @@ function calculate_panel_properties(section_list::Vector{Section}, n_panels::Int
227227end
228228
229229"""
230- calculate_AIC_matrices!(body_aero::BodyAerodynamics, model::Symbol ,
230+ calculate_AIC_matrices!(body_aero::BodyAerodynamics, model::Model ,
231231 core_radius_fraction::Float64,
232232 va_norm_array::Vector{Float64},
233233 va_unit_array::Matrix{Float64})
234234
235235Calculate Aerodynamic Influence Coefficient matrices.
236236
237+ See also: [BodyAerodynamics](@ref), [Model](@ref)
238+
237239Returns:
238- Tuple of (AIC_x, AIC_y, AIC_z) matrices
240+ Tuple of (` AIC_x`, ` AIC_y`, ` AIC_z` ) matrices
239241"""
240- function calculate_AIC_matrices! (body_aero:: BodyAerodynamics , model:: Symbol ,
242+ function calculate_AIC_matrices! (body_aero:: BodyAerodynamics , model:: Model ,
241243 core_radius_fraction:: Float64 ,
242244 va_norm_array:: Vector{Float64} ,
243245 va_unit_array:: Matrix{Float64} )
244- model in [:VSM , :LLT ] || throw (ArgumentError (" Model must be VSM or LLT" ))
245246 # Determine evaluation point based on model
246- evaluation_point = model === : VSM ? :control_point : :aero_center
247- evaluation_point_on_bound = model === : LLT
247+ evaluation_point = model === VSM ? :control_point : :aero_center
248+ evaluation_point_on_bound = model === LLT
248249
249250 # Initialize AIC matrices
250251 velocity_induced, tempvel, va_unit, U_2D = zeros (MVec3), zeros (MVec3), zeros (MVec3), zeros (MVec3)
@@ -271,7 +272,7 @@ function calculate_AIC_matrices!(body_aero::BodyAerodynamics, model::Symbol,
271272 body_aero. AIC[:, icp, jring] .= velocity_induced
272273
273274 # Subtract 2D induced velocity for VSM
274- if icp == jring && model === : VSM
275+ if icp == jring && model === VSM
275276 calculate_velocity_induced_bound_2D! (U_2D, body_aero. panels[jring], ep, body_aero. work_vectors)
276277 body_aero. AIC[:, icp, jring] .- = U_2D
277278 end
@@ -376,7 +377,7 @@ function update_effective_angle_of_attack_if_VSM(body_aero::BodyAerodynamics,
376377
377378 # Calculate AIC matrices at aerodynamic center using LLT method
378379 calculate_AIC_matrices! (
379- body_aero, : LLT , core_radius_fraction, va_norm_array, va_unit_array
380+ body_aero, LLT, core_radius_fraction, va_norm_array, va_unit_array
380381 )
381382 AIC_x, AIC_y, AIC_z = @views body_aero. AIC[1 , :, :], body_aero. AIC[2 , :, :], body_aero. AIC[3 , :, :]
382383
399400
400401"""
401402 calculate_results(body_aero::BodyAerodynamics, gamma_new::Vector{Float64},
402- density::Float64, aerodynamic_model_type::Symbol ,
403+ density::Float64, aerodynamic_model_type::Model ,
403404 core_radius_fraction::Float64, mu::Float64,
404405 alpha_array::Vector{Float64}, v_a_array::Vector{Float64},
405406 chord_array::Vector{Float64}, x_airf_array::Matrix{Float64},
@@ -418,7 +419,7 @@ function calculate_results(
418419 gamma_new:: Vector{Float64} ,
419420 reference_point:: AbstractVector ,
420421 density:: Float64 ,
421- aerodynamic_model_type:: Symbol ,
422+ aerodynamic_model_type:: Model ,
422423 core_radius_fraction:: Float64 ,
423424 mu:: Float64 ,
424425 alpha_array:: Vector{Float64} ,
@@ -454,7 +455,7 @@ function calculate_results(
454455 moment = reshape ((cm_array .* 0.5 .* density .* v_a_array.^ 2 .* chord_array), :, 1 )
455456
456457 # Calculate alpha corrections based on model type
457- alpha_corrected = if aerodynamic_model_type === : VSM
458+ alpha_corrected = if aerodynamic_model_type === VSM
458459 update_effective_angle_of_attack_if_VSM (
459460 body_aero,
460461 gamma_new,
@@ -465,7 +466,7 @@ function calculate_results(
465466 va_norm_array,
466467 va_unit_array
467468 )
468- elseif aerodynamic_model_type === : LLT
469+ elseif aerodynamic_model_type === LLT
469470 alpha_array
470471 else
471472 throw (ArgumentError (" Unknown aerodynamic model type, should be LLT or VSM" ))
0 commit comments