@@ -14,7 +14,7 @@ Struct for storing the solution of the [solve!](@ref) function. Must contain all
1414- moment_coefficient_distribution::Vector{Float64}: Pitching moment coefficient around the spanwise vector of each panel. [-]
1515- solver_status::SolverStatus: enum, see [SolverStatus](@ref)
1616"""
17- mutable struct VSMSolution
17+ mutable struct VSMSolution{P}
1818 gamma_distribution:: Union{Nothing, Vector{Float64}}
1919 aero_force:: MVec3
2020 aero_moments:: MVec3
@@ -25,8 +25,8 @@ mutable struct VSMSolution
2525 solver_status:: SolverStatus
2626end
2727
28- function VSMSolution ()
29- VSMSolution (nothing , zeros (MVec3), zeros (MVec3), zeros (MVec3), zeros (MVec3), zeros (3 ), zeros (3 ), FAILURE)
28+ function VSMSolution (P )
29+ VSMSolution {P} (nothing , zeros (MVec3), zeros (MVec3), zeros (MVec3), zeros (MVec3), zeros (3 ), zeros (3 ), FAILURE)
3030end
3131
3232"""
@@ -57,7 +57,7 @@ Main solver structure for the Vortex Step Method.See also: [solve](@ref)
5757## Solution
5858sol::VSMSolution = VSMSolution(): The result of calling [solve!](@ref)
5959"""
60- @with_kw struct Solver
60+ @with_kw struct Solver{P}
6161 # General settings
6262 aerodynamic_model_type:: Model = VSM
6363 density:: Float64 = 1.225
@@ -77,7 +77,7 @@ sol::VSMSolution = VSMSolution(): The result of calling [solve!](@ref)
7777 is_only_f_and_gamma_output:: Bool = false
7878
7979 # Solution
80- sol:: VSMSolution = VSMSolution ()
80+ sol:: VSMSolution{P} = VSMSolution (P )
8181end
8282
8383"""
0 commit comments