Skip to content

Commit

Permalink
use rel_compr_stiffness and rel_damping from yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Apr 21, 2024
1 parent cb6d581 commit bd96eb8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### KiteModels v0.5.12 - 2024-04-14
#### Changed
- use `rel_compr_stiffness` and `rel_damping` from settings.yaml

### KiteModels v0.5.11 - 2024-04-14
#### Changed
- update KiteUtils to v0.6.7
Expand Down
2 changes: 2 additions & 0 deletions data/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ bridle:
d_line: 2.5 # bridle line diameter [mm]
l_bridle: 33.4 # sum of the lengths of the bridle lines [m]
h_bridle: 4.9 # height of bridle [m]
rel_compr_stiffness: 0.25 # relative compression stiffness of the kite springs
rel_damping: 6.0 # relative damping of the kite spring (relative to main tether)

kcu:
kcu_mass: 8.4 # mass of the kite control unit [kg]
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ KiteUtils = "90980105-b163-44e5-ba9f-8b1c83bb0533"

[compat]
julia = "1.9, 1.10"
KiteUtils = "0.6"
KiteUtils = "0.6.10"
KitePodModels = "0.3"
Documenter = "0.27"
6 changes: 3 additions & 3 deletions src/KPS4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ The result is stored in the array s.forces.
norm1 = norm(segment)
unit_vector = segment / norm1

k1 = 0.25 * k # compression stiffness kite segments
k2 = 0.1 * k # compression stiffness tether segments
c1 = 6.0 * c # damping kite segments
k1 = s.set.rel_compr_stiffness * k # compression stiffness kite springs
k2 = 0.1 * k # compression stiffness tether springs
c1 = s.set.rel_damping * c # damping kite springs
spring_vel = unit_vector rel_vel
if (norm1 - l_0) > 0.0
if i > segments # kite springs
Expand Down

0 comments on commit bd96eb8

Please sign in to comment.