astrodynx.events.radius_islow

Contents

astrodynx.events.radius_islow#

astrodynx.events.radius_islow(t, x, args={'rmin': 0.0}, **kwargs)[source]#

Returns the difference between the radius and the minimum radius.

Parameters:
  • t (DTypeLike) – The time.

  • x (ArrayLike) – (N,) The state vector, where the first 3 elements are the position vector.

  • args (PyTree[Any]) – Static arguments, which must contain a key “rmin” with the minimum radius.

  • kwargs (Any) – Any additional arguments.

Return type:

Array

Returns:

The difference between the radius and the minimum radius. The propagation will stop when this value is negative.

Notes

The difference between the radius and the minimum radius is calculated using the following equation:

\[ r - r_{min} \]
where \(r\) is the radius and \(r_{min}\) is the minimum radius.

This event can be used to terminate the propagation of an orbit when the radius falls below a certain threshold.