I'm trying to write a Python code to implement Hartle-Thorne approximation formalism for rotating neutron stars. In this formalism, I am required to solve the following second order differential equation: with the boundary conditions and where is an arbitrary constant. is defined as inside the star and for where is the radius of the star . is the metric function defined as I obtained the metric by simultaneously solving it's differential equation with the TOV equations using a RK4 solver. Now I am trying to solve that second order differential equation using odeint but the result does not seem to be correct. The issues are as follows: The results I obtained does not match with the results published in the related paper. The results change if I change the boundary condition on even though this boundary condition is supposed to be arbitrary. I need some help to identify the correct approach to solve this equation: can I solve it separately now that I already have obtained all the necessary quantities from the TOV-RK4 run (that's what I am doing), or do I need to solve it with the TOV equations themselves? For those who might need it, here is the paper that describes the formalism and all the necessary equations.
Numerically solving frame-dragging equation in Hartle-Thorne formalism
abirbhav


