StandardCosmologyWrapper¶
- class StandardCosmologyWrapper(cosmo: FLRW)[source]¶
Bases:
CosmologyWrapper,NeutrinoComponent,BaryonComponent,PhotonComponent,DarkMatterComponent,MatterComponent,DarkEnergyComponent,CurvatureComponent,TotalComponent,HubbleParameter,CriticalDensity,DistanceMeasuresThe Cosmology API wrapper for
FLRW.Attributes
Hubble parameter at redshift 0 in km s-1 Mpc-1.
Effective number of neutrino species.
Omega baryon; baryon density/critical density at z=0.
Omega dark energy; dark energy density/critical density at z=0.
Omega dark matter; dark matter density/critical density at z=0.
Omega gamma; the density/critical density of photons at z=0.
Omega curvature; the effective curvature density/critical density at z=0.
Omega matter; matter density/critical density at z=0.
Omega nu; the density/critical density of neutrinos at z=0.
Omega total; the total density/critical density at z=0.
CMB temperature in K at z=0.
The constants namespace for this cosmology object.
Critical density at z = 0 in Msol Mpc-3.
Hubble distance in Mpc.
Hubble time in Gyr.
Neutrino mass in eV.
The name of the cosmology instance.
Scale factor at z=0.
Methods
H(z, /)Hubble parameter \(H(z)\) in km s-1 Mpc-1.
H_over_H0(z, /)Standardised Hubble function \(E(z) = H(z)/H_0\).
Omega_b(z, /)Redshift-dependent baryon density parameter.
Omega_de(z, /)Redshift-dependent dark energy density parameter.
Omega_dm(z, /)Redshift-dependent dark matter density parameter.
Omega_gamma(z, /)Redshift-dependent photon density parameter.
Omega_k(z, /)Redshift-dependent curvature density parameter.
Omega_m(z, /)Redshift-dependent non-relativistic matter density parameter.
Omega_nu(z, /)Redshift-dependent neutrino density parameter.
Omega_tot(z, /)Omega total; the total density/critical density at z=0.
T_cmb(z, /)CMB temperature in K at redshift z.
age(z, /)Age of the universe in Gyr at redshift
z.angular_diameter_distance(z1[, z2])Angular diameter distance \(d_A(z)\) in Mpc.
comoving_distance(z1[, z2])Comoving line-of-sight distance \(d_c(z1, z2)\) in Mpc.
comoving_volume(z1[, z2])Comoving volume in cubic Mpc.
critical_density(z, /)Redshift-dependent critical density in Msol Mpc-3.
Differential comoving volume in cubic Mpc per steradian.
inv_comoving_distance(dc, /)Redshift at a given comoving line-of-sight distance.
lookback_distance(z1[, z2])Lookback distance \(d_T\) in Mpc.
lookback_time(z1[, z2])Lookback time in Gyr.
luminosity_distance(z1[, z2])Redshift-dependent luminosity distance \(d_L(z1, z2)\) in Mpc.
proper_distance(z1[, z2])Proper distance \(d\) in Mpc.
proper_time(z1[, z2])Proper time \(t\) in Gyr.
scale_factor(z, /)Redshift-dependenct scale factor.
transverse_comoving_distance(z1[, z2])Transverse comoving distance \(d_M(z1, z2)\) in Mpc.
Methods
H(z, /)Hubble parameter \(H(z)\) in km s-1 Mpc-1.
H_over_H0(z, /)Standardised Hubble function \(E(z) = H(z)/H_0\).
Omega_b(z, /)Redshift-dependent baryon density parameter.
Omega_de(z, /)Redshift-dependent dark energy density parameter.
Omega_dm(z, /)Redshift-dependent dark matter density parameter.
Omega_gamma(z, /)Redshift-dependent photon density parameter.
Omega_k(z, /)Redshift-dependent curvature density parameter.
Omega_m(z, /)Redshift-dependent non-relativistic matter density parameter.
Omega_nu(z, /)Redshift-dependent neutrino density parameter.
Omega_tot(z, /)Omega total; the total density/critical density at z=0.
T_cmb(z, /)CMB temperature in K at redshift z.
__init__(cosmo)age(z, /)Age of the universe in Gyr at redshift
z.angular_diameter_distance(z1[, z2])Angular diameter distance \(d_A(z)\) in Mpc.
comoving_distance(z1[, z2])Comoving line-of-sight distance \(d_c(z1, z2)\) in Mpc.
comoving_volume(z1[, z2])Comoving volume in cubic Mpc.
critical_density(z, /)Redshift-dependent critical density in Msol Mpc-3.
Differential comoving volume in cubic Mpc per steradian.
inv_comoving_distance(dc, /)Redshift at a given comoving line-of-sight distance.
lookback_distance(z1[, z2])Lookback distance \(d_T\) in Mpc.
lookback_time(z1[, z2])Lookback time in Gyr.
luminosity_distance(z1[, z2])Redshift-dependent luminosity distance \(d_L(z1, z2)\) in Mpc.
proper_distance(z1[, z2])Proper distance \(d\) in Mpc.
proper_time(z1[, z2])Proper time \(t\) in Gyr.
scale_factor(z, /)Redshift-dependenct scale factor.
transverse_comoving_distance(z1[, z2])Transverse comoving distance \(d_M(z1, z2)\) in Mpc.
Attributes
Hubble parameter at redshift 0 in km s-1 Mpc-1.
Effective number of neutrino species.
Omega baryon; baryon density/critical density at z=0.
Omega dark energy; dark energy density/critical density at z=0.
Omega dark matter; dark matter density/critical density at z=0.
Omega gamma; the density/critical density of photons at z=0.
Omega curvature; the effective curvature density/critical density at z=0.
Omega matter; matter density/critical density at z=0.
Omega nu; the density/critical density of neutrinos at z=0.
Omega total; the total density/critical density at z=0.
CMB temperature in K at z=0.
The constants namespace for this cosmology object.
Critical density at z = 0 in Msol Mpc-3.
Hubble distance in Mpc.
Hubble time in Gyr.
Neutrino mass in eV.
The name of the cosmology instance.
Scale factor at z=0.
The underlying
FLRWinstance.- H(z: Quantity | NDFloating | float, /) Quantity¶
Hubble parameter \(H(z)\) in km s-1 Mpc-1.
- Parameters:
- z
Array The redshift(s) at which to evaluate the Hubble parameter.
- z
- Returns:
Array
- property H0: Quantity¶
Hubble parameter at redshift 0 in km s-1 Mpc-1.
- H_over_H0(z: Quantity | NDFloating | float, /) Quantity¶
Standardised Hubble function \(E(z) = H(z)/H_0\).
- Parameters:
- z
Array The redshift(s) at which to evaluate.
- z
- Returns:
Array
- Omega_b(z: InputT, /) Quantity¶
Redshift-dependent baryon density parameter.
- Parameters:
- z
Array, positional-only Input redshift.
- z
- Returns:
Array
- Omega_de(z: InputT, /) Quantity¶
Redshift-dependent dark energy density parameter.
- Parameters:
- z
Array, positional-only Input redshift.
- z
- Returns:
Array
- Omega_dm(z: InputT, /) Quantity¶
Redshift-dependent dark matter density parameter.
- Parameters:
- z
Array, positional-only Input redshift.
- z
- Returns:
Array
Notes
This does not include neutrinos, even if non-relativistic at the redshift of interest.
- Omega_gamma(z: InputT, /) Quantity¶
Redshift-dependent photon density parameter.
- Parameters:
- z
Array, positional-only Input redshift.
- z
- Returns:
Array
- Omega_k(z: InputT, /) Quantity¶
Redshift-dependent curvature density parameter.
- Parameters:
- z
Array, positional-only Input redshift.
- z
- Returns:
Array
- property Omega_k0: Quantity¶
Omega curvature; the effective curvature density/critical density at z=0.
- Omega_m(z: InputT, /) Quantity¶
Redshift-dependent non-relativistic matter density parameter.
- Parameters:
- z
Array, positional-only Input redshift.
- z
- Returns:
Array
Notes
This does not include neutrinos, even if non-relativistic at the redshift of interest; see Omega_nu.
- Omega_nu(z: InputT, /) Quantity¶
Redshift-dependent neutrino density parameter.
- Parameters:
- z
Array, positional-only Input redshift.
- z
- Returns:
Array
- Omega_tot(z: InputT, /) Quantity¶
Omega total; the total density/critical density at z=0.
- T_cmb(z: InputT, /) Quantity¶
CMB temperature in K at redshift z.
- Parameters:
- z
Quantity, positional-only Input redshift.
- z
- Returns:
Quantity
- age(z: InputT, /) Quantity¶
Age of the universe in Gyr at redshift
z.- Parameters:
- z
Quantity Input redshift.
- z
- Returns:
Quantity
- angular_diameter_distance(z1: InputT, z2: InputT | None = None, /) Quantity¶
Angular diameter distance \(d_A(z)\) in Mpc.
This gives the proper (sometimes called ‘physical’) transverse distance corresponding to an angle of 1 radian for an object at redshift
z([1], [2], [3]).- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the distance \(d_A(0, z)\) is returned. If two argumentsz1, z2are given, the distance \(d_A(z_1, z_2)\) is returned.
- z
- Returns:
Quantity
References
- comoving_distance(z1: InputT, z2: InputT | None = None, /) Quantity¶
Comoving line-of-sight distance \(d_c(z1, z2)\) in Mpc.
The comoving distance along the line-of-sight between two objects remains constant with time for objects in the Hubble flow.
- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the time \(t_T(0, z)\) is returned. If two argumentsz1, z2are given, the time \(t_T(z_1, z_2)\) is returned.
- z
- Returns:
Quantity
- comoving_volume(z1: InputT, z2: InputT | None = None, /) Quantity¶
Comoving volume in cubic Mpc.
This is the volume of the universe encompassed by redshifts less than
z. For the case of \(\Omega_k = 0\) it is a sphere of radius comoving_distance but it is less intuitive if \(\Omega_k\) is not.- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the volume \(V_c(0, z)\) is returned. If two argumentsz1, z2are given, the volume \(V_c(z_1, z_2)\) is returned.
- z
- Returns:
Quantity
- property constants: CosmologyConstantsNamespace¶
The constants namespace for this cosmology object.
- critical_density(z: Quantity | NDFloating | float, /) Quantity¶
Redshift-dependent critical density in Msol Mpc-3.
- property critical_density0: Quantity¶
Critical density at z = 0 in Msol Mpc-3.
- differential_comoving_volume(z: InputT, /) Quantity¶
Differential comoving volume in cubic Mpc per steradian.
If \(V_c\) is the comoving volume of a redshift slice with solid angle \(\Omega\), this function returns
\[\mathtt{differential\_comoving\_volume(z)} = \frac{dV_c}{d\Omega \, dz} = \frac{c \, d_M^2(z)}{H(z)} \;.\]- Parameters:
- z
Quantity, positional-only Input redshift
- z
- Returns:
QuantityThe differential comoving volume \(dV_c\) in Mpc3 sr-1.
- property hubble_distance: Quantity¶
Hubble distance in Mpc.
- property hubble_time: Quantity¶
Hubble time in Gyr.
- inv_comoving_distance(dc: InputT, /) Array¶
Redshift at a given comoving line-of-sight distance.
The redshift at a comoving distance along the line-of-sight between two objects.
- Parameters:
- dc
Array, positional-only The comoving line-of-sight distance \(d_c\) in Mpc.
- dc
- Returns:
ArrayThe redshift at a given comoving line-of-sight distance.
- lookback_distance(z1: InputT, z2: InputT | None = None, /) Quantity¶
Lookback distance \(d_T\) in Mpc.
The lookback distance is the subjective distance it took light to travel from redshift
z1toz2.- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the distance \(d_T(0, z)\) is returned. If two argumentsz1, z2are given, the distance \(d_T(z_1, z_2)\) is returned.
- z
- Returns:
QuantityThe lookback distance \(d_T\) in Mpc.
- lookback_time(z1: InputT, z2: InputT | None = None, /) Quantity¶
Lookback time in Gyr.
The lookback time is the time that it took light from being emitted at one redshift to being observed at another redshift. Effectively it is the difference between the age of the Universe at the two redshifts.
- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the time \(t_T(0, z)\) is returned. If two argumentsz1, z2are given, the time \(t_T(z_1, z_2)\) is returned.
- z
- Returns:
Quantity
- luminosity_distance(z1: InputT, z2: InputT | None = None, /) Quantity¶
Redshift-dependent luminosity distance \(d_L(z1, z2)\) in Mpc.
This is the distance to use when converting between the bolometric flux from an object at redshift
zand its bolometric luminosity [1].- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the distance \(d_L(0, z)\) is returned. If two argumentsz1, z2are given, the distance \(d_L(z_1, z_2)\) is returned.
- z
- Returns:
Quantity
References
[1]Weinberg, 1972, pp 420-424; Weedman, 1986, pp 60-62.
- proper_distance(z1: InputT, z2: InputT | None = None, /) Quantity¶
Proper distance \(d\) in Mpc.
The proper distance is the distance between two objects at redshifts
z1andz2, including the effects of the expansion of the universe.- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the distance \(d(0, z)\) is returned. If two argumentsz1, z2are given, the distance \(d(z_1, z_2)\) is returned.
- z
- Returns:
QuantityThe proper distance \(d\) in Mpc.
- proper_time(z1: InputT, z2: InputT | None = None, /) Quantity¶
Proper time \(t\) in Gyr.
The proper time is the proper distance divided by
c.- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the time \(t(0, z)\) is returned. If two argumentsz1, z2are given, the time \(t(z_1, z_2)\) is returned.
- z
- Returns:
QuantityThe proper time \(t\) in Gyr.
- scale_factor(z: InputT, /) Quantity¶
Redshift-dependenct scale factor.
The scale factor is defined as \(a = a_0 / (1 + z)\).
- Parameters:
- z
Quantityorfloat, positional-only The redshift(s) at which to evaluate the scale factor.
- z
- Returns:
Quantity
- transverse_comoving_distance(z1: InputT, z2: InputT | None = None, /) Quantity¶
Transverse comoving distance \(d_M(z1, z2)\) in Mpc.
This value is the transverse comoving distance at redshift
zcorresponding to an angular separation of 1 radian. This is the same as the comoving distance if \(\Omega_k\) is zero (as in the current concordance Lambda-CDM model).- Parameters:
- z
Quantity, positional-only - z1, z2
Quantity, positional-only Input redshifts. If one argument
zis given, the time \(d_M(0, z)\) is returned. If two argumentsz1, z2are given, the time \(d_M(z_1, z_2)\) is returned.
- z
- Returns:
Quantity