https://github.com/junzis/openap-polymer
Super fast Polynomial Model for flight Emission Research
https://github.com/junzis/openap-polymer
Last synced: 2 months ago
JSON representation
Super fast Polynomial Model for flight Emission Research
- Host: GitHub
- URL: https://github.com/junzis/openap-polymer
- Owner: junzis
- License: lgpl-3.0
- Created: 2023-07-19T22:18:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T14:41:49.000Z (12 months ago)
- Last Synced: 2025-03-24T08:11:22.791Z (3 months ago)
- Language: Python
- Size: 400 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Super fast *Poly*nomial *M*odel for Flight *E*mission *R*esearch
This is the simplest aircraft emission model that gives you fuel and co2 estimations based on the aircraft type, distance, and takeoff mass.
This reduced-order aircraft emission model is based on [OpenAP](https://openap.dev).
## Quick example
```python
from openap import polymerflight = polymer.Flight("A320")
flight.fuel(distance=2000, mass=65000) # in km and kg
flight.co2(distance=2000, mass=65000)# or even simpler
flight.fuel(distance=2000)
flight.co2(distance=2000)
```Visualize the actual model
```python
from openap import polymerflight = polymer.Flight("A320")
flight.plot()
```
## Install
`openap.polymer` uses `openap.top` for generating flights with varying flight distances to construct a simplified fuel and emission calculation model.
1. Create a new conda environment (`openap-env`), which avoids messing up the base conda environment:
```sh
conda create -n openap-env python=3.10 -c conda-forge
```
2. Use the `openap-env` environment```sh
conda activate openap-env
```
3. Install dependent libraries:The most recent version of `openap` and `openap-top`:
```sh
pip install --upgrade git+https://github.com/junzis/openap
pip install --upgrade git+https://github.com/junzis/openap-top
```4. Install `openap.polymer`
```sh
pip install --upgrade git+https://github.com/junzis/openap-polymer
```