-
Notifications
You must be signed in to change notification settings - Fork 16
LTO,PTF functionality and tests added #127
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #127 +/- ##
==========================================
+ Coverage 79.04% 81.08% +2.04%
==========================================
Files 84 80 -4
Lines 13650 13864 +214
==========================================
+ Hits 10790 11242 +452
+ Misses 2860 2622 -238 ☔ View full report in Codecov by Sentry. |
src/mission/LTO.jl
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to generate_BADA()
To clarify my drowsy thoughts from earlier:
|
term fix
Co-authored-by: Prashanth <[email protected]>
Co-authored-by: Prashanth <[email protected]>
back to default in PRD
fixed test error
Fix error in loads testing Fix unit tests - the inputs should not be dependent on the default sizing regression test. update outputs Update tests after conflict
elseif lowercase(aircraft_type) == "regional aircraft" | ||
return :regional | ||
else | ||
return :narrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about else @error(...)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly best practices suggestions and continued distaste for aircraft_type
may i also recommend a description in the IO part of the docs?
return EI_NOx | ||
end # function EINOx4 | ||
|
||
function EINOx(ac::aircraft, ip::Int; sp_humidity = 0.00634, method="cubic") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only place that uses aircraft_type
. Would still vote against having it as a field and vote for having it as an input whenever odperf!()
is called (which then passes to EINOx
and co).
function EINOx(ac::aircraft, ip::Int; sp_humidity = 0.00634, method="cubic") | |
function EINOx(ac::aircraft, ip::Int, aircraft_type::Sym; sp_humidity = 0.00634, method="cubic") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the motivation is that "narrow-body"/"wide-body" is too big of a user-facing lever that does nothing anywhere else. it's unintuitive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps a better var name is correlation_type
, since that is the extent of its influence
Assumes a default specific humidity of 0.00634 kg water/kg dry air per | ||
ICAO Annex 16 Vol. II (part 2.1.4.1) | ||
""" | ||
function EINOx3(P3_kPa, T3_K, sp_humidity = 0.00634, ac_type = "1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ac_type default is outdated
Also, should this even have a default? the likelihood of error is greater than the convenience
Assumes a default specific humidity of 0.00634 kg water/kg dry air per | ||
ICAO Annex 16 Vol. II (part 2.1.4.1) | ||
""" | ||
function EINOx4(P3_kPa, T3_K, sp_humidity = 0.00634, ac_type = "1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(see above)
println(@sprintf("%12s %12s %12s %12s %12s %12s %12s %12s %12s %12s %12s %12s %12s %12s", | ||
"FL", "TAS", "CAS", "Mach", "Fn", "L/D", "Tt4max", "Tmetmax", "FFmax", "Tt4cruise", "Tmetcruise", "FFcruise", "CL", "CLh")) | ||
# integrate trajectory over climb | ||
for i = 1:N |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
labelled indices are nice
for i = 1:N | |
for iFL = 1:N |
end | ||
|
||
|
||
## FOR 77W__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what in tarnation is 77W
Updated functions for
Added P3T3 function for both narrow body (CFM56) and wide body (GE90) using curve fitting
Added tests for all 3 functions
Also, added
aircraft_type
in aircraft struct