v_circular

dysmalpy.models.v_circular(mass_enc, r)[source]

Circular velocity given an enclosed mass and radius

\[v(r) = \sqrt{(GM(r)/r)}\]
Parameters:
  • mass_enc (float) – Enclosed mass in solar units

  • r (float or array) – Radius at which to calculate the circular velocity in kpc

Returns:

vcirc – Circular velocity in km/s as a function of radius

Return type:

float or array