Light ray paths near schwarzschild blackhole

Click For Summary
The discussion focuses on simulating light ray paths near Schwarzschild black holes, with an emphasis on plotting photon trajectories in 2D. The original poster seeks guidance on the necessary equations and methods, expressing a background in computer science but limited physics knowledge. Key points include the distinction between null geodesics for photons and timelike geodesics for observers, as well as the importance of understanding the effective potential in the Schwarzschild metric. Participants share resources, equations, and coding approaches to aid in the simulation process. The conversation highlights the complexity of accurately modeling gravitational effects on light near black holes.
  • #31
nocks said:
That would be

\frac{d^2r}{d\lambda^2} = - \frac{L^2(3M-r)}{r^4}

Which gives me the closest radius for a stable orbit of a photon as 3M

Reduce this second-order equation to two first-order equations by setting p = dr/d\lambda, so that dp/dt = d^2r/d\lambda^2. The set of equations that describes the worldline of a photon then is

<br /> \begin{equation*}<br /> \begin{split}<br /> \frac{d \phi}{d \lambda} &amp;= \frac{L}{r^2} \\<br /> \frac{dr}{d\lambda} &amp;= p \\<br /> \frac{dp}{d \lambda} &amp;= \frac{L^2(r - 3M)}{r^4}.\\<br /> \end{split}<br /> \end{equation*}<br />

Assuming that all required values are given, write a few lines of (pseudo)code that uses the simplest, most intuitive method (Euler's method) to solve these equations.
 
Physics news on Phys.org
  • #32
Having a bit of trouble with this but I have p as

p = \frac{L^2(2M-r)}{2r^3}
 
  • #33
wow it's been a while since I looked at this project.
Thought i'd come back to it :)

George Jones said:
Reduce this second-order equation to two first-order equations by setting p = dr/d\lambda, so that dp/dt = d^2r/d\lambda^2. The set of equations that describes the worldline of a photon then is

<br /> \begin{equation*}<br /> \begin{split}<br /> \frac{d \phi}{d \lambda} &amp;= \frac{L}{r^2} \\<br /> \frac{dr}{d\lambda} &amp;= p \\<br /> \frac{dp}{d \lambda} &amp;= \frac{L^2(r - 3M)}{r^4}.\\<br /> \end{split}<br /> \end{equation*}<br />

Assuming that all required values are given, write a few lines of (pseudo)code that uses the simplest, most intuitive method (Euler's method) to solve these equations.
A few questions. Since I lack a good maths background, I would appreciate some advice on how I would implement these 3 equations into a numerical solver like Euler's or Runge-Kutta to get back some results that I could plot.
e.g. Do I pre-define L?, how do I know which direction the photon is travelling?

currently trying to use this : http://www.ee.ucl.ac.uk/~mflanaga/java/RungeKutta.html
 
Last edited:

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 10 ·
Replies
10
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
17
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K