virial_radius_critical_density

clustertools.analysis.functions.virial_radius_critical_density(cluster, H=70.0, Om=0.3, overdens=200.0, projected=False, plot=False, **kwargs)[source]

Calculate virial radius of the cluster

  • Virial radius is defined as the radius at which the density is equal to the critical density of the Universe at the redshift of the system, multiplied by an overdensity constant

  • Note that this a quick method that is a bit of an approximation as it interpolates the cluster’s density profile. A more accurate (but expensive)

approach would be to subtract the product of the critical density and the overdensity constant from the density profile and find the root (in development)

Parameters:
clusterclass

StarCluster

Hfloat

Hubble constant

Omfloat

density of matter

overdensfloat

overdensity constant

projectedbool

calculate projected virial radius (default: False)

plotbool

plot cluster density profile and illustrate virial radius calculation

Returns:
r_vfloat

virial radius

Other Parameters:
kwargsstr

key word arguments for plotting function