wiki:SelfGravityDevel

Version 12 (modified by Baowei Liu, 13 years ago) ( diff )

Self Gravity

(This is a skeleton while a new version of this page is under construction.)

Physics

Poisson Equation of Self Gravity

The electric field generated by a point charge is

On the other hand, the gravitational acceleration by a point mass of is


The Poisson equation for electrostatic potential is

Analytically we can get the Poisson equation for the gravity

where is the mass density. This equation describes how the potential is determined by the mass density distribution.

For example, consider the uniform density distribution

%%(latexrender) [tex] \rho=\begin{cases} \rho_{0}, &r<R

0, & r\ge R

\end{cases}$)]]

[\tex]

Implementation

Boundary Conditions

Present Considerations

Some notes on periodic BC's and particles

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 . To calculate the potential of a point charge, we need the Greens function corresponding to

where D is the dimenesion of the problem. For 3D,

and for 2D,

and for 1D,

Now with periodic BC's, the solution to the gas potential is given by

, so the solution to the potential would actually be given by where 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.

with . Now is just the fourier transform of a delta function times the mass, which is , so and

This can be discretized as

This still requires summation over many wave numbers - although the higher wave numbers have less impact because of the 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 N6 operation :|

Solutions:

  • Don't ever use sink potential?
  • Don't use sink potential to update gas potential
  • Solve for gas potential after accretion?
Note: See TracWiki for help on using the wiki.