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

Class for calculating properties of NFW halo profile. More...

#include <cosmo.h>

Public Member Functions

double NFW_V200 (double M200, double R200)
 Circular velocity at R200 in km/s.
 
double NFW_Vmax (double cons, double M200, double R200)
 Maximum circular velocity in km/s.
 
double NFW_Vr (double x, double cons, double M200, double R200)
 Circular velocity in km/s.
 
double NFW_M (double x, double cons, double M200)
 Mass within a radius x in Msun.
 
double NFW_deltac (double cons)
 central over-density of nfw halo
 
double NFW_Concentration (double Vmax, double M200, double R200)
 Concentration of NFW given Vmax in km/s.
 
double NFW_rho (double cons, double x)
 The density of an NFW profile in units of the critical density.
 
void match_nfw (float Vmax, float R_half, float mass, float *cons, float *Rsize)
 Returns the concentration and radius of an NFW halo with the mass, half mass radius and Vmax provided.
 
float Rsize (float cons, float Vmax, float mass)
 
float g_func (float x)
 

Detailed Description

Class for calculating properties of NFW halo profile.

This class does not take into affect the cosmological correlation between concentration and mass. For this see the HALOCalculator class.

Member Function Documentation

◆ match_nfw()

void NFW_Utility::match_nfw ( float my_Vmax,
float my_R_half,
float my_mass,
float * my_cons,
float * my_Rsize )

Returns the concentration and radius of an NFW halo with the mass, half mass radius and Vmax provided.

Parameters
my_VmaxMaximum circular velocity (km/s)
my_R_halfHalf mass radius (Mpc)
my_massMass (solar masses)
my_consoutput concentration
my_RsizeRadius of halo, Not necessarily R200 or Rvir.

◆ NFW_Concentration()

double NFW_Utility::NFW_Concentration ( double Vmax,
double M200,
double R200 )

Concentration of NFW given Vmax in km/s.

Parameters
VmaxMaximum circular velocity
M200Mass
R200Radius

◆ NFW_deltac()

double NFW_Utility::NFW_deltac ( double cons)

central over-density of nfw halo

Parameters
consconcentration = R_200/R_s

◆ NFW_M()

double NFW_Utility::NFW_M ( double x,
double cons,
double M200 )

Mass within a radius x in Msun.

Parameters
xradius , r/R_200
consconcentration = R_200/R_s
M200Mass

◆ NFW_rho()

double NFW_Utility::NFW_rho ( double cons,
double x )

The density of an NFW profile in units of the critical density.

Parameters
consconcentration = R_200/R_s
xradius , r/R_200

◆ NFW_V200()

double NFW_Utility::NFW_V200 ( double M200,
double R200 )

Circular velocity at R200 in km/s.

Parameters
M200Mass
R200Radius

◆ NFW_Vmax()

double NFW_Utility::NFW_Vmax ( double cons,
double M200,
double R200 )

Maximum circular velocity in km/s.

Parameters
consconcentration = R_200/R_s
M200Mass
R200Radius

◆ NFW_Vr()

double NFW_Utility::NFW_Vr ( double x,
double cons,
double M200,
double R200 )

Circular velocity in km/s.

Parameters
xradius , r/R_200
consconcentration = R_200/R_s
M200Mass
R200Radius

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