sersic_menc_2D_proj

dysmalpy.models.sersic_menc_2D_proj(r, mass, n, r_eff)[source]

Enclosed mass as a function of r for a generic sersic model

Parameters:
  • r (float or array) – Radius or radii at which to calculate the surface mass density

  • mass (float) – Total mass of the Sersic component

  • n (float) – Sersic index

  • r_eff (float) – Effective radius

Returns:

menc – Enclosed mass as a function of r

Return type:

float or array

Notes

This function is only valid in the case of an infinite cylinder