NcDensityProfile

NcDensityProfile — Abstract class for density profile functions.

Object Hierarchy

    GObject
    ╰── 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

"NcDensityProfileNFW".

 

Returns

A new NcDensityProfile.


nc_density_profile_eval_fourier ()

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

This function computes the density profile in the Fourier space.

Parameters

dp

a NcDensityProfile

 

model

a NcHICosmo

 

k

mode

 

M

mass

 

z

redshift

 

Returns

The value of the density profile in the Fourier space.


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.

 

Types and Values