autogalaxy.profiles.mass.NFWTruncatedMCRDuffySph#

class NFWTruncatedMCRDuffySph[source]#

Bases: NFWTruncatedSph

Input m200: The m200 of the NFW part of the corresponding tNFW part. Unit: M_sun.

Methods

angle

The position angle in degrees of the major-axis of the ellipse defined by profile, defined counter clockwise from the positive x-axis (0.0 > angle > 180.0).

angle_radians

The position angle in radians of the major-axis of the ellipse defined by profile, defined counter clockwise from the positive x-axis (0.0 > angle > 2pi).

angle_to_profile_grid_from

The angle between each angle theta on the grid and the profile, in radians.

axis_ratio

The ratio of the minor-axis to major-axis (b/a) of the ellipse defined by profile (0.0 > q > 1.0).

concentration

concentration_func

convergence_2d_from

Calculate the projected convergence at a given set of arc-second gridded coordinates.

convergence_func

Returns the convergence of the mass profile as a function of the radial coordinate.

coord_func_f

Given an array grid_radius and a work array f, fill f[i] with

coord_func_g

Vectorized version of the original looped coord_func_g_jit.

coord_func_h

coord_func_k

coord_func_l

coord_func_m

deflection_func_sph

deflections_2d_via_potential_2d_from

Returns the 2D deflection angles of the mass profile by numerically differentiating the lensing potential on the input grid.

deflections_yx_2d_from

Calculate the deflection angles at a given set of arc-second gridded coordinates.

delta_concentration

density_3d_func

density_between_circular_annuli

Calculate the mass between two circular annuli and compute the density by dividing by the annuli surface area.

eccentric_radii_grid_from

Convert a grid of (y,x) coordinates to an eccentric radius: :math: axis_ratio^0.5 (x^2 + (y^2/q))^0.5

elliptical_radii_grid_from

Convert a grid of (y,x) coordinates to their elliptical radii values: :math: (x^2 + (y^2/q))^0.5

extract_attribute

Returns an attribute of a class and its children profiles in the galaxy as a ValueIrregular or Grid2DIrregular object.

from_m200_concentration

Construct an NFWTruncatedSph from the halo virial mass M_200 and concentration rather than the lensing parameters (kappa_s, scale_radius, truncation_radius).

has

Returns True if any attribute of this profile is an instance of the input class cls, else False.

m200_concentration_from

Recover the virial mass M_200 and concentration from lensing parameters.

mass_angular_within_circle_from

Integrate the mass profiles's convergence profile to compute the total mass within a circle of specified radius.

mass_at_200_solar_masses

mass_at_truncation_radius_solar_mass

mass_integral

Integrand used by mass_angular_within_circle_from to compute the total projected mass within a circle.

mass_ratio_from_concentration_and_truncation_factor

Mass ratio of a truncated NFW halo to its untruncated M_200 value.

potential_2d_from

Returns the 2D lensing potential of the mass profile from a 2D grid of Cartesian (y,x) coordinates.

potential_func

Returns the integrand of the lensing potential at a single point, used in numerical integration schemes for computing the potential from the mass profile's convergence.

radial_grid_from

Convert a grid of (y, x) coordinates, to their radial distances from the profile centre (e.g. :math: r = sqrt(x**2 + y**2)).

radius_at_200

Returns r_{200m} for this halo in arcseconds

rho_at_scale_radius_solar_mass_per_kpc3

The Cosmic average density is defined at the redshift of the profile.

rotated_grid_from_reference_frame_from

Rotate a grid of (y,x) coordinates which have been transformed to the elliptical reference frame of a profile back to the original unrotated coordinate grid reference frame.

transformed_from_reference_frame_grid_from

Transform a grid of (y,x) coordinates from the reference frame of the profile to the original observer reference frame.

transformed_to_reference_frame_grid_from

Transform a grid of (y,x) coordinates to the reference frame of the profile.

Attributes

average_convergence_of_1_radius

The radius a critical curve forms for this mass profile, e.g. where the mean convergence is equal to 1.0.

ellipticity_rescale

A rescaling factor applied to account for the ellipticity of the mass profile when computing the Einstein radius from the average convergence equals unity criterion.

epsrel