fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
47 stars 25 forks source link

Mission fuel as objective #467

Closed christophe-david closed 1 year ago

christophe-david commented 1 year ago

This PR resolves #438.

It adds the use_all_block_fuel boolean parameter to mission definition in mission definition file.

A new Mission class has been created to handle that. To avoid confusion, the previous Mission class, that was the OpenMDAO group for the job, has been renamed OMMission.

The computation of final reserve is now done in this new Mission, which was needed for the computation of possible distance with given block fuel. The global behavior is equivalent.

Documentation as been updated. Preview here

codecov[bot] commented 1 year ago

Codecov Report

Merging #467 (7bdc068) into master (92a85a2) will increase coverage by 0.21%. The diff coverage is 91.79%.

@@            Coverage Diff             @@
##           master     #467      +/-   ##
==========================================
+ Coverage   82.89%   83.11%   +0.21%     
==========================================
  Files         118      119       +1     
  Lines        5169     5247      +78     
  Branches      796      809      +13     
==========================================
+ Hits         4285     4361      +76     
+ Misses        742      739       -3     
- Partials      142      147       +5     
Impacted Files Coverage Δ
...ad/models/performances/mission/openmdao/mission.py 90.24% <40.00%> (-3.43%) :arrow_down:
...sion_definition/mission_builder/mission_builder.py 89.39% <86.66%> (+2.26%) :arrow_up:
src/fastoad/models/performances/mission/base.py 98.21% <94.11%> (+0.13%) :arrow_up:
src/fastoad/models/performances/mission/routes.py 95.89% <94.11%> (-0.06%) :arrow_down:
src/fastoad/models/performances/mission/mission.py 94.52% <94.52%> (ø)
...n_definition/mission_builder/structure_builders.py 94.07% <100.00%> (+0.07%) :arrow_up:
...performances/mission/openmdao/mission_component.py 88.03% <100.00%> (-0.11%) :arrow_down:
...s/performances/mission/openmdao/mission_wrapper.py 96.66% <100.00%> (+0.07%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.