DynamicalModel¶
- class sbpy.dynamics.models.DynamicalModel(**kwargs)[source] [edit on github]¶
Bases:
ABCSuper-class for dynamical models.
- Parameters:
- **kwargs
dict Arguments passed on to
solve_ivp. Units are seconds, km, and km/s, e.g.,max_stepis a float value in units of seconds. For relative and absolute tolerance keywords,rtolandatol, 6-element arrays may be used, where the first three elements are for position, and the last three are for velocity.
- **kwargs
Methods Summary
df_drv(t, rv, *args)Jacobian matrix, \(df/drv\).
dx_dt(t, rv, *args)Derivative of position and velocity.
solve(initial, t_final, *args)Solve the equations of motion for a single particle.
Methods Documentation
- abstractmethod classmethod df_drv(t: float, rv: ndarray, *args) ndarray[source] [edit on github]¶
Jacobian matrix, \(df/drv\).
- Parameters:
- Returns:
- df_drv
numpy.ndarray First three elements for \(df/dr\), next three for \(df/dv\).
- df_drv
- abstractmethod classmethod dx_dt(t: float, rv: ndarray, *args) ndarray[source] [edit on github]¶
Derivative of position and velocity.
- Parameters:
- Returns:
- dx_dt
numpy.ndarray First three elements for \(dr/dt\), next three for \(dv/dt\).
- dx_dt
- solve(initial: State, t_final: Time, *args) State[source] [edit on github]¶
Solve the equations of motion for a single particle.
The solution is calculated with
scipy.integrate.solve_ivp.- Parameters:
- Returns:
- final
State
- final