Class for calculating the properties of NFW dark matter halos at a specified redshift and mass.
More...
#include <halo.h>
|
| 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 double | MosterStellarMassFraction (double Mtotal) |
| returns the fraction of halo+galaxy in stars according to from Moster et al. 2010ApJ...710..903M
|
|
|
COSMOLOGY * | co |
|
double | m |
|
double | z |
|
double | R200 |
|
double | Rvir |
|
double | Omz |
|
double | Omo |
|
double | Oml |
|
double | sigma2M |
|
double | deltac0 |
|
Class for calculating the properties of NFW dark matter halos at a specified redshift and mass.
◆ HALOCalculator()
HALOCalculator::HALOCalculator |
( |
COSMOLOGY * | cos, |
|
|
double | mass, |
|
|
double | redshift ) |
Constructor initializing a NFW-halo.
- Parameters
-
cos | pointer to a COSMOLOGY |
mass | halo mass in M_sun/h TODO Carlo: Is this really M_sun/h |
redshift | redshift |
◆ 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
-
caseunit | set relation used - (0) Zhao et al. 2009, (1) Munoz-Cuartas et al. 2011 (2) Giocoli et al. 2012 (3) power-law c-m relation |
alpha0 | power-law slope if caseunit == 3 |
◆ getRvir()
double HALOCalculator::getRvir |
( |
int | caseunit = 0 | ) |
|
Virial radius of the halo in physical Mpc.
- Parameters
-
caseunit | by 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
-
Mtotal | total mass of halo+galaxy in solar masses |
The documentation for this class was generated from the following files:
- CosmoLib/include/halo.h
- CosmoLib/halo.cpp