orbix.kepler.shortcuts#
Computational shortcuts for Kepler’s equation.
Submodules#
Functions#
|
Helper function to get a grid-based solver and cache it. |
Package Contents#
- orbix.kepler.shortcuts.get_grid_solver(level='scalar', jit=False, kind='bilinear', E=True, trig=True, n_e=512, n_M=2048)[source]#
Helper function to get a grid-based solver and cache it.
- Parameters:
level –
- How the solver should be batching things.
”scalar” means the inputs will be a single (M, e) pair and the output will be a single E, sinE, cosE value.
”planet” will vectorize over times first and then over orbits.
M: (n_orbits, n_times)
e: (n_orbits,)
jit – Whether to jit the solver.
kind – The kind of solver to use, either “linear” or “bilinear”.
E – Whether to compute the eccentric anomaly.
trig – Whether to compute the sine and cosine of the eccentric anomaly.
n_e – The number of eccentricity steps in the grid.
n_M – The number of mean anomaly steps in the grid.