Gravity on a Torus?
Hey ya'll.
This is something I thought of late last night before going to sleep, and I've been scratching my head about it since then. Apologies if this is all kind of naive.
For funsies I'm going to write a 2D n-body gravitational simulator (probably in processing or python). Since the vast majority of configurations are unstable and won't be very interesting, I want to put some bounds on my "universe" to keep all the objects in a reasonable area instead of them flying off to infinity. I'll call the length scale of this universe L.
My first (and easiest) idea was to make elastic collisions when an object hits a wall. But then I considered doing a pac-man approach, where the world wraps around from one side to the other. At first I thought this would be pretty straightforward, but then I realized it was a little more subtle.
Since the gravitational fields extend to infinity, they would keep wrapping around the map over and over again. E.g. if you had two planets close to one another, they of course feel a force pulling them closer together, but also a very small force ( ∝ L^(-2) ) pulling them the opposite direction due to their attraction "the other way" around the universe. In addition, there will be an even weaker forces added to this from the gravitational field wrapping around the map twice ( ∝ [2L]^(-2) ), three times ( ∝ [3L]^(-2) ), and so on. Not only this, but to me it's pretty clear that this infinite wrap around phenomenon will occur in almost every direction! Hmmm.
So, in this toroidal topology, there is no longer a unique displacement vector between objects; instead, there are an infinite number of such vectors in every direction - which makes naively applying the old school Newtonian laws a little dizzying!
I have a suspicion that my difficulties are simply due to viewing the problem the wrong way. Instead of using the classic Newtonian view of gravity, perhaps I should take a hint from Gauss...
[; 4 \pi G = \nabla ^ 2 \phi ;]
...then maybe we could just match the boundary conditions on the edges of the map and make all the infinite sums disappear? This definitely seems like a more promising approach.
I haven't really sunk my teeth into this yet (just been mulling it over at work), but I thought this was kind of an interesting and unusual problem. If you do know a method to proceed, I'd appreciate a little hint to point me in the right direction! (And yeah, I'm sure some guy figured this out in the 1800s and already generalized it to arbitrary curvilinear spaces/topologies...)
Obviously I could just make my program only use the normal "bounded" displacement vector, but now I've gotten myself into this rabbit hole and I'm curious if this situation is tractable, or even sensible.
Posted Aug 9, 2018, 8:51 PM UTC · edited
You have the right idea in going to Poisson’s equation. Basically, the Green’s function on the 3-torus is different than the Green’s function in infinite 3D space, so Coulomb’s law is modified. I think there’s a way to get the torus greens function by “periodizing” the usual “Coulomb” greens function. I’m on mobile and on my way home from the office right now, but I’ll write a little more later.
EDIT: Ok, from uniqueness it’s actually clear that you just take Coulomb’s law and sum over all possible 3-cycles (“periodizing”). But this should also be provable from Greens functions.
Yes, the Green's function to Poisson's equation on the n-torus is different from infinite n dimensional space.
It can easily be obtained from it though, by making it not exist.
EDIT: correction.
Whoah! You have me excited, nothing lovelier than a simple question with some unexpected consequences. It's not immediately clicking for me right now, but I'll do some more thinking and look through the links you sent me later tonight. Thanks again.
Green's functions should have been my first thought! Thanks for the insight, I'm definitely gonna have to do some scribbling when I get home.
You can't have total charges on a torus, or more generally any compact space without boundary.
To visualise this, take a single point charge, where do the field lines go?
You can remedy this by including some negative energy cosmological constant term to your universe.
EDIT: References, see for example http://people.ds.cam.ac.uk/rc476/methods/sphintgf.v1.pdf or http://ocw.u-tokyo.ac.jp/lecture_files/sci_03/9/notes/en/ooguri09.pdf
Thanks so much for the resources.
If you want to figure it out for yourself and don't want to be spoiled, don't read ahead.
First of all, u/Rhinosaurier is right that you need total charge conservation. As their links show, there is still a Green's function-like thing you can find. I will find the Green's function for the Helmholtz equation [; (-\nabla^2 + m^2) \phi = f(x) ;], and then the Green's function for Laplace's equation follows from [; m \rightarrow 0 ;] with the caveat that you can only have valid solutions to [; -\nabla^2 \phi = f(x) ;] on a compact space if [; \int d^3 x , f(x) = 0 ;] (and we'll see some IR divergences in intermediate steps from the fact that the limit is a little pathological). So just keep that in mind.
Anyways, what I mean by periodizing the Coulomb potential is that the contribution to the potential due to a single charge located at point [; x' ;] is
[; V(x) = q\sum_{n_x, n_y,n_z \in \mathbb{Z}} \frac{1}{4 \pi |x - x' + n_x L_x + n_y L_y + n_z L_z|} ;]
That is, you just sum over the extra Coulomb forces from going around all possible loops of all three cycles. This clearly still satisfies the Poisson equation and it has the necessary periodicity, so it should just be the answer. (But you need another contribution with total charge [; -q ;] for this to actually be a valid solution.)
Ok, but we should be able to prove this. On the square torus (take all three sides to have length [; L ;]), momentum space is an infinite square lattice; that is
[; \phi(\mathbf{x}) = \sum_{k_x, k_y,k_z \in \mathbb{Z}} e^{i k_x x + i k_y y + i k_z z} \phi(\mathbf{k}) ;]
where [; k_i = 2 \pi n_i/L ;] for integers [; n_i ;]. Then in momentum space, [; (- \nabla^2 + m^2)G(\mathbf{x}) = \delta(\mathbf{x}) ;] becomes
[; G(\mathbf{k}) = \frac{1}{\mathbf{k}^2 + m^2} ;]
so
[; G(\mathbf{x}) = \sum_{k_x, k_y,k_z \in \mathbb{Z}} \frac{e^{i \mathbf{k} \cdot \mathbf{x}}}{\mathbf{k}^2 + m^2} ;]
Here you can see why the [; m = 0 ;] limit is pathological. The term in the sum with [; \mathbf{k} = 0;] is a big fat [; 1/m^2 ;], which just blows up. The usual way to deal with this is simply to subtract it off. Below I will effectively use a kind of analytic continuation regularization. In any case, this infinite constant is what gets cancelled if we had instead been solving a valid neutral charge config. So once again, don't use our final Green's function on configs which are not charge neutral.
Now let's use Poisson summation:
[; G(\mathbf{x}) = \sum_{k_x, k_y,k_z \in \mathbb{Z}} \frac{e^{i \mathbf{k} \cdot \mathbf{x}}}{\mathbf{k}^2 + m^2} = \sum_{n_x, n_y, n_z \in \mathbb{Z} } \int \frac{d^3 k}{(2 \pi)^3} \frac{e^{i \mathbf{k} \cdot \mathbf{x}}}{\mathbf{k}^2 + m^2} e^{- i L k_x n_x - i L k_y n_y - i L k_z n_z} ;]
or just by combining the exponents
[; G(\mathbf{x}) = \sum_{n_x, n_y, n_z \in \mathbb{Z} } \int \frac{d^3 k}{(2 \pi)^3} \frac{1}{\mathbf{k}^2 + m^2} e^{i k_x (x - L n_x) + i k_y (y - L n_y) + i k_z (z - L n_z) } ;]
Of course, the usual Coulomb potential is given by the infinite-space Green's function
[; G_{\mathbb{R}^3}(\mathbf{x}) = \int \frac{d^3 k}{(2 \pi)^3} \frac{e^{i \mathbf{k} \cdot \mathbf{x} }}{\mathbf{k}^2 + m^2} = \frac{1}{4 \pi |\mathbf{x}|} ;]
so our expression above is obviously the "periodized" version, [; G(\mathbf{x}) = \sum_{n_i \in \mathbb{Z}^3} G(x_i - n_i L) ;], as I claimed above.
In the above I got rid of the "infrared" m=0 divergence due to how we evaluated the Fourier transform of the Coulomb potential, which involves analytic continuation in the complex plane. Regularizing integrals via analytic continuation has a nice side-effect of setting certain arbitrary constants to zero. As the links u/Rhinosaurier posted show, there are other constants which can appear instead.
Edits: made a mistake in the original V(x)