NcTransferFunc

NcTransferFunc — Abstrac class for perturbation transfer function.

Stability Level

Stable, unless otherwise indicated

Functions

Object Hierarchy

    GObject
    ╰── NcTransferFunc
        ├── NcTransferFuncBBKS
        ├── NcTransferFuncCAMB
        ╰── NcTransferFuncEH

Includes

#include <numcosmo/lss/nc_transfer_func.h>

Description

This module comprises the set of functions to compute the transfer function and derived quantities. The applied $k$ unit is $[\mathrm{Mpc}^{-1}]$.

The transfer function, $T(k)$, is defined as, \begin{equation*} T(k) \equiv \frac{\hat{\delta}(k, z=0)}{\hat{\delta}(k, z=\infty)} \frac{\hat{\delta}(k=0, z=\infty)}{\hat{\delta}(k=0, z=0)} \, , \end{equation*} where $\hat{\delta}(k, z)$ is the density perturbation, in Fourier space, for mode (wavenumber) $k$ at redshift $z$. By definition, we have $$ \lim_{k \rightarrow 0} T(k) \rightarrow 1 \, .$$

See Eisenstein and Hu (1998) [arXiv] for more details.

Functions

nc_transfer_func_ref ()

NcTransferFunc *
nc_transfer_func_ref (NcTransferFunc *tf);

Increases the reference count of tf atomically.

Parameters

tf

a NcTransferFunc

 

Returns

tf .

[transfer full]


nc_transfer_func_free ()

void
nc_transfer_func_free (NcTransferFunc *tf);

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

Parameters

tf

a NcTransferFunc

 

nc_transfer_func_clear ()

void
nc_transfer_func_clear (NcTransferFunc **tf);

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

Parameters

tf

a NcTransferFunc

 

nc_transfer_func_prepare ()

void
nc_transfer_func_prepare (NcTransferFunc *tf,
                          NcHICosmo *cosmo);

Prepares the transfer function tf with model cosmo , such that one can evaluate it (nc_transfer_func_eval).

Parameters

tf

a NcTransferFunc

 

cosmo

a NcHICosmo

 

nc_transfer_func_prepare_if_needed ()

void
nc_transfer_func_prepare_if_needed (NcTransferFunc *tf,
                                    NcHICosmo *cosmo);

Prepares (if necessary) the transfer function tf with model cosmo .

Parameters

tf

a NcTransferFunc

 

cosmo

a NcHICosmo

 

nc_transfer_func_eval ()

gdouble
nc_transfer_func_eval (NcTransferFunc *tf,
                       NcHICosmo *cosmo,
                       gdouble kh);

The transfer function tf value at mode (wavenumber) kh (in $Mpc^{-1}$ units) with model cosmo .

Parameters

tf

a NcTransferFunc $T(k)$

 

cosmo

a NcHICosmo

 

kh

mode (wavenumber)

 

Returns

$T(k)$.