Skip to content

MAX_MACH update - #1250

Open
xjjiang wants to merge 38 commits into
OpenMDAO:mainfrom
xjjiang:Var_MAX_MACH
Open

MAX_MACH update#1250
xjjiang wants to merge 38 commits into
OpenMDAO:mainfrom
xjjiang:Var_MAX_MACH

Conversation

@xjjiang

@xjjiang xjjiang commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Tasks Accomplished:

  1. Renamed Mission.Constraints.MAX_MACH to Aircraft.design.MAX_MACH.
  2. Made Aircraft.design.MAX_MACH a variable instead of an option.
  3. Replace max_mach in GASP based mass subsystem by Aircraft.design.MAX_MACH.
  4. Before this parameter was converted to an Aviary variable, I found out that it is not captured in unit test test_GASP_mass_FLOPS_everything_else() of subsystems/test/test_premission.py and I traced out the reason. This is no along a problem anymore after this parameter was converted to an Aviary variable. But it still may have affected other parameters. I added a note in the unit test.
  5. GASP models subsonic flights only. When max Mach number is greater than 0.9, a warning message is printed.

This is part of Issue #598

Related Issues

Backwards incompatibilities

None

AI Usage

None

@xjjiang xjjiang changed the title [Draft] Var max mach MAX_MACH update Aug 4, 2026
@xjjiang
xjjiang marked this pull request as ready for review August 5, 2026 23:56
Comment thread aviary/subsystems/mass/flops_based/test/test_fuel_system.py Outdated
Comment thread aviary/subsystems/mass/flops_based/test/test_instruments.py Outdated

@cmbenne3 cmbenne3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple of suggestions in addition to Ken's suggestion of removing some of the commented lines. Otherwise looks good to go!

Comment thread aviary/subsystems/aerodynamics/flops_based/premission_aero.py Outdated
Comment thread aviary/subsystems/mass/gasp_based/design_load.py
Comment thread aviary/subsystems/mass/gasp_based/design_load.py
Comment thread aviary/subsystems/mass/gasp_based/design_load.py
Comment thread aviary/subsystems/test/test_premission.py Outdated
@xjjiang
xjjiang requested a review from cmbenne3 August 11, 2026 19:55
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.

Rename Mission.Constraints.MAX_MACH to Aircraft.design.MAX_MACH

3 participants