OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
204 stars 65 forks source link

load_case does not handle negative t_duration correctly. #1006

Closed robfalck closed 12 months ago

robfalck commented 12 months ago

Description

The Phase.load_case method applies np.unique to get unique time output values from the timeseries. This sorts the data and the corresponding indices, and for negative-t_duration phases, this causes the logic to lose track of the initial time and duration of the phase.

Example

See the skipped cases in finite_burn_orbit_raise/test/test_multi_phase_restart.py

Dymos Version

1.9.2-dev

Relevant environment information

No response