Skip to content

Commit

Permalink
tweaking water rocket scaling for openmdao auto-ordering update (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
robfalck authored Aug 24, 2023
1 parent 1ee9741 commit 5bfb81f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions dymos/examples/water_rocket/phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ def new_ballistic_ascent_phase(transcription):
duration_ref=1, units='s')

ballistic_ascent.add_state('r', units='m', rate_source='eom.r_dot', fix_initial=False,
fix_final=False, ref=100.0, defect_ref=100.0)
fix_final=False, ref=1.0, defect_ref=1.0)
ballistic_ascent.add_state('h', units='m', rate_source='eom.h_dot', targets=['atmos.h'],
fix_initial=False, fix_final=False, ref=100.0, defect_ref=100.0)
fix_initial=False, fix_final=False, ref=1.0)
ballistic_ascent.add_state('gam', units='deg', rate_source='eom.gam_dot', targets=['eom.gam'],
fix_initial=False, fix_final=True, upper=89, ref=90, defect_ref=90)
fix_initial=False, fix_final=True, upper=89, ref=90)
ballistic_ascent.add_state('v', units='m/s', rate_source='eom.v_dot',
targets=['dynamic_pressure.v', 'eom.v'], fix_initial=False,
fix_final=False, ref=100, defect_ref=100)
fix_final=False, ref=1.)

ballistic_ascent.add_parameter('S', targets=['aero.S'], units='m**2')
ballistic_ascent.add_parameter('m_empty', targets=['eom.m'], units='kg')
Expand All @@ -85,7 +85,7 @@ def new_descent_phase(transcription):
descent.add_state('v', units='m/s', rate_source='eom.v_dot',
targets=['dynamic_pressure.v', 'eom.v'],
fix_initial=False, fix_final=False,
ref=100, defect_ref=100)
ref=1)

descent.add_parameter('S', targets=['aero.S'], units='m**2')
descent.add_parameter('mass', targets=['eom.m'], units='kg')
Expand Down
4 changes: 2 additions & 2 deletions dymos/examples/water_rocket/test/test_water_rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_water_rocket_height_for_docs(self):

p.driver = om.pyOptSparseDriver(optimizer='IPOPT', print_results=False)
p.driver.opt_settings['print_level'] = 0
p.driver.opt_settings['max_iter'] = 1000
p.driver.opt_settings['max_iter'] = 500
p.driver.opt_settings['mu_strategy'] = 'monotone'
p.driver.declare_coloring(tol=1.0E-12)

Expand Down Expand Up @@ -65,7 +65,7 @@ def test_water_rocket_range_for_docs(self):

p.driver = om.pyOptSparseDriver(optimizer='IPOPT')
p.driver.opt_settings['print_level'] = 0
p.driver.opt_settings['max_iter'] = 1000
p.driver.opt_settings['max_iter'] = 300
p.driver.opt_settings['mu_strategy'] = 'monotone'
p.driver.declare_coloring(tol=1.0E-12)

Expand Down

0 comments on commit 5bfb81f

Please sign in to comment.