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

Set FLOPS mass default #635

Merged
merged 23 commits into from
Jan 16, 2025
Merged

Set FLOPS mass default #635

merged 23 commits into from
Jan 16, 2025

Conversation

xjjiang
Copy link
Contributor

@xjjiang xjjiang commented Dec 23, 2024

Summary

This PR serves as an experiment to standardize component defaults across Aviary. FLOPS mass is chosen because it is the clearest subsystems in Aviary. In this PR,

  • Functions add_aviary_input/add_aviary_output set value to 0.0 if there is no metadata default value.
  • Default values are set to 0.0 in variable_meta_data.py for variables used by FLOPS mass subsystems.
  • In all components of FLOPS mass subsystem, val argument is removed from add_aviary_input/add_aviary_output calls.
    • Example: add_aviary_input(self, Aircraft.Avionics.MASS)

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

@xjjiang xjjiang marked this pull request as draft December 23, 2024 16:51
@xjjiang xjjiang marked this pull request as ready for review December 23, 2024 20:57
Copy link
Contributor

@jkirk5 jkirk5 left a comment

Choose a reason for hiding this comment

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

Looks good!

@jkirk5 jkirk5 enabled auto-merge January 8, 2025 18:09
auto-merge was automatically disabled January 9, 2025 22:12

Head branch was pushed to by a user without write access

@jkirk5 jkirk5 merged commit a9fb750 into OpenMDAO:main Jan 16, 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.

3 participants