OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
210 stars 67 forks source link

Updated phase.load_case so that it uses the state_xxx_vals API. Specify parent when subproblems are used. #1087

Closed robfalck closed 3 months ago

robfalck commented 4 months ago

Summary

For later version of OpenMDAO, explicit simulation subproblems have their parent set to the trajectory or phase being simulated so that their output files show up nested under the parent problems output directory.

phase.load_case was not using the new API for setting times, states, controls, and parameters. As a result, under Birkhoff, setting state values would only set the values in the segment polynomial, but not the end point values (initial_states:{name} and final-states:{name}).

Related Issues

Backwards incompatibilities

None

New Dependencies

None

coveralls commented 3 months ago

Coverage Status

coverage: 92.532% (-0.2%) from 92.757% when pulling 73a6363672317bd0530b9f5d5e2dd5267ef16572 on robfalck:load_case_set_state_vals into d61cd9792489e4cbd428d9f5b9fbe4799a75797f on OpenMDAO:master.