NcHIPrim

NcHIPrim — Abstract class for implementing homogeneous and isotropic primordial cosmological models.

Functions

Properties

double k-pivot Read / Write / Construct

Types and Values

Object Hierarchy

    GFlags
    ╰── NcHIPrimImpl
    GObject
    ╰── NcmModel
        ╰── NcHIPrim
            ├── NcHIPrimAtan
            ├── NcHIPrimBPL
            ├── NcHIPrimExpc
            ├── NcHIPrimPowerLaw
            ╰── NcHIPrimSBPL

Description

FIXME

Functions

NcHIPrimFunc1 ()

gdouble
(*NcHIPrimFunc1) (NcHIPrim *prim,
                  gdouble lnk);

nc_hiprim_ref ()

NcHIPrim *
nc_hiprim_ref (NcHIPrim *prim);

Increases the reference count of prim by one.

Parameters

prim

a NcHIPrim

 

Returns

prim .

[transfer full]


nc_hiprim_free ()

void
nc_hiprim_free (NcHIPrim *prim);

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

Parameters

prim

a NcHIPrim

 

nc_hiprim_clear ()

void
nc_hiprim_clear (NcHIPrim **prim);

The reference count of prim is decreased and the pointer is set to NULL.

Parameters

prim

a NcHIPrim

 

nc_hiprim_log_all_models ()

void
nc_hiprim_log_all_models (GType parent);

Logs all models descending from parent .

Parameters

parent

GType of the parent model

 

nc_hiprim_set_k_pivot ()

void
nc_hiprim_set_k_pivot (NcHIPrim *prim,
                       gdouble k_pivot);

Sets k_pivot to the respective property.

Parameters

prim

a NcHIPrim

 

k_pivot

pivotal $k$ in units of $1/\mathrm{Mpc}$

 

nc_hiprim_get_k_pivot ()

gdouble
nc_hiprim_get_k_pivot (NcHIPrim *prim);

Gets the value of the pivotal $k$.

Parameters

prim

a NcHIPrim

 

Returns

pivotal $k$ in units of $1/\mathrm{Mpc}$


nc_hiprim_get_lnk_pivot ()

gdouble
nc_hiprim_get_lnk_pivot (NcHIPrim *prim);

Gets the value of the pivotal $k$.

Parameters

prim

a NcHIPrim

 

Returns

$\ln(k_\mathrm{pivot}\mathrm{Mpc})$


nc_hiprim_lnSA_powspec_lnk ()

gdouble
nc_hiprim_lnSA_powspec_lnk (NcHIPrim *prim,
                            const gdouble lnk);

Gets the natural logarithm of the scalar adiabatic power spectrum as a function of $\ln(k\mathrm{Mpc})$

Return: $\log(P_{SA})$

[virtual lnSA_powspec_lnk]

Parameters

prim

a NcHIPrim

 

lnk

$\ln(k\mathrm{Mpc})$

 

nc_hiprim_lnT_powspec_lnk ()

gdouble
nc_hiprim_lnT_powspec_lnk (NcHIPrim *prim,
                           const gdouble lnk);

Gets the natural logarithm of the tensor power spectrum as a function of $\ln(k\mathrm{Mpc})$

Return: $\log(P_{T})$

[virtual lnT_powspec_lnk]

Parameters

prim

a NcHIPrim

 

lnk

$\ln(k\mathrm{Mpc})$

 

nc_hiprim_SA_powspec_k ()

gdouble
nc_hiprim_SA_powspec_k (NcHIPrim *prim,
                        const gdouble k);

Gets the scalar adiabatic power spectrum as a function of $k$.

Return: $P_{SA}$

Parameters

prim

a NcHIPrim

 

k

$k$ in units of $1/\mathrm{Mpc}$

 

nc_hiprim_T_powspec_k ()

gdouble
nc_hiprim_T_powspec_k (NcHIPrim *prim,
                       const gdouble k);

Gets the tensor power spectrum as a function of $k$.

Return: $P_{T}$

Parameters

prim

a NcHIPrim

 

k

$k$ in units of $1/\mathrm{Mpc}$

 

nc_hiprim_SA_Ampl ()

gdouble
nc_hiprim_SA_Ampl (NcHIPrim *prim);

Gets the scalar adiabatic power spectrum amplitude, i.e., $P_{SA}(k_\mathrm{pivot})$.

Return: $P_{SA}(k_\mathrm{pivot})$

Parameters

prim

a NcHIPrim

 

nc_hiprim_T_Ampl ()

gdouble
nc_hiprim_T_Ampl (NcHIPrim *prim);

Gets the tensor power spectrum amplitude, i.e., $P_{T}(k_\mathrm{pivot})$.

Return: $P_{T}(k_\mathrm{pivot})$

Parameters

prim

a NcHIPrim

 

nc_hiprim_T_SA_ratio ()

gdouble
nc_hiprim_T_SA_ratio (NcHIPrim *prim);

Gets the tensor-to-scalar ratio.

Return: $P_{T}(k_\mathrm{pivot})/P_{SA}(k_\mathrm{pivot})$

Parameters

prim

a NcHIPrim

 

nc_hiprim_set_lnSA_powspec_lnk_impl ()

void
nc_hiprim_set_lnSA_powspec_lnk_impl (NcHIPrimClass *model_class,
                                     NcHIPrimFunc1 f);

FIXME

[skip]

Parameters

model_class

FIXME

 

f

FIXME.

[scope notified]

nc_hiprim_set_lnT_powspec_lnk_impl ()

void
nc_hiprim_set_lnT_powspec_lnk_impl (NcHIPrimClass *model_class,
                                    NcHIPrimFunc1 f);

FIXME

[skip]

Parameters

model_class

FIXME

 

f

FIXME.

[scope notified]

Types and Values

enum NcHIPrimImpl

Methods to be implementd by every primordial model.

Members

NC_HIPRIM_IMPL_lnSA_powspec_lnk

Logarithm of the Scalar Adiabatic power spectrum as a function of $\ln(k\mathrm{Mpc})$

 

NC_HIPRIM_IMPL_lnT_powspec_lnk

Logarithm of the Tensor power spectrum as a function of $\ln(k\mathrm{Mpc})$

 

NC_HIPRIM_DEFAULT_K_PIVOT

#define NC_HIPRIM_DEFAULT_K_PIVOT (0.05) /* In units of 1/Mpc */

NC_HIPRIM_DEFAULT_PARAMS_RELTOL

#define NC_HIPRIM_DEFAULT_PARAMS_RELTOL (1e-7)

NC_HIPRIM_DEFAULT_PARAMS_ABSTOL

#define NC_HIPRIM_DEFAULT_PARAMS_ABSTOL (0.0)

Property Details

The “k-pivot” property

  “k-pivot”                  double

Pivotal value of k.

Owner: NcHIPrim

Flags: Read / Write / Construct

Allowed values: >= G_MINDOUBLE

Default value: 0.05