FreeExpansion¶
- class sbpy.dynamics.models.FreeExpansion(**kwargs)[source] [edit on github]¶
Bases:
DynamicalModelEquation of motion solver for particle motion in free space.
- 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)dx_dt(t, rv, *args)solve(initial, t_final, *args)Solve the equations of motion for a single particle.
Methods Documentation
- solve(initial: State, t_final: Time, *args) State [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