Oribit integrator for a logarithmic potential

In summary, the conversation discusses the creation of an orbit integrator for solving a logarithmic potential. The approach involves using the equations of motion and the Hamiltonian formulation. However, there is difficulty in adapting the Runge-Kutta method to work with two dependent variables and an independent one.
  • #1
Serna
2
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
  • #2
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.
 
  • #3
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).
 
  • #4
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.
 

1. What is an orbit integrator for a logarithmic potential?

An orbit integrator for a logarithmic potential is a computer program that calculates the trajectory of an object under the influence of a logarithmic potential field. This type of integrator is commonly used in astrophysics to study the motion of stars and galaxies.

2. How does an orbit integrator work?

An orbit integrator works by using numerical methods to solve the equations of motion for an object in a logarithmic potential field. These equations take into account the mass of the object, the strength of the potential, and any external forces acting on the object. By iteratively calculating the position and velocity of the object at small time intervals, the orbit integrator can generate a trajectory for the object.

3. What are the advantages of using an orbit integrator for a logarithmic potential?

One advantage of using an orbit integrator for a logarithmic potential is that it allows for the simulation of complex systems with multiple objects and varying potential strengths. It also provides a more accurate representation of the motion of objects, as it takes into account the effects of gravity and other forces.

4. Are there any limitations to using an orbit integrator for a logarithmic potential?

One limitation of using an orbit integrator for a logarithmic potential is that it assumes a static potential field, meaning that it does not account for changes in the potential over time. This may be a significant limitation in certain scenarios, such as when studying the evolution of a system over a long period of time.

5. What are some practical applications of using an orbit integrator for a logarithmic potential?

An orbit integrator for a logarithmic potential can be used in a variety of fields, including astrophysics, cosmology, and celestial mechanics. It can be used to study the motion of stars and galaxies, the formation of planetary systems, and the dynamics of celestial bodies in the early universe. It can also be used to test theories and models of gravity and the structure of the universe.

Similar threads

Replies
56
Views
712
Replies
5
Views
882
  • Special and General Relativity
Replies
11
Views
207
  • Advanced Physics Homework Help
Replies
3
Views
401
  • Introductory Physics Homework Help
Replies
15
Views
274
Replies
1
Views
9K
Replies
13
Views
905
  • Advanced Physics Homework Help
Replies
19
Views
954
Replies
1
Views
9K
  • Advanced Physics Homework Help
Replies
17
Views
2K
Back
Top