On Linux, it is suggested to first install the plotting Library Matplotlib, for example on Ubuntu with this command:
sudo apt install python3-matplotlibThis is not needed on Windows.
It is suggested that you create a folder for your kite simulators.
mkdir kitesims
cd kitesims
juliaup add 1.11
juliaup default 1.11
julia --startup-file=no -e "using Pkg; Pkg.add(\"TestEnv\")"
julia --project=.You can copy-and-paste these commands into your terminal window. On windows, the key can be used, on Linux .
On the Julia prompt install the package:
using Pkg
pkg"add KiteSimulators"
pkg"add ControlPlots"
pkg"add Timers"
using KiteSimulators
init_project()
exit()- Connect your laptop to a power socket before installing these packages.
- If you get an error and using Windows, you might have to download and install https://aka.ms/vs/17/release/vc_redist.x64.exe first and try again.
- If you still get errors, delete any old version with
rm -rf ~/.julia/packages
rm -rf ~/.julia/compiled/v1.11`
rm *.tomland try again.
The commands above create the following directory structure:
It is suggested that you now create a Julia image that contains a compiled version of all the packages. Before doing that, close all other programs to make sure you have enough RAM (16GB RAM or 8GB + 8GB swap file is needed).
On the command line, enter for Linux:
cd bin
./create_sys_imageand for Windows, using the "Windows command prompt":
cd bin
create_sys_imageThis will take 10 to 30 minutes but is only required once.
You can now run the KiteApp with the command:
autopilot
from the bin folder. Alternatively, you can start it with a double-click on the file autopilot.bat
in the bin folder.
On Linux, you need to type:
./autopilot
To execute Julia on Linux with the commands:
cd ..
./bin/run_juliaand on Windows:
bin\run_juliaTo quit the Julia REPL, type <CTRL><d> .
Continue with README
