Oribit integrator for a logarithmic potential

Click For Summary
SUMMARY

This discussion focuses on developing an orbit integrator for a logarithmic potential defined by the equation Φ = (v₀²/2) ln(x² + (y²/u²) + r₀²). The equations of motion are derived as second-order differential equations for x and y, specifically ddot{x} = -v₀² (x/(x² + (y²/u²) + r₀²)) and ddot{y} = -(v₀²/u²) (y/(x² + (y²/u²) + r₀²)). The participants discuss the applicability of the Runge-Kutta method for integration and the challenges of decoupling the system. The Hamiltonian approach is suggested as a potentially easier method, although it still leads to the same equations of motion.

PREREQUISITES
  • Understanding of logarithmic potentials in classical mechanics
  • Familiarity with second-order differential equations
  • Knowledge of the Runge-Kutta integration method
  • Basic concepts of Hamiltonian mechanics
NEXT STEPS
  • Research the application of the Runge-Kutta method to systems of coupled differential equations
  • Study Hamiltonian mechanics and its advantages in solving dynamical systems
  • Explore numerical methods for solving differential equations in physics
  • Investigate techniques for decoupling systems of equations in classical mechanics
USEFUL FOR

Physicists, computational scientists, and students working on orbital mechanics or numerical integration of dynamical systems.

Serna
Messages
2
Reaction score
0
Hello! Right know I'm trying to make an orbit integrator for solving a logarithmic potential with the form:
\begin{equation}
\Phi= \frac{v_0^2}{2} ln(x^2+ \frac{y^2}{u^2} + r_0^2)
\end{equation}
where v0, u, and r0 are constants
My approach is to use,
\begin{equation}
\ddot{q} = -\bigtriangledown \Phi
\end{equation}
Then the system equations,
\begin{equation}
\ddot{x} = -v_o^2 \frac{x}{x^2+ \frac{y^2}{u^2} + r_0^2}
\end{equation}
\begin{equation}
\ddot{y} = -\frac{v_o^2}{u^2} \frac{y}{x^2+ \frac{y^2}{u^2} + r_0^2}
\end{equation}
My guess is that in order to solve for x and y using Runge Kutta or leapfrog, I need to decouple the system, but I don't know how to do so.
 
Astronomy news on Phys.org
If by decouple the system, you mean separate the variables, it probably is not possible. But Runge-Kutta can be used to integrate the equations of motion as is. The Hamiltonian formulation (four equations with first derivatives) is usually easier.
 
Hello, thanks for your response!

By doing the Hamiltonian approach I still get equations (3) and (4) above, and the other two are are apparently of no use.
The problem is that I don't know how (if possible) to adapt the Runge-Kutta using two dependent variables (x,y) and the independent one (t).
 
Serna said:
The problem is that I don't know how (if possible) to adapt the Runge-Kutta using two dependent variables (x,y) and the independent one (t).

Sure it is possible. It is very straightforward. Just apply the method to all four equations at every step of the code.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 65 ·
3
Replies
65
Views
8K
  • · Replies 3 ·
Replies
3
Views
727
  • · Replies 11 ·
Replies
11
Views
895
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K