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

Change atmosphere comp defaults from geopotential to Geodetic #567

Merged
merged 87 commits into from
Oct 16, 2024

Conversation

xjjiang
Copy link
Contributor

@xjjiang xjjiang commented Oct 11, 2024

Summary

In this PR, the default option h_def in atmosphere.py is switched to geodetic from geopotential. As a result, some validation data are updated. Currently there is no interface to alter the default value but in the future, we will have an atmosphere builder to allow users to alter this option.

Some default values in aviary/subsystems/aerodynamics/gasp_based/gaspaero.py are changed in order to avoid some divide-by-zero warning messages.

In aviary/subsystems/propulsion/test/test_custom_engine_model.py, I have to modify the phase_info by setting num_segments = 3 instead of num_segments = 2 in order to avoid a unit test failure on GitHub. The unit test does not fail locally but only on GitHub. I had to try many different options to get it to work. This phenomenon happened before. I had to adjust tolerance a little bit. But this time it seemed that a constraint was violated in OpenMDAO and a constraint variable was reset. That might have resulted in an inf or NaN somewhere such that the unit test failed.

Aircraft.Engine.GEOPOTENTIAL_ALT is not changed.

We don't have a doc page on atmosphere.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

crecine and others added 30 commits September 12, 2024 16:37
Note: this behavior is different from GASP
the form factors will always be calculated, but if they are present
in the input deck the variable overriding will replace the calculated
value with the one constant from the input deck.
In gasp, these variables would only be calculated if the value wasn't
set or if it was set to a value less than zero
Small fix to include components in the input search when setting inpu…
Co-authored-by: crecine <51181861+crecine@users.noreply.github.com>
@xjjiang xjjiang marked this pull request as ready for review October 15, 2024 16:57
…n is due to a different bug, related to the design range: issue OpenMDAO#569. I have to adjust tolerances in order to pass unit tests.
@jkirk5 jkirk5 changed the base branch from main to 0.9.6.dev October 16, 2024 17:55
@jkirk5 jkirk5 merged commit dc2eead into OpenMDAO:0.9.6.dev Oct 16, 2024
@xjjiang xjjiang deleted the geodetic branch November 14, 2024 17:18
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.

Atmosphere comp defaults to geopotential alt
4 participants