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

Split EQUIPMENT_MASS_COEFFICIENTS to 13 individual variables #224

Merged
merged 18 commits into from
Apr 16, 2024

Conversation

xjjiang
Copy link
Contributor

@xjjiang xjjiang commented Apr 2, 2024

Summary

This PR splits EQUIPMENT_MASS_COEFFICIENTS to 13 individual variables. They are (in the same order):

  • Aircraft.APU.MASS
  • Aircraft.Instruments.MASS
  • Aircraft.Hydraulics.FC_MASS_COEFFICIENT
  • Aircraft.Hydraulics.GEAR_MASS_COEFFICIENT
  • Aircraft.Avionics.MASS
  • Aircraft.AirConditioning.MASS_COEFFICIENT
  • Aircraft.AntiIcing.MASS
  • Aircraft.Furnishings.MASS
  • Aircraft.CrewPayload.PASSENGER_SERVICE_MASS_PER_PASSENGER
  • Aircraft.CrewPayload.WATER_MASS_PER_OCCUPANT
  • Aircraft.Design.EMERGENCY_MASS
  • Aircraft.CrewPayload.CATERING_ITEMS_MASS_PER_PASSENGER
  • Aircraft.Fuel.UNUSABLE_FUEL_MASS_COEFFICIENT

All of them have units "unitless" or "lbm". Once this change is merged to Aviary, we can claim that all Aviary variables have appropriate units.

These variables correspond to CW(1), ..., CW(13) in GASP.

Note that CW(5) has two different units (lb or lb/pax) in the new version of GASP. In the above, I only consider one unit: lbm.

Also note that the new version of GASP has extended CW array to 16 entries. CW(15) is the electrical Systems weight per passenger. Aviary has this weight in equipment_and_useful_load.py already. So, I suggest a new variable:

ELECTRICAL_MASS_PER_PASSENGER: mass of electrical system per passenger (lbm)

CW(14) is cargo handling. CW(16) is other operating items. They both default to 0.0. Aviary does not have them. We can add them later.

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

@crecine crecine self-requested a review April 2, 2024 21:42
@xjjiang xjjiang marked this pull request as draft April 3, 2024 00:53
@xjjiang
Copy link
Contributor Author

xjjiang commented Apr 3, 2024

Wait for me. I will reuse variables from FLOPS.

@xjjiang
Copy link
Contributor Author

xjjiang commented Apr 3, 2024

@crecine and @johnjasa I modified those 13 new variables so that they fall into Aviary categories. The only exception is Aircraft.Design.EMERGENCY_MASS which I am not sure where it belongs to.

@xjjiang xjjiang marked this pull request as ready for review April 4, 2024 00:01
@@ -972,6 +1020,18 @@
desc='Drag polar computed during Aviary pre-mission.',
)

add_meta_data(
Aircraft.Design.EMERGENCY_MASS,
Copy link
Contributor

Choose a reason for hiding this comment

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

@crecine does GASP have any additional information on what's included in emergency mass? Design is an ok place to put it if it doesn't neatly fit into any of our other categories

Copy link
Contributor

@crecine crecine Apr 16, 2024

Choose a reason for hiding this comment

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

I'll see if I can find any more detailed information, but it's the cabin emergency equipment (fire extinguishers, oxygen tanks, smoke hoods, etc)
I think design is an appropriate place for it.

@@ -3374,6 +3434,30 @@
# |___/
# ====================================================================

add_meta_data(
Aircraft.Hydraulics.FC_MASS_COEFFICIENT,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Aircraft.Hydraulics.FC_MASS_COEFFICIENT,
Aircraft.Hydraulics.FLIGHT_CONTROL_MASS_COEFFICIENT,

Copy link
Contributor

Choose a reason for hiding this comment

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

If this variable gets changed, the new name needs to get updated throughout the code

@crecine crecine enabled auto-merge April 16, 2024 21:00
@crecine crecine added this pull request to the merge queue Apr 16, 2024
Merged via the queue into OpenMDAO:main with commit 7d210f6 Apr 16, 2024
7 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.

4 participants