8 | | The electric field generated by a point charge[[latex(Q)]]is |
9 | | |
10 | | [[latex(E=\frac{1}{4\pi\epsilon_{0}}\frac{Q}{r^{2}})]] |
11 | | |
12 | | On the other hand, the gravitational acceleration by a point mass of [[latex(M)]] is |
13 | | |
14 | | [[latex(g=-G\frac{M}{r^{2}})]] [[BR]] |
15 | | |
16 | | The Poisson equation for electrostatic potential [[latex(\phi_{e})]] is |
17 | | |
18 | | [[latex(\nabla^{2}\phi=-\frac{\rho}{\epsilon_{0}})]] |
| 8 | The electric field generated by a point charge[[latex($Q$)]]is |
| 9 | |
| 10 | [[latex($E=\frac{1}{4\pi\epsilon_{0}}\frac{Q}{r^{2}}$)]] |
| 11 | |
| 12 | On the other hand, the gravitational acceleration by a point mass of [[latex($M$)]] is |
| 13 | |
| 14 | [[latex($g=-G\frac{M}{r^{2}}$)]] [[BR]] |
| 15 | |
| 16 | The Poisson equation for electrostatic potential [[latex($\phi_{e}$)]] is |
| 17 | |
| 18 | [[latex($\nabla^{2}\phi=-\frac{\rho}{\epsilon_{0}}$)]] |
178 | | With periodic boundary conditions, we would like the total potential to be unchanged under the conversion of gas to particle. This requires adjusting the particle potential so that it has the same constant of integration as well as being periodic. When hypre solves for the potential, the constant of integration is a free parameter and I believe hypre adjusts it so that [[latex(<\phi>=0)]]. To calculate the potential of a point charge, we need the Greens function corresponding to |
179 | | |
180 | | [[latex(\nabla_D^2 G(x,y) = \delta^D(x-y))]] |
| 178 | With periodic boundary conditions, we would like the total potential to be unchanged under the conversion of gas to particle. This requires adjusting the particle potential so that it has the same constant of integration as well as being periodic. When hypre solves for the potential, the constant of integration is a free parameter and I believe hypre adjusts it so that [[latex($<\phi>=0$)]]. To calculate the potential of a point charge, we need the Greens function corresponding to |
| 179 | |
| 180 | [[latex($\nabla_D^2 G(x,y) = \delta^D(x-y)$)]] |
196 | | [[latex(\nabla^2 \phi = 4\pi G (\rho-\bar{\rho}))]], so the solution to the potential would actually be given by [[latex(\phi(y)=-\int_V{\frac{M\delta(x-y)-M/V}{|x-y|}dx})]] where [[latex(M)]] is the mass of the particle. Note this is not the same as using mirror versions of the particle... An easier way to solve this however, is to use fourier transforms. |
197 | | |
198 | | [[latex(k^2\hat{\phi}(k)=4\pi G\hat{\rho}(k))]] with [[latex(\hat{\phi}(0)=0)]]. Now [[latex(\hat{\rho}(k))]] is just the fourier transform of a delta function times the mass, which is [[latex(M)]], so [[latex(\hat\phi(k)=\frac{4\pi GM}{k^2})]] and [[latex(\phi(x)=4 \pi G M\int{\frac{1}{k^2}e^{ikx} dk})]] |
| 196 | [[latex($\nabla^2 \phi = 4\pi G (\rho-\bar{\rho})$)]], so the solution to the potential would actually be given by [[latex($\phi(y)=-\int_V{\frac{M\delta(x-y)-M/V}{|x-y|}dx}$)]] where [[latex($M$)]] is the mass of the particle. Note this is not the same as using mirror versions of the particle... An easier way to solve this however, is to use fourier transforms. |
| 197 | |
| 198 | [[latex($k^2\hat{\phi}(k)=4\pi G\hat{\rho}(k)$)]] with [[latex($\hat{\phi}(0)=0$)]]. Now [[latex($\hat{\rho}(k)$)]] is just the fourier transform of a delta function times the mass, which is [[latex($M$)]], so [[latex($\hat\phi(k)=\frac{4\pi GM}{k^2}$)]] and [[latex($\phi(x)=4 \pi G M\int{\frac{1}{k^2}e^{ikx} dk}$)]] |
202 | | [[latex(\phi(l)=\frac{4 \pi GM}{\Delta k^2} \displaystyle \sum_{j=-N/2}^{N/2}{\frac{1}{j^2}e^{2\pi ijl/N} \frac{\Delta k}{2\pi}}=\frac{4 \pi GM}{(2 \pi/L)^2}\left(\frac{2 \pi}{L}\right) \displaystyle \sum_{j=1}^{N/2}{\frac{1}{j^2}\cos(2\pi jl/N)})]] |
203 | | |
204 | | This still requires summation over many wave numbers - although the higher wave numbers have less impact because of the [[latex(k^{-2})]] dependence. However in 2D this is lessened because there are more wave vectors in each anuli, and in 3D there is equal power in each shell. This then, becomes an order N^6 operation :| |
| 202 | [[latex($\phi(l)=\frac{4 \pi GM}{\Delta k^2} \displaystyle \sum_{j=-N/2}^{N/2}{\frac{1}{j^2}e^{2\pi ijl/N} \frac{\Delta k}{2\pi}}=\frac{4 \pi GM}{(2 \pi/L)^2}\left(\frac{2 \pi}{L}\right) \displaystyle \sum_{j=1}^{N/2}{\frac{1}{j^2}\cos(2\pi jl/N)}$)]] |
| 203 | |
| 204 | This still requires summation over many wave numbers - although the higher wave numbers have less impact because of the [[latex($k^{-2}$)]] dependence. However in 2D this is lessened because there are more wave vectors in each anuli, and in 3D there is equal power in each shell. This then, becomes an order N^6 operation :| |