Skip to content

Fix cargo_container mass for flops based off design missions - #1254

Open
cmbenne3 wants to merge 5 commits into
OpenMDAO:mainfrom
cmbenne3:issue869
Open

Fix cargo_container mass for flops based off design missions#1254
cmbenne3 wants to merge 5 commits into
OpenMDAO:mainfrom
cmbenne3:issue869

Conversation

@cmbenne3

@cmbenne3 cmbenne3 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Quick change to fix cargo_container_mass for off design FLOPS missions.
Aircraft.CrewPayload.CARGO_CONTAINER_MASS is summed into Mission.OPERATING_ITEMS_MASS, which is in turn part of Mission.OPERATING_MASS.
If the cargo load or baggage load (e.g. num passengers) changes between design and off_design then the number of cargo containers will recalculate and change the OPERATING_MASS
It is confusing if this changes between a design and off design mission.
This PR now checks the value from design mission and adds an override for this value in the off_design problem so that it doesn't change.
This is similar to the FLOPS behavior when mywts = 1 is set in a rerun namelist. (it's not identical as FLOPS actually carries the operating empty weight (dowe) across directly (or overwrites with user value) when mywts=1.)

With this change Mission.OPERATING_MASS could now be updated to Aircraft.Design.OPERATING_MASS as I don't think it will ever change between design and off design.

Related Issues

Backwards incompatibilities

None

AI Usage

Disclose any AI usage in this PR, including models used and files affected.

inputs.set_val(Aircraft.CrewPayload.CARGO_CONTAINER_MASS, cargo_container_mass, 'lbm')
if verbosity >= Verbosity.BRIEF:
warnings.warn(
f'Setting CARGO_CONTAINER_MASS for off design mission equal to design mission = {cargo_container_mass} lbm'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably should test this, maybe could piggyback on the existing off design tests, if the cargo container mass recomputes on them.

@jkirk5
jkirk5 added this pull request to the merge queue Aug 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 17, 2026
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.

Cargo container mass bookeeping

3 participants