Changes between Version 28 and Version 29 of SelfGravityDevel


Ignore:
Timestamp:
02/04/13 15:21:37 (12 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • SelfGravityDevel

    v28 v29  
    2222 [[latex(\nabla^{2}\phi=4\pi G\rho)]]
    2323
    24 where [[latex($\rho$)]] is the mass density. This equation describes how the potential [[latex($\phi$)]] is determined by the mass density distribution.
    25 
    26 For example, consider the uniform density distribution
     24 where [[latex(\rho)]] is the mass density. This equation describes how the potential [[latex(\phi)]] is determined by the mass density distribution.
     25
     26 For example, consider the uniform density distribution
    2727
    2828{{{
     
    3434\end{equation}
    3535}}}
    36 Use spherical coordinates, the Poisson equation for the density distribution Equation (1) can be written as
     36 Use spherical coordinates, the Poisson equation for the density distribution Equation (1) can be written as
    3737
    3838{{{
     
    6464=== Free-fall Time ===
    6565
    66 The free-fall time is the characteristic time that would take a body to collapse under its own gravitational attraction, if no other forces existed to oppose the collapse.
    67 Using the Gauss's theorem, the gravitional acceleration [[latex($g_{r}$)]] is given by
     66 The free-fall time is the characteristic time that would take a body to collapse under its own gravitational attraction, if no other forces existed to oppose the collapse.
     67 Using Gauss's theorem, the gravitational acceleration [[latex(g_{r})]] is given by
    6868{{{
    6969#!latex
     
    7272\end{equation}
    7373}}}
    74 where [[latex($M_{r}$)]] is the mass inside [[latex($r$)]]
     74 where [[latex(M_{r})]] is the mass inside [[latex(r)]]
    7575{{{
    7676#!latex
     
    7979\end{equation}
    8080}}}
    81 So the equation of motion for a gas molecule under a control of the self-gravity can be written as
     81 So the equation of motion for a gas molecule under a control of the self-gravity can be written as
    8282{{{
    8383#!latex
     
    8686\end{equation}
    8787}}}
    88 Equation (7) can be written as the form of the conservation of mechanical energy
     88 Equation (7) can be written as the form of the conservation of mechanical energy
    8989{{{
    9090#!latex
     
    9393\end{equation}
    9494}}}
    95 Suppose the gas molecule is initially located at [[latex($r=R$)]]. So the total energy
     95 Suppose the gas molecule is initially located at [[latex(r=R)]]. So the total energy
    9696{{{
    9797#!latex
     
    100100\end{equation}
    101101}}}
    102 Now consider gas collapse. So [[latex($M_{r}= M_{r}(R)$)]]. Equation (8) gives
     102 Now consider gas collapse. So [[latex(M_{r}= M_{r}(R))]]. Equation (8) gives
    103103{{{
    104104#!latex
     
    114114\end{equation}
    115115}}}
    116 From the initial state we have [[latex($\eta(t=0)=0$)]]. So Equation (10) reduces to
     116 From the initial state we have [[latex(\eta(t=0)=0)]]. So Equation (10) reduces to
    117117{{{
    118118#!latex
     
    121121\end{equation}
    122122}}}
    123 Solve Equation (12) we have
     123 Solve Equation (12) we have
    124124{{{
    125125#!latex
     
    128128\end{equation}
    129129}}}
    130 Let [[latex($r=0$)]] or [[latex($\eta=\frac{\pi}{2}$)]]. we have the free-fall time
     130 Let [[latex(r=0)]] or [[latex(\eta=\frac{\pi}{2})]]. we have the free-fall time
    131131{{{
    132132#!latex
     
    138138\end{equation}
    139139}}}
    140 where
     140 where
    141141{{{
    142142#!latex
     
    145145\end{equation}
    146146}}}
    147 is the average density of the gas.
     147 is the average density of the gas.
    148148
    149149
    150150== Implementation ==
    151151=== Uniform Density Cloud ===
    152 In this section we consider the problem of the collapse of a pressureless ([[latex($T=0$)]]), uniform, initially motionless cloud which has an analytic solution.
    153 
    154 The definition of [[latex($\eta$)]] in Equation (11) can also be written as
     152 In this section we consider the problem of the collapse of a pressureless ([[latex(T=0)]]), uniform, initially motionless cloud which has an analytic solution.
     153
     154 The definition of [[latex(\eta)]] in Equation (11) can also be written as
    155155{{{
    156156#!latex
     
    159159\end{equation}
    160160}}}
    161 From Equations (13) and (14) we have
     161 From Equations (13) and (14) we have
    162162{{{
    163163#!latex
     
    166166\end{equation}
    167167}}}
    168 Equation (17) describes the time it takes for the cloud to collapse to a density [[latex($\rho$)]].
     168 Equation (17) describes the time it takes for the cloud to collapse to a density [[latex(\rho)]].
    169169
    170170=== Boundary Conditions ===
     
    175175
    176176=== Some notes on periodic BC's and particles ===
    177 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
    178 
    179  [[latex($\nabla_D^2 G(x,y) = \delta^D(x-y)$)]]
     177With 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
     178
     179 [[latex(\nabla_D^2 G(x,y) = \delta^D(x-y))]]
    180180
    181181 where D is the dimenesion of the problem.  For 3D,
    182182
    183  [[latex($G(x,y)=\frac{-1}{4\pi|x-y|}$)]]
     183 [[latex(G(x,y)=\frac{-1}{4\pi|x-y|})]]
    184184
    185185 and for 2D,
    186186
    187  [[latex($G(x,y)=\frac{\ln(|x-y|)}{2\pi}$)]]
     187 [[latex(G(x,y)=\frac{\ln(|x-y|)}{2\pi})]]
    188188
    189189 and for 1D,
    190190
    191  [[latex($G(x,y)=\frac{|x-y|}{2}$)]]
     191 [[latex(G(x,y)=\frac{|x-y|}{2})]]
    192192
    193193Now with periodic BC's, the solution to the gas potential is given by
    194194
    195  [[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. 
    196 
    197  [[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}$)]]
     195 [[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. 
     196
     197 [[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})]]
    198198
    199199 This can be discretized as
    200200
    201  [[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)}$)]]
    202 
    203  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 :| 
     201 [[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)})]]
     202
     203 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 :| 
    204204
    205205 Solutions: