Skip to content

Commit

Permalink
Update the documentation for the Dehnen bar potential
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jun 24, 2017
1 parent dec2f12 commit 1139dbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion doc/source/reference/potential.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Triaxial and bar potentials
.. toctree::
:maxdepth: 2

potentialdehnenbar.rst
potentialdoublepowertriaxial.rst
potentialferrers.rst
potentialmovingobj.rst
Expand Down Expand Up @@ -268,7 +269,7 @@ potentials in the mid-plane.
toPlanarPotential (general) <potential2dtoplanar.rst>
RZToplanarPotential <potential2dRZtoplanar.rst>

In addition, a two-dimensional bar potential and a two spiral potentials are included
In addition, a two-dimensional bar potential, two spiral potentials, and some static non-axisymmetric perturbations are included

.. toctree::
:maxdepth: 2
Expand Down
10 changes: 5 additions & 5 deletions galpy/potential_src/DehnenBarPotential.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
from astropy import units
_degtorad= numpy.pi/180.
class DehnenBarPotential(Potential):
"""Class that implements the Dehnen bar potential (Dehnen 2000)
"""Class that implements the Dehnen bar potential (`Dehnen 2000 <http://adsabs.harvard.edu/abs/2000AJ....119..800D>`__), generalized to 3D following `Monari et al. (2016) <http://adsabs.harvard.edu/abs/2016MNRAS.461.3835M>`__
.. math::
\\Phi(R,\\phi) = A_b(t)\\,\\cos\\left(2\\,(\\phi-\\Omega_b\\,t)\\right))\\times \\begin{cases}
-(R_b/R)^3\\,, & \\text{for}\\ R \\geq R_b\\\\
(R/R_b)^3-2\\,, & \\text{for}\\ R\\leq R_b.
\\Phi(R,z,\\phi) = A_b(t)\\,\\cos\\left(2\\,(\\phi-\\Omega_b\\,t)\\right))\\,\\left(\\frac{R}{r}\\right)^2\\,\\times \\begin{cases}
-(R_b/r)^3\\,, & \\text{for}\\ r \\geq R_b\\\\
(r/R_b)^3-2\\,, & \\text{for}\\ r\\leq R_b.
\\end{cases}
where
where :math:`r^2 = R^2+z^2` is the spherical radius and
.. math::
Expand Down

0 comments on commit 1139dbf

Please sign in to comment.