Top | ![]() |
![]() |
![]() |
![]() |
Functions
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.
nc_density_profile_ref ()
NcDensityProfile *
nc_density_profile_ref (NcDensityProfile *dp
);
Increases the reference count of dp
by one.
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.
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;
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.
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.
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$).
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.
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$.