KiteModels

Documentation for the package KiteModels.

The model has the following subcomponents, implement in separate packages:

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

Julia Kite Power Tools

What to install

If you want to run simulations and see the results in 3D, please install the meta package KiteSimulators which contains all other packages. If you are not interested in 3D visualization or control you can just install this package. When you have installed the package KiteSimulators, use the command using KiteSimulators instead of using KiteModels when this is mentioned in the documentation.

Installation

Install Julia 1.10 or later, if you haven't already. On Linux, make sure that Python3 and Matplotlib are installed:

sudo apt install python3-matplotlib

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:

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")

News

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

August 2024

  • a new kite model, KPS3_3L was contributed. It uses three lines to the ground and three winches for steering a ram-air foil kite.
  • a first ModelingToolkit based model was added, which shows a much better performance and easier to read code
  • a new KCU model was added which assumes a linear relationship between the depower settings and the depower angle and thus is easier to configure than the original model.
  • the drag of the KCU is now taken into account
  • the drag of the bridle is now taken into account correctly, also if the real kite has more bridle lines than the model
  • the function to find the initial state is now much more robust

July 2024

  • a new groundstation / winch type is now supported, the TorqueControlledMachine. It can be configured in the section winch of the settings.yaml file. It uses a set torque as input.
  • a Python interface is now provided, see: pykitemodels

April 2024

  • added support for the native Julia DAE solver DFBDF. It is much more accurate and faster than the IDA solver that was used before.

Provides

The type AbstractKiteModel with the implementation KPS3, KPS4 and KPS4_3L, representing the one point, the four point kite model and the four point - three lines model, together with the high level simulation interface consisting of the functions init_sim! and next_step!. Other kite models can be added inside or outside of this package by implementing the non-generic methods required for an AbstractKiteModel.

Additional functions to provide inputs and outputs of the model on each time step. In particular the constructor SysState can be called once per time step to create a SysState struct for logging or for displaying the state in a viewer. Per time step the residual! function is called as many times as needed to find the solution at the end of the time step. The formulas are based on basic physics and aerodynamics and can be quite simple because a differential algebraic notation is used.

Four point kite power system model

Reference frames and control inputs

  • a positive set_torque will accelerate the reel-out, a negative set_torque counteract the pulling force of the kite. The unit is [N/m] as seen at the motor/generator axis.
  • the depower settings are dimensionless and can be between zero and one. A value equal to $\mathrm{depower\_zero}/100$ from the settings.yaml file means that the kite is fully powered.
  • the heading angle, the direction the nose of the kite is pointing to is positive in clockwise direction when seen from above.
  • the steering input, dimensionless and in the range of -1.0 .. 1.0. A positive steering input causes a positive turn rate (derivative of the heading).

A definition of the reference frames can be found here .

Further reading

The one point and four point kite models are described in detail in Dynamic Model of a Pumping Kite Power System.

See also

Authors: Uwe Fechner (uwe.fechner.msc@gmail.com) and Bart van de Lint