GaussianRing
- class dysmalpy.models.GaussianRing(baryon_type='gas+stars', **kwargs)[source]
Bases:
MassModel
,_LightMassModel
Mass distribution following an infinitely thin Gaussian ring profile.
- Parameters:
Notes
Model formula:
\[ \begin{align}\begin{aligned}M(r)&=M_0\exp\left(\frac{(r-r_{\rm peak})^2}{2\sigma_R^2}\right)\\\sigma_R &= \mathrm{FWHM}/(2\sqrt{2\ln 2})\end{aligned}\end{align} \]Attributes Summary
Names of the parameters that describe models of this type.
Methods Summary
Circular velocity as a function of radius
Sersic asymmetric drift term
Sersic enclosed mass
evaluate
(r, total_mass, R_peak, FWHM, ...)Gaussian ring mass surface density
Conversion from mass to light as a function of radius
Method to evaluate the gradient of the potential, \(\Delta\Phi(r)/\Delta r\).
Same as enclosed mass as this is infinitely thin gaussian ring
r_eff
()rhogas
(r)Mass density as a function of radius (if noord_flat; otherwise surface density)
sigma_R
()Gaussian ring mass surface density
vcirc_sq
(r)Square of circular velocity as a function of radius
Attributes Documentation
- FWHM = DysmalParameter('FWHM', value=1.0, bounds=(0, 50), prior=<dysmalpy.parameters.UniformPrior object>)
- R_peak = DysmalParameter('R_peak', value=1.0, bounds=(0, 50), prior=<dysmalpy.parameters.UniformPrior object>)
- mass_to_light = DysmalParameter('mass_to_light', value=1.0, fixed=True, prior=<dysmalpy.parameters.UniformPrior object>)
- param_names = ('total_mass', 'R_peak', 'FWHM', 'mass_to_light')
Names of the parameters that describe models of this type.
The parameters in this tuple are in the same order they should be passed in when initializing a model of a specific type. Some types of models, such as polynomial models, have a different number of parameters depending on some other property of the model, such as the degree.
When defining a custom model class the value of this attribute is automatically set by the
Parameter
attributes defined in the class body.
- total_mass = DysmalParameter('total_mass', value=1.0, bounds=(5, 14), prior=<dysmalpy.parameters.UniformPrior object>)
- tracer = 'mass'
Methods Documentation
- static evaluate(r, total_mass, R_peak, FWHM, mass_to_light)[source]
Gaussian ring mass surface density
- potential_gradient(r)[source]
Method to evaluate the gradient of the potential, \(\Delta\Phi(r)/\Delta r\).
- vcirc_sq(r)[source]
Square of circular velocity as a function of radius
- Parameters:
r (float or array) – Radii at which to calculate the enclosed mass
- Returns:
vcirc_sq – Square of circular velocity in km^2/s^2
- Return type:
float or array
Notes
Calculated as \(v_{\mathrm{circ}}^2(R) = R * \partial \Phi / \partial R\) from the gradient of the potential, as the potential gradient has negative values.