Skip to content

Commit 545a16c

Browse files
committed
WingSettings defined correctly
1 parent c717592 commit 545a16c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

data/vsm_settings.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
wings:
22
- name: main_wing
33
n_panels: 40
4+
n_groups: 40
45
spanwise_panel_distribution: "LINEAR"
56
spanwise_direction: [0.0, 1.0, 0.0]
7+
remove_nan: true
68
- name: tail
79
n_panels: 20
810
solver_settings:

mwes/mwe_04.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
# read the vsm_settings.yaml file
22

33
import YAML
4-
using Parameters
4+
using Parameters, StaticArrays
5+
6+
const MVec3 = MVector{3, Float64}
57

68
filename = "vsm_settings.yaml"
79
data = YAML.load_file(joinpath("data", filename))
810

911
@with_kw mutable struct WingSettings
1012
name::String = "main_wing"
11-
n_groups::Int64 = 40
1213
n_panels::Int64 = 40
14+
n_groups::Int64 = 40
1315
spanwise_panel_distribution::String = "LINEAR"
16+
spanwise_direction::MVec3 = [0.0, 1.0, 0.0]
1417
end
1518

1619
@with_kw mutable struct SolverSettings

0 commit comments

Comments
 (0)