galpy.potential.Potential.dens¶
- Potential.dens(R, z, phi=0.0, t=0.0, forcepoisson=False)[source]¶
Evaluate the density rho(R,z,t).
- Parameters:
R (float or Quantity) – Cylindrical Galactocentric radius.
z (float or Quantity) – Vertical height.
phi (float or Quantity, optional) – Azimuth (default: 0.0).
t (float or Quantity, optional) – Time (default: 0.0).
forcepoisson (bool, optional) – If True, calculate the density through the Poisson equation, even if an explicit expression for the density exists (default: False).
- Returns:
rho (R,z,phi,t).
- Return type:
float or Quantity
Notes
2010-08-08 - Written - Bovy (NYU)
2018-03-21 - Modified - Webb (UofT)