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

Minor tweaks to docs and naming #22

Merged
merged 6 commits into from
Jan 2, 2024

Conversation

johnjasa
Copy link
Member

@johnjasa johnjasa commented Jan 2, 2024

Summary

Minor changes to:

  • doc intro page for clarity based on user feedback
  • combining mission_method and mission_origin into mission_method

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@@ -226,14 +226,6 @@ def load_inputs(self, input_filename, engine_builder=None):
aviary_inputs.set_val(Mission.Summary.GROSS_MASS,
val=self.initial_guesses['actual_takeoff_mass'], units='lbm')

# Commonly referenced values
self.enable_engine_sizing = aviary_inputs.get_val(
Copy link
Member

Choose a reason for hiding this comment

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

Apparently they were not commonly referenced.

Comment on lines -232 to -234
self.cruise_alt = aviary_inputs.get_val(
Mission.Design.CRUISE_ALTITUDE, units='ft')
self.problem_type = aviary_inputs.get_val('problem_type')
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe these two are actually referenced elsewhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

cruise_alt and problem_type are used elsewhere, these should not be removed

Copy link
Member Author

Choose a reason for hiding this comment

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

For both of these the values are later overwritten; the values saved in load_inputs are replaced by values read in in _add_gasp_takeoff_systems and add_design_variables. I believe it is fine to be removed from load_inputs based on this. Do you see a reason to keep these value instantiations as they stand?

Copy link
Contributor

Choose a reason for hiding this comment

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

as long as that happens before the phases are added to the problem, that should be fine

Copy link
Contributor

@crecine crecine left a comment

Choose a reason for hiding this comment

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

problem_type is used in methods_for_level2, and cruise_alt is used in methods_for_level2 and level2_shooting_traj.

Comment on lines -232 to -234
self.cruise_alt = aviary_inputs.get_val(
Mission.Design.CRUISE_ALTITUDE, units='ft')
self.problem_type = aviary_inputs.get_val('problem_type')
Copy link
Contributor

Choose a reason for hiding this comment

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

cruise_alt and problem_type are used elsewhere, these should not be removed

@johnjasa johnjasa merged commit 2e6be5c into OpenMDAO:main Jan 2, 2024
4 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.

Improve top-level docs organization Standardize "mission_method" usage throughout
3 participants