I need to solve the Lambert problem, however, I have a custom gravity model.
My ODE of motion is:
def ode_solve(y):
r=sqrt(y[1]**2 + y[2]**2 + y[3]**2)
n=1/(r**3+r**2+r)
dy[1] = y[4]
dy[2] = y[5]
dy[3] = y[6]
dy[4] = -y[1]*n/r
dy[5] = -y[2]*n/r
dy[6] = -y[3]*n/r
return dy
For the Earth I used the izzo.lambert(Earth.k, r0, r, tof) function from poliastro package on Python. However, the function requires the gravitational parameter (Earth or Sun), and I can't customize it.
Is there a way to solve the Lambert problem for custom gravity on Python?