Stopping the orbit propagation, when a condition is met

I’m using DSST orbit propagation module. I would like to know how to stop the propagator, when (the epoch) an orbital parameter has reached a specified value. For example, I am propagating with a higher altitude and eccentricity, when altitude reaches 200 km, i would like to stop the propagation and generate the ephemeris only up to that epoch. Initially, I can set a wider propagation duration, but how to change it in due course of propagation?

You can do that using an event detector that monitors the parameter you want. There is already an AltitudeDetector dedicated to this. The default action of this detector is to stop the propagation, which is what you want.

1 Like