Skip to content

Fix bug that broke preprocessing of crew options.#761

Merged
jkirk5 merged 9 commits intoOpenMDAO:mainfrom
Kenneth-T-Moore:crew
May 28, 2025
Merged

Fix bug that broke preprocessing of crew options.#761
jkirk5 merged 9 commits intoOpenMDAO:mainfrom
Kenneth-T-Moore:crew

Conversation

@Kenneth-T-Moore
Copy link
Copy Markdown
Member

Summary

Certain keys need to remain empty so that the preprocessor knows when to set them.
Bonus: Fix for failing IPOPT bench.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@@ -71,6 +72,7 @@ def create_vehicle(vehicle_deck='', meta_data=_MetaData, verbosity=Verbosity.BRI
verbosity = Verbosity.BRIEF

aircraft_values = get_option_defaults(engine=False)
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.

I'm not really sure why we're loading all the defaults to begin with, it doesn't seem like this is very helpful anymore. Maybe we should consider skipping this step in the future, which should remove the need for remove_preprocessed_options

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That is a good point. I am not sure why we pre-load those into the aviary_options. All of the defaults are also present in the options dictionaries, so they get set correctly even without this step. Maybe there is something on the GASP side that isn't doing that.

aircraft:crew_and_payload:mass_per_passenger,165,lbm
aircraft:crew_and_payload:misc_cargo,0,lbm
aircraft:crew_and_payload:non_flight_crew_mass_scaler,1,unitless
aircraft:crew_and_payload:num_business_class,20,unitless
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.

You shouldn't have to add these passenger values because they should be automatically setup based on the design values. I think you can remove these 4 lines of changes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added these because they weren't getting set right, which must mean that a new bug has cropped up.

@jkirk5 jkirk5 added this pull request to the merge queue May 28, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 28, 2025
@jkirk5 jkirk5 enabled auto-merge May 28, 2025 16:17
@jkirk5 jkirk5 disabled auto-merge May 28, 2025 16:17
@jkirk5 jkirk5 enabled auto-merge May 28, 2025 16:17
@jkirk5 jkirk5 added this pull request to the merge queue May 28, 2025
Merged via the queue into OpenMDAO:main with commit 3349d9a May 28, 2025
6 checks passed
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.

Default values have broken the pre-processor for FLOPS crew/galley processing.

3 participants