GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
halo.h
1/*
2 * halo.h
3 *
4 * Created on: Feb 2, 2012
5 * Author: cgiocoli
6 *
7 * This class implement the properties of an NFW-halo
8 */
9
10#ifndef HALO_H_
11#define HALO_H_
12#include <math.h>
13#include <cosmo.h>
14#include <utilities.h>
19//TODO: Change to physical length units !!!!
21public:
22
23 HALOCalculator (COSMOLOGY *co, double mass, double redshift);
24
25 double getMass(){return m;}
26 double getZ(){return z;}
27
28 double getRvir(int caseunit=0);
29 double getR200();
30 double getConcentration(int caseunit=0,double alpha0=-0.1);
31 double getFormationTime(double f=0.5);
32 double getFormationRedshift(double f=0.5);
33
34 static double MosterStellarMassFraction(double Mtotal);
35
36 void reset(double,double);
37 virtual ~HALOCalculator ();
38
39protected:
40 COSMOLOGY *co; // cosmological model
41 double m; // halo mass
42 double z; // redshift
43 double R200; // radius enclosing 200 times the critical density
44 double Rvir; // radius enclosing the virial overdensity
45 double Omz,Omo,Oml; // matter density parameter at redshift z and at z=0
46 double sigma2M; // the mass variance S(m)
47 double deltac0; // spherical collapse overdensity
48private:
49 void Set_Parameters();
50};
52
53#endif /* HALO_H_ */
The cosmology and all the functions required to calculated quantities based on the cosmology.
Definition cosmo.h:52
Class for calculating the properties of NFW dark matter halos at a specified redshift and mass.
Definition halo.h:20
void reset(double, double)
Reset halo mass and redshift.
Definition halo.cpp:36
static double MosterStellarMassFraction(double Mtotal)
returns the fraction of halo+galaxy in stars according to from Moster et al. 2010ApJ....
Definition halo.cpp:146
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 conce...
Definition halo.cpp:92
double getFormationRedshift(double f=0.5)
The median redshift at which the main halo progenitor assembles 50% of the halo mass,...
Definition halo.cpp:65
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,...
Definition halo.cpp:78
double getRvir(int caseunit=0)
Virial radius of the halo in physical Mpc.
Definition halo.cpp:45
HALOCalculator(COSMOLOGY *co, double mass, double redshift)
Constructor initializing a NFW-halo.
Definition halo.cpp:12
double getR200()
Radius in physical Mpc at which the enclosed density reach 200 times the critical value at that redsh...
Definition halo.cpp:55