by floxy · 1y ago · 0 comments
"...in fact, an atomic clock located in a galaxy could tick up to a third slower than the same clock in the middle of a void."
Maybe there is an nice simple formula assuming a uniform disk relating the time dilation to radius? I've always been under the impression that general relativity simulations needed supercomputers, but maybe current desktop machines are sufficiently "super" compared to 20 years ago that we could do simple calculations? Anyone have a recommendation on where to start learning enough general relativity to make a computer program? Assuming you've have a couple semesters of calculus-based college physics 101 under your belt as the prerequisite?
General Relativity is incredibly math heavy but fundamentally the numerical methods involved are standard methods for differential equations. The hard part is going from the math to a solvable form. See https://arxiv.org/pdf/2008.12931 for a broad overview. This will of course probably not make sense without an introduction to differential geometry, a beast of a topic itself. See some big textbook like https://arxiv.org/pdf/2412.08026 or find yourself a copy of Gravitation by Misner, Thorne and Wheeler.
I did find "Functional Differential Geometry":
https://mitp-content-server.mit.edu/books/content/sectbyfn/b...
...which uses Scheme to teach differential geometry. I would need to learn quite a bit more before tackling that book. Maybe something like: "Structure and Interpretation of Classical Mechanics"?
https://mitp-content-server.mit.edu/books/content/sectbyfn/b...
...but even there, it looks like I would need to start with something more basic.
The main problem is that you need to have some intuition about what the formula is supposed do in order to test your code to make sure you've not made a silly mistake, and that relativity is very unintuitive.
There's probably some existing python library that already does all of it, may be best to start with one of them.
Precession of Mercury around the Sun?
I guess you can find repos on Github (first Google result for me was this: https://github.com/spacetimeengineer/spacetimeengine) and try your hand. But the theoretical aspect is intimidating, for sure.
As for getting up to speed in the theory, I cannot but recommend Leonard Susskind lectures on GR that are available on YouTube. Susskind may be best known as one of the founding fathers of String Theory but the man is an exceptionally great teacher on this subject.
Of course you can just use the Einstein field equations, but that's more work, though not an approximation. You'll need a good model of the mass distribution in the universe in order to actually get good answers.