Software to assist in mechanics calculations, and simulations of high altitude baloon payloads.
We don't have a PyPI package yet! For now use Poetry.
Configuration management is handled by Poetry.
- Please install Poetry to use the HAB-toolbox.
- Clone this repository:
git clone [email protected]:Brickworks/HAB-toolbox.git
- Install the package and its dependencies with Poetry:
poetry install
# run the simulation defined by sim_config.json
poetry run hab-toolbox simple-ascent sim_config.json
# run the model with verbose output, plot and save results to a file
poetry run hab-toolbox -v simple-ascent sim_config.json -o test.csv -p
A set of datasheets for Kaymont high altitude balloons have been transposed into JSON format.
The HAB ascent model uses the 1976 US Standard Atmosphere (COESA) atmosphere model from the Ambiance Python package to simulate the vertical ascent of a HAB.
See also: Nucleus/1D Atmospheric Flight Model
In addition to helpful development tools, this repository contains
experiments that were done to aid in HAB systems design. You can find
these experiments in the etc
directory.
The kinematics model attempts to emulate the motion of the HAB bus from the reference point of the balloon. Information from this model can be used to estimate the performance of future payloads such as active stabilization.
For the first implementation of the kinematics model a spherical pendulum was used to simulate the box. A spherical pendulum was selected as it is a simple demonstrator of the motion of the HAB from the reference frame of the balloon.
The method used for solving the equation of motion was the Runge Kutta method. A home brewed function was created for this toolbox (instead of using the ode45) function for educational purposes.
The method for determining the equations of motion for a spherical pendulum was the Lagrange equations of motion.
Lagrangian
The same 1D atmospheric flight model was implemented in Simulink and integrated with a PID control system to simulate an open-loop altitude control system that bleeds gas from the balloon and drops ballast to maintain a set point altitude.