-
Notifications
You must be signed in to change notification settings - Fork 0
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
Validate atmospheric calculations #9
Comments
The References for validation of the remaining logic:
|
C_d (drag coefficient) is a function of Mach number. Drag force is a function of air density * C_d.
where
and
|
Some problems found and addressed in o-murphy#157 |
With the work I did for o-murphy#159 I'm now confident in the atmospheric calculations. However, it may be worth probing edge and extreme scenarios, and adding those to the unit tests. |
During testing (the old
test_danger_space
unittest), with an absurdly dense atmosphere (1000 hPa) that led to a trajectory drop through 4000ft, thet
inconditions.py::get_density_factor_and_mach_for_altitude()
went negative. As best I can tell this is a temperature, so this shouldn't be possible no matter how extreme the variables. This function is probably supposed to do calculations in Kelvin, but it appears to be doing them in whatever Temperature units were set. So we need some test cases here.Specific values found in this test case:
t
= -.008055_p0
= 1000_t0
= 15cP
= -5.255876ta
= 57.82tb
= 72.8altitude
= -3878x
= 1038y
= -4208The text was updated successfully, but these errors were encountered: