Skip to content

Split EquipAndUsefulLoadMass component#753

Merged
jkirk5 merged 9 commits intoOpenMDAO:mainfrom
xjjiang:equip_mass
May 19, 2025
Merged

Split EquipAndUsefulLoadMass component#753
jkirk5 merged 9 commits intoOpenMDAO:mainfrom
xjjiang:equip_mass

Conversation

@xjjiang
Copy link
Copy Markdown
Contributor

@xjjiang xjjiang commented Apr 29, 2025

Summary

This PR split EquipAndUsefulLoadMass component into several smaller components:

  • EquipMassPartial
  • ACMass
  • FurnishingMass
  • EquipMassSum
  • EquipMassGroup
  • UsefulLoadMass
  • EquipAndUsefulLoadMassGroup

There was an error in equipment_and_useful_load.py where ~ is used. This PR fixed this error by replacing it with not.

This was an earlier effort to override certain values. For example, if Aircraft.Furnishings.MASS is set to a non-zero value, this value is used instead of empirical mass equation.

The bigger problem is that all 9 unit tests set those variables to non-zero values. So, if we remove this naive override code, all the tests in test_mass_summation.py fail. Even worse: some will result in NaN error. It is worth to mention that furnishing mass is a significant large number. In those test runs, the computed value of furnishing mass is 17122 lbm while the give mass is 11192 lbm in test 1 through 6; the computed value of furnishing mass is 14043 lbm while the give mass is 9114 lbm in test 7 through 9. With such big differences, we sure get quit different overall mass results.

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

xjjiang and others added 2 commits April 29, 2025 15:01
…ses and ther other for useful load. Move air condition mass and furnishing mass out from equipment masses.
@xjjiang xjjiang marked this pull request as ready for review April 29, 2025 19:09
@jkirk5 jkirk5 added this pull request to the merge queue May 19, 2025
Merged via the queue into OpenMDAO:main with commit aa2215c May 19, 2025
6 checks passed
@xjjiang xjjiang deleted the equip_mass branch May 29, 2025 14:40
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.

3 participants