Skip to content

Commit 892a241

Browse files
committed
Complete struct SolverSettings
1 parent ace97c0 commit 892a241

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/settings.jl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,21 @@
88
end
99

1010
@with_kw mutable struct SolverSettings
11+
n_panels::Int64 = 40
12+
n_groups::Int64 = 40
1113
aerodynamic_model_type::Model = VSM
12-
max_iterations::Int64 = 1000
14+
density::Float64 = 1.225 # air density [kg/m³]
15+
max_iterations::Int64 = 1500
16+
rtol::Float64 = 1e-5 # relative error [-]
17+
tol_reference_error::Float64 = 0.001
18+
relaxation_factor::Float64 = 0.03 # relaxation factor for convergence
19+
artificial_damping::Bool = false # whether to apply artificial damping
20+
k2::Float64 = 0.1 # artificial damping parameter
21+
k4::Float64 = 0.0 # artificial damping parameter
22+
type_initial_gamma_distribution::InitialGammaDistribution = ELLIPTIC # see: [InitialGammaDistribution](@ref)
23+
core_radius_fraction::Float64 = 1e-20
24+
mu::Float64 = 1.81e-5 # dynamic viscosity [N·s/m²]
25+
calc_only_f_and_gamma::Bool=false # whether to only output f and gamma
1326
end
1427

1528
@Base.kwdef mutable struct VSMSettings

0 commit comments

Comments
 (0)