NcDensityProfile

NcDensityProfile — Abstract class for density profile functions.

Object Hierarchy

    GObject
    ╰── NcmModel
        ╰── NcDensityProfile
            ╰── NcDensityProfileNFW

Description

This module comprises the set of functions to compute the matter density profile in both real and Fourier spaces.

Functions

nc_density_profile_new_from_name ()

NcDensityProfile *
nc_density_profile_new_from_name (gchar *density_profile_name);

This function returns a new NcDensityProfile whose type is defined by density_profile_name string.

Parameters

density_profile_name

Density profile's name

 

Returns

A new NcDensityProfile.


nc_density_profile_ref ()

NcDensityProfile *
nc_density_profile_ref (NcDensityProfile *dp);

Increases the reference count of dp by one.

Parameters

Returns

dp .

[transfer full]


nc_density_profile_free ()

void
nc_density_profile_free (NcDensityProfile *dp);

Atomically decrements the reference count of dp by one. If the reference count drops to 0, all memory allocated by dp is released.

Parameters

dp

a NcDensityProfile.

 

nc_density_profile_clear ()

void
nc_density_profile_clear (NcDensityProfile **dp);

Atomically decrements the reference count of dp by one. If the reference count drops to 0, all memory allocated by dp is released. Set the pointer to NULL;

Parameters

dp

a NcDensityProfile.

 

nc_density_profile_eval_density ()

gdouble
nc_density_profile_eval_density (NcDensityProfile *dp,
                                 NcHICosmo *cosmo,
                                 const gdouble r,
                                 const gdouble z);

This function computes the density profile in real space.

Parameters

dp

a NcDensityProfile

 

cosmo

a NcHICosmo

 

r

radius

 

z

redshift

 

Returns

The value of the density profile in real space.


nc_density_profile_integral_density_los ()

gdouble
nc_density_profile_integral_density_los
                               (NcDensityProfile *dp,
                                NcHICosmo *cosmo,
                                const gdouble R,
                                const gdouble z);

This function computes the integral of density profile along the line of sight.

Parameters

dp

a NcDensityProfile

 

cosmo

a NcHICosmo

 

R

radius

 

z

redshift

 

Returns

The value of the integral of the density profile along the line of sight.


nc_density_profile_integral_density_2d ()

gdouble
nc_density_profile_integral_density_2d
                               (NcDensityProfile *dp,
                                NcHICosmo *cosmo,
                                const gdouble R,
                                const gdouble z);

This function computes the 2D integral of density profile along the line of sight and the cluster radius ($r < R$).

Parameters

dp

a NcDensityProfile

 

cosmo

a NcHICosmo

 

R

radius

 

z

redshift

 

Returns

The value of the 2D integral of the density profile along the line of sight and the cluster radius ($r < R$).


nc_density_profile_eval_fourier ()

gdouble
nc_density_profile_eval_fourier (NcDensityProfile *dp,
                                 NcHICosmo *cosmo,
                                 const gdouble k,
                                 const gdouble M,
                                 const gdouble z);

This function computes the density profile in the Fourier space.

Parameters

dp

a NcDensityProfile

 

cosmo

a NcHICosmo

 

k

mode

 

M

mass

 

z

redshift

 

Returns

The value of the density profile in the Fourier space.


nc_density_profile_scale_radius ()

gdouble
nc_density_profile_scale_radius (NcDensityProfile *dp,
                                 NcHICosmo *cosmo,
                                 gdouble z);

This function computes the scale radius $r_s$.

Parameters

dp

a NcDensityProfile

 

cosmo

a NcHICosmo

 

z

redshift

 

Returns

The value of the scale radius $r_s$.

Types and Values