Skip to content

Commit a58aaba

Browse files
committed
Define enum PanelDistribution
1 parent 58697ec commit a58aaba

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

data/vsm_settings.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
Model:
22
VSM: Vortex Step Method
33
LLT: Lifting Line Theory
4+
5+
PanelDistribution:
6+
LINEAR: Linear distribution
7+
COSINE: Cosine distribution
8+
COSINE_VAN_GARREL: van Garrel cosine distribution
9+
SPLIT_PROVIDED: Split provided sections
10+
UNCHANGED: Keep original sections
11+
412
wings:
513
- name: main_wing
614
n_panels: 40
715
n_groups: 40
8-
spanwise_panel_distribution: "LINEAR"
16+
spanwise_panel_distribution: LINEAR
917
spanwise_direction: [0.0, 1.0, 0.0]
1018
remove_nan: true
1119
- name: tail

src/settings.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ data = YAML.load_file(joinpath("data", filename))
55
name::String = "main_wing"
66
n_panels::Int64 = 40
77
n_groups::Int64 = 40
8-
spanwise_panel_distribution::String = "LINEAR"
8+
spanwise_panel_distribution::PanelDistribution = LINEAR
99
spanwise_direction::MVec3 = [0.0, 1.0, 0.0]
1010
remove_nan = true
1111
end

0 commit comments

Comments
 (0)