Skip to main content

FAST-OAD logo

FAST-OAD plugin for Regional Transport Aircraft (RTA)

image image License: GPL v3

tests codecov

Introduction

This repository furnishes a FAST-OAD plugin for the design and analysis of Regional Transport Aircraft. The models present in this repository rely on FAST-OAD for execution, see FAST-OAD documentation.

The models are based on the PhD thesis of Vincenzo Palladino. Documentation can be found in his PhD thesis.

This README file explains how to install this repository.

It is assumed that you know how to use Git, Python and FAST-OAD, especially the use of submodels.

User installation

Important notice: The installation of the RTA plugin will activate by default the RTA submodels. Refer to RTA models and submodels for the complete list of activated submodel.

For a FAST-OAD user installation (when FAST-OAD has been installed with pip), the RTA plug-in can be installed in you python environnment using:

pip install fast-oad-rta

or

pip install git+https://github.com/fast-aircraft-design/RTA.git@master

The latter will install the latest RTA version based on github master branch.

If you are using poetry to manage your python environment, the following command will tell poetry to add RTA to your dependencies:

poetry add git+https://github.com/fast-aircraft-design/RTA.git#master

Once installed, the RTA models should become visible to FAST-OAD. Simply run the following command to check that new RTA models are available:

fastoad plugin_info

Tutorials

Tutorials are available in src/rta/notebooks. For a user installation, they can be generated through command line with:

fastoad notebooks rta

For a developer installation, they can be simply accessed using jupyter lab:

jupyter lab

RTA models and submodels

The RTA plug-in provides four new models:

rta.aerodynamics.takeoff
rta.loop.engine_size
rta.propulsion.propeller_sizing
rta.propulsion.turboprop_sizing

And a new propulsion wrapper for turbopropeller:

rta.wrapper.propulsion.ML_TP_L1

The model rta.loop.engine_size requires the simulation of a take-off segment during the mission, which is not activated by default.

When installing this plug-in, the new RTA submodels are activated by default. This means that if you attempt to run a different aircraft configuration (say a single aisle SMR), you need to modify the active submodels accordingly in the configuration file.

The list of active submodels with this plugin is given below:

'service.aerodynamics.CD0.fuselage': 'rta.submodel.aerodynamics.CD0.fuselage',
'service.aerodynamics.CD0.nacelles_pylons': 'rta.submodel.aerodynamics.CD0.nacelles',
'service.aerodynamics.CD0.sum': 'rta.submodel.aerodynamics.CD0.sum',
'service.aerodynamics.CD0.wing': 'rta.submodel.aerodynamics.CD0.wing',
'service.aerodynamics.induced_drag_coefficient': 'rta.submodel.aerodynamics.induced_drag_coefficient.legacy',
'service.geometry.fuselage.basic': 'rta.submodel.geometry.fuselage.basic',
'service.geometry.fuselage.with_cabin_sizing': 'rta.submodel.geometry.fuselage.with_cabin_sizing',
'service.geometry.nacelle_and_pylon': 'rta.submodel.geometry.nacelles',
'service.geometry.wing': 'rta.submodel.geometry.wing',
'service.weight.cg': 'rta.submodel.weight.cg.legacy',
'service.cg.wing.control_surfaces': 'rta.submodel.cg.wing.control_surfaces.legacy',
'service.cg.others': 'rta.submodel.weight.cg.others.legacy',
'service.cg.global': 'rta.submodel.weight.cg.global.legacy',
'service.cg.propulsion': 'rta.submodel.weight.cg.propulsion',
'service.mass.airframe.wing': 'rta.submodel.weight.mass.airframe.wing',
'service.mass.airframe.nacelles': 'rta.submodel.weight.mass.airframe.nacelle',
'service.mass.airframe': 'rta.submodel.weight.mass.airframe.legacy',
'service.mass.propulsion': 'rta.submodel.weight.mass.propulsion.legacy',
'service.mass.systems': 'rta.submodel.weight.mass.system.legacy',
'service.mass.furniture': 'rta.submodel.weight.mass.furniture.legacy',
'service.mass.owe': 'rta.weight.owe.legacy'

Developer installation

This repository is designed to use Poetry (version 2.0.0 or above) for managing the development environment. Instructions below assume you have it already installed. You may adapt them if you don't want to use Poetry.

It is strongly recommended that you install RTA in a dedicated Python environment.

After cloning the repository, launch the installation by typing in your terminal:

poetry install

This will install all defined dependencies in your environment.

Setup pre-commit

Simply run in your terminal:

pre-commit install

Pytest

Pytest is recommended for writing tests. The development environment is set with code coverage tools.

Pytest and its companions are configured in /pyproject.toml file.

It is recommended to have unit tests in tests folders next to tested code. Other kind of tests (integration, non-regression) should be in the /tests folder

Unit tests will be launched with simply:

pytest

Other tests will be launched with

pytest tests

Ruff

Ruff checks/corrects code style and automates the code formatting.

Kudos to Black and Flake8 that are very good tools. Yet, for a fresh start, Ruff seems the way to go, since it does the same job as these two, only much faster.

Ruff is configured in /pyproject.toml file.

Coupled with pre-commit and/or integrated with your IDE, it automates all the code formatting.

Note to PyCharm users: there is a ruff plugin.

Metadata

Release files for FAST-OAD-RTA 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FAST-OAD-RTA 0.1.1
File Size Uploaded Provenance Actions
fast_oad_rta-0.1.1.tar.gz 185.3 kB Without provenance Details for fast_oad_rta-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for FAST-OAD-RTA 0.1.1
File Interpreter ABI Platform Actions
fast_oad_rta-0.1.1-py3-none-any.whl Python 3 none any Details for fast_oad_rta-0.1.1-py3-none-any.whl

Total release size: 446.5 kB

Release files / fast_oad_rta-0.1.1.tar.gz

Download URL fast_oad_rta-0.1.1.tar.gz
Size 185.3 kB
Tags Source
SHA-256 checksum
How to use checksums
efaf519c0f9bfd63023e62e57b38caa2725c9cdccd8b7ad19b2e9dd96696af78
BLAKE2b-256 checksum
How to use checksums
0904b3b273b1e98f5d97b8e9e17b808f1d4c0bc360998e9e570837d4285f87c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.4 Linux/7.0.0-1016-aws

Release files / fast_oad_rta-0.1.1-py3-none-any.whl

Download URL fast_oad_rta-0.1.1-py3-none-any.whl
Size 261.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68356c96f1985c952a20ffa10b7be36e040025ac79864ec7953bf8ad1e84244e
BLAKE2b-256 checksum
How to use checksums
9cdb8e2add0e2e8a1d5f43f3553a6baa8ed30334f94e2ec2f3c0b9addf9c11c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.4 Linux/7.0.0-1016-aws

Security for FAST-OAD-RTA 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page