-
Notifications
You must be signed in to change notification settings - Fork 110
Mass report update - FLOPS #942
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| outputs.set_val(Aircraft.LandingGear.MAIN_GEAR_MASS, 0.85 * 5778.0, 'lbm') | ||
| outputs.set_val(Aircraft.LandingGear.NOSE_GEAR_MASS, 0.15 * 5778.0, 'lbm') | ||
| outputs.set_val(Aircraft.LandingGear.TOTAL_MASS, 4911.3 + 866.7, 'lbm') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just make this the 5778.0 from the above 2 lines....
| Aircraft.Design.TOUCHDOWN_MASS, | ||
| ], | ||
| ) | ||
| self.declare_partials( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a problem here if we override one of the gear masses, but let Aviary compute the other (I know, an odd corner case, but it is possible). In that case, the total will be wrong. To overcome this, best to implement the total as a separate component.
Fixed missing propulsion mass entry
Summary
Updates mass reporting for FLOPS-based mass to conform to SAWE RP-8 standard.
Some mass variables have been renamed to comply with the standard, and the FLOPS-based mass summation component was reworked to group masses appropriately.
Generative AI was used to write a new test that checks matching between hierarchy variable names and string representation (test_var_structure.py). The Cursor IDE was used, which does not expose which specific models it uses. Manual review and minor tweaks were done by hand.
Related Issues
Backwards incompatibilities
Renamed variables:
Aircraft.CrewPayload.NON_FLIGHT_CREW_MASS->Aircraft.CrewPayload.CABIN_CREW_MASSAircraft.CrewPayload.NON_FLIGHT_CREW_MASS_SCALER->Aircraft.CrewPayload.CABIN_CREW_MASS_SCALERAircraft.CrewPayload.PASSENGER_MASS->Aircraft.CrewPayload.PASSENGER_MASS_TOTALAircraft.CrewPayload.PASSENGER_MASS_WITH_BAGS->Aircraft.CrewPayload.MASS_PER_PASSENGER_WITH_BAGSAircraft.Controls.TOTAL_MASS->Aircraft.Controls.MASSAircraft.Design.SYSTEMS_EQUIP_MASS->Aircraft.Design.SYSTEMS_AND_EQUIPMENT_MASSAircraft.Design.SYSTEMS_EQUIP_MASS_BASE->Aircraft.Design.SYSTEMS_AND_EQUIPMENT_MASS_BASEAircraft.Wing.ASPECT_RATIO_REF->Aircraft.Wing.ASPECT_RATIO_REFERENCEAircraft.Wing.THICKNESS_TO_CHORD_REF->Aircraft.Wing.THICKNESS_TO_CHORD_REFERENCENew Dependencies
None