Hey guys,(adsbygoogle = window.adsbygoogle || []).push({});

I'm working on this n-body planetary system simulation and I was just wondering if anyone was familiar enough with the Runge-Kutta(RK4) approximation method that they understood how to apply it to approximating the velocity and position of a planet as it orbits around some central star.

The problem I'm having with incorporating the method into my simulation is that the acceleration (the derivative of the variable I'm trying to approximate) is not a function of time. Instead, it is being treated as constant (acceleration = total_force / mass).

Since, I'm not really all that knowledgeable in physics, especially astrophysics, I have absolutely no idea how to define this acceleration as a function of time or even if I really need to in order to use the Runge-Kutta method in my simulation. Any help would be greatly appreciated. Thanks.

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Applying Runge-Kutta(RK4) method to planetary velocity

Loading...

Similar Threads - Applying Runge Kutta | Date |
---|---|

Virial thereom as applied to clusters of galaxies | Feb 12, 2018 |

Oribit integrator for a logarithmic potential | Jan 25, 2016 |

How can I apply probability to the cosmological constant? | Sep 19, 2015 |

Mass Luminosity relation doesn't hold true when applied to actual data | May 13, 2013 |

Question on Red shift applied to objects within the same galaxy | Feb 28, 2013 |

**Physics Forums - The Fusion of Science and Community**