GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
HALOCalculator Class Reference

Class for calculating the properties of NFW dark matter halos at a specified redshift and mass. More...

#include <halo.h>

Collaboration diagram for HALOCalculator:

Public Member Functions

 HALOCalculator (COSMOLOGY *co, double mass, double redshift)
 Constructor initializing a NFW-halo.
 
double getMass ()
 
double getZ ()
 
double getRvir (int caseunit=0)
 Virial radius of the halo in physical Mpc.
 
double getR200 ()
 Radius in physical Mpc at which the enclosed density reach 200 times the critical value at that redshift.
 
double getConcentration (int caseunit=0, double alpha0=-0.1)
 The halo concentration according to Zhao et al. 2009 is returned, if the integer 1 is given the concentration according to Munoz-Cuartas et al. 2011 is returned if 2 the concentration according to Giocoli et al. 2012 is returned is returned.
 
double getFormationTime (double f=0.5)
 The median time at which the main halo progenitor assembles 50% of the halo mass, if 0<f<1 is given, is returned the redshift at which this fraction is assembled.
 
double getFormationRedshift (double f=0.5)
 The median redshift at which the main halo progenitor assembles 50% of the halo mass, if 0<f<1 is given, is returned the redshift at which this fraction is assembled.
 
void reset (double, double)
 Reset halo mass and redshift.
 

Static Public Member Functions

static double MosterStellarMassFraction (double Mtotal)
 returns the fraction of halo+galaxy in stars according to from Moster et al. 2010ApJ...710..903M
 

Protected Attributes

COSMOLOGYco
 
double m
 
double z
 
double R200
 
double Rvir
 
double Omz
 
double Omo
 
double Oml
 
double sigma2M
 
double deltac0
 

Detailed Description

Class for calculating the properties of NFW dark matter halos at a specified redshift and mass.

Constructor & Destructor Documentation

◆ HALOCalculator()

HALOCalculator::HALOCalculator ( COSMOLOGY * cos,
double mass,
double redshift )

Constructor initializing a NFW-halo.

Parameters
cospointer to a COSMOLOGY
masshalo mass in M_sun/h TODO Carlo: Is this really M_sun/h
redshiftredshift

Member Function Documentation

◆ getConcentration()

double HALOCalculator::getConcentration ( int caseunit = 0,
double alpha0 = -0.1 )

The halo concentration according to Zhao et al. 2009 is returned, if the integer 1 is given the concentration according to Munoz-Cuartas et al. 2011 is returned if 2 the concentration according to Giocoli et al. 2012 is returned is returned.

Parameters
caseunitset relation used - (0) Zhao et al. 2009, (1) Munoz-Cuartas et al. 2011 (2) Giocoli et al. 2012 (3) power-law c-m relation
alpha0power-law slope if caseunit == 3

◆ getRvir()

double HALOCalculator::getRvir ( int caseunit = 0)

Virial radius of the halo in physical Mpc.

Parameters
caseunitby default uses the Brayan and Norman fit, if equal to 1 uses the fit by Felix and Stoer

◆ MosterStellarMassFraction()

double HALOCalculator::MosterStellarMassFraction ( double Mtotal)
static

returns the fraction of halo+galaxy in stars according to from Moster et al. 2010ApJ...710..903M

Parameters
Mtotaltotal mass of halo+galaxy in solar masses

The documentation for this class was generated from the following files: