Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First performance module POC for using vectors on cruise climb model #180

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ScottDelbecq
Copy link
Contributor

This draft PR is a proof of concept for using vectors for trajectories in the performance module. This has been achieved only for the cruise segment of the mission:

  • Cruise climb: constant (optimal) lift-to-drag-ratio, constant speed, regulated thrust rate → increasing altitude

The distance step is constant and determined with respect to the number of flight points and cruise distance, resulting in a variable time step.

Copy link
Contributor

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 2
           

Complexity increasing per file
==============================
- src/fastoad/models/performances/mission.py  1
         

Clones added
============
- src/fastoad/models/performances/breguet.py  1
- src/fastoad/models/performances/mission.py  1
         

See the complete overview on Codacy

@@ -0,0 +1,252 @@
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.declare_partials("data:propulsion:altitude", "*", method="fd")
self.declare_partials("data:propulsion:mach", "*", method="fd")

def compute(self, inputs, outputs, discrete_inputs=None, discrete_outputs=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov
Copy link

codecov bot commented Jun 1, 2020

Codecov Report

Merging #180 into master will increase coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #180      +/-   ##
==========================================
+ Coverage   91.32%   91.52%   +0.19%     
==========================================
  Files         172      173       +1     
  Lines        6113     6254     +141     
  Branches      467      467              
==========================================
+ Hits         5583     5724     +141     
  Misses        439      439              
  Partials       91       91              
Flag Coverage Δ
#unittests 91.52% <100.00%> (+0.19%) ⬆️
Impacted Files Coverage Δ
src/fastoad/models/performances/mission.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e0c1ec...3be38ff. Read the comment docs.

@ScottDelbecq ScottDelbecq marked this pull request as draft June 1, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants