Skip to content

OpenSourceAWE/KiteModels.jl

Repository files navigation

KiteModels

Stable Dev CI Coverage DOI Aqua QA

Kite power system models, consisting of tether and kite

The models have the following subcomponents, implemented in separate packages:

This package is part of Julia Kite Power Tools, which consists of the following packages:

News

Work in progress

  • a new 5-point model based on ModelingToolkit (MTK) is in development;
    this will allow to create linearized models around any operation point and to do analysis in the frequency domain.

April 2025

  • a new model SymbolicAWEModel was contributed, based on the package VortexStepMethod

November 2024

  • the four point kite model KPS4 was extended to include aerodynamic damping of pitch oscillations; for this purpose, the parameters cmq and cord_length must be defined in settings.yaml
  • the four point kite model KPS4 was extended to include the impact of the deformation of the kite on the turn rate; for this, the parameter smc must be defined in settings.yaml

October 2024

  • the orientation is now represented with respect to the NED reference frame
  • azimuth is now calculated in wind reference frame. This allows it to handle changes of the wind direction during flight correctly.
  • many unit tests added by a new contributor
  • many tests for model verification added; they can be accessed using the menu2.jl script
  • the documentation was improved

What to install

If you want to run simulations and see the results in 3D, please install the meta package KiteSimulators . If you are not interested in 3D visualization or control you can just install this package.

Installation

If possible, install Julia 1.11, if you haven't already. Julia 1.10 is still supported, but the performance is worse. On Linux, make sure that Python3 and Matplotlib are installed:

sudo apt install python3-matplotlib

Make sure that ControlPlots.jl works as explained here.

Before installing this software it is suggested to create a new project, for example like this:

mkdir test
cd test
julia --project="."

Then add KiteModels from Julia's package manager, by typing:

using Pkg
pkg"add KiteModels"

at the Julia prompt. You can run the unit tests with the command (careful, can take 60 min):

pkg"test KiteModels"

You can copy the examples to your project with:

using KiteModels
KiteModels.install_examples()

This also adds the extra packages, needed for the examples to the project. Furthermore, it creates a folder data with some example input files. You can now run the examples with the command:

include("examples/menu.jl")

You can also run the ram-air-kite example like this:

include("examples/ram_air_kite.jl")

This might take two minutes. To speed up the model initialization, you can create a system image:

cd bin
./create_sys_image

If you now launch Julia with ./bin/run_julia and then run the above example again, it should be about three times faster.

Advanced installation

If you intend to modify or extend the code, it is suggested to fork the KiteModels.jl repository and to check out your fork:

git clone https://github.com/USERNAME/KiteModels.jl

where USERNAME is your github username. Then compile a system image:

cd KiteModels.jl/bin
./create_sys_image

If you now launch julia with:

cd ..
./bin/run_julia

You can run the examples with:

menu()

You can also run the ram-air-kite example like this:

include("examples/ram_air_kite.jl")

One point model

This model assumes the kite to be a point mass. This is sufficient to model the aerodynamic forces, but the dynamic concerning the turning action of the kite is not realistic. When combined with a controller for the turn rate it can be used to simulate a pumping kite power system with medium accuracy.

Four point model

This model assumes the kite to consist of four-point masses with aerodynamic forces acting on points B, C and D. It reacts much more realistically than the one-point model because it has rotational inertia in every axis.

Ram air kite model

This model represents the kite as a deforming rigid body, with orientation governed by quaternion dynamics. Aerodynamics are computed using the Vortex Step Method. The kite is controlled from the ground via four tethers.

Tether

The tether is modeled as point masses, connected by spring-damper elements. Aerodynamic drag is modeled realistically. When reeling out or in the unstretched length of the spring-damper elements is varied. This does not translate into physics directly, but it avoids adding point masses at run-time, which would be even worse because it would introduce discontinuities. When using Dyneema or similar high-strength materials for the tether the resulting system is very stiff which is a challenge for the solver.

Further reading

The models KPS3 and KPS4 are described in detail in Dynamic Model of a Pumping Kite Power System.

Replaying log files

If you want to replay old flight log files in 2D and 3D to understand and explain better how kite power systems work, please have a look at KiteViewer . How new log files can be created and replayed is explained in the documentation of KiteSimulators .

License

This project is licensed under the MIT and the MPL-2.0 License. The documentation is licensed under the CC-BY-4.0 License. Please see the below Copyright notice in association with the licenses that can be found in the file LICENSE in this folder.

Copyright notice

Technische Universiteit Delft hereby disclaims all copyright interest in the package “KiteModels.jl” (models for airborne wind energy systems) written by the Author(s).

Prof.dr. H.G.C. (Henri) Werij, Dean of Aerospace Engineering, Technische Universiteit Delft.

See the copyright notices in the source files, and the list of authors in AUTHORS.md.

Donations

If you like this software, please consider donating to Flood in Kenya .

See also

Documentation Stable Version --- Development Version

About

Kite and tether models for the simulation of kite power systems

Topics

Resources

License

MIT, MPL-2.0 licenses found

Licenses found

MIT
LICENSE-MIT
MPL-2.0
LICENSE-MPLtwo

Stars

Watchers

Forks

Sponsor this project

 

Contributors 4

  •  
  •  
  •  
  •