NcCBE

NcCBE — CLASS (Cosmic Linear Anisotropy Solving System) backend

Properties

gboolean calc-transfer Read / Write / Construct
NcCBEPrecision * precision Read / Write / Construct
guint scalar-lmax Read / Write / Construct
NcDataCMBDataType target-Cls Read / Write / Construct
guint tensor-lmax Read / Write / Construct
gboolean use-lensed-Cls Read / Write / Construct
gboolean use-tensor Read / Write / Construct
gboolean use-thermodyn Read / Write / Construct
guint vector-lmax Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NcCBE

Description

This object provides an interface for the CLASS code.

If you use this object please cite: Blas (2011) CLASS II, see also:

Functions

NcCBECall ()

void
(*NcCBECall) (NcCBE *cbe,
              NcHIPrim *prim,
              NcHIReion *reion,
              NcHICosmo *cosmo);

NcCBEFree ()

void
(*NcCBEFree) (NcCBE *cbe);

nc_cbe_new ()

NcCBE *
nc_cbe_new (void);

FIXME

[constructor]

Returns

a new NcCBEPrecision.

[transfer full]


nc_cbe_prec_new ()

NcCBE *
nc_cbe_prec_new (NcCBEPrecision *cbe_prec);

FIXME

[constructor]

Parameters

cbe_prec

a NcCBEPrecision.

 

Returns

a new NcCBEPrecision.

[transfer full]


nc_cbe_prec_file_new ()

NcCBE *
nc_cbe_prec_file_new (gchar *prec_filename);

nc_cbe_ref ()

NcCBE *
nc_cbe_ref (NcCBE *cbe);

Increases the reference count of cbe .

Parameters

cbe

a NcCBE.

 

Returns

cbe .

[transfer full]


nc_cbe_free ()

void
nc_cbe_free (NcCBE *cbe);

Decreases the reference count of cbe .

Parameters

cbe

a NcCBE.

 

nc_cbe_clear ()

void
nc_cbe_clear (NcCBE **cbe);

Decreases the reference count of *cbe and sets *cbe to NULL.

Parameters

cbe

a NcCBE.

 

nc_cbe_set_precision ()

void
nc_cbe_set_precision (NcCBE *cbe,
                      NcCBEPrecision *cbe_prec);

Sets the cbe_prec as the precision object.

Parameters

cbe

a NcCBE

 

cbe_prec

a NcCBEPrecision.

 

nc_cbe_set_target_Cls ()

void
nc_cbe_set_target_Cls (NcCBE *cbe,
                       NcDataCMBDataType target_Cls);

Sets the target_Cls target.

Parameters

cbe

a NcCBE

 

target_Cls

a NcDataCMBDataType.

 

nc_cbe_set_calc_transfer ()

void
nc_cbe_set_calc_transfer (NcCBE *cbe,
                          gboolean calc_transfer);

Sets whether it should calculate the transfer function.

Parameters

cbe

a NcCBE

 

calc_transfer

a boolean.

 

nc_cbe_set_lensed_Cls ()

void
nc_cbe_set_lensed_Cls (NcCBE *cbe,
                       gboolean use_lensed_Cls);

Sets whether it should use lensed Cls.

Parameters

cbe

a NcCBE

 

use_lensed_Cls

a boolean.

 

nc_cbe_set_tensor ()

void
nc_cbe_set_tensor (NcCBE *cbe,
                   gboolean use_tensor);

Sets whether it should use tensor contribution.

Parameters

cbe

a NcCBE

 

use_tensor

a boolean.

 

nc_cbe_set_thermodyn ()

void
nc_cbe_set_thermodyn (NcCBE *cbe,
                      gboolean use_thermodyn);

Sets whether it should use the thermodynamics module.

Parameters

cbe

a NcCBE

 

use_thermodyn

a boolean.

 

nc_cbe_set_scalar_lmax ()

void
nc_cbe_set_scalar_lmax (NcCBE *cbe,
                        guint scalar_lmax);

Sets $\ell_\mathrm{max}$ for scalar modes.

Parameters

cbe

a NcCBE

 

scalar_lmax

a guint

 

nc_cbe_set_vector_lmax ()

void
nc_cbe_set_vector_lmax (NcCBE *cbe,
                        guint vector_lmax);

Sets $\ell_\mathrm{max}$ for vector modes.

Parameters

cbe

a NcCBE

 

vector_lmax

a guint

 

nc_cbe_set_tensor_lmax ()

void
nc_cbe_set_tensor_lmax (NcCBE *cbe,
                        guint tensor_lmax);

Sets $\ell_\mathrm{max}$ for tensor modes.

Parameters

cbe

a NcCBE

 

tensor_lmax

a guint

 

nc_cbe_peek_precision ()

NcCBEPrecision *
nc_cbe_peek_precision (NcCBE *cbe);

Peeks the NcCBEPrecision object.

Parameters

cbe

a NcCBE

 

Returns

the NcCBEPrecision object.

[transfer none]


nc_cbe_get_target_Cls ()

NcDataCMBDataType
nc_cbe_get_target_Cls (NcCBE *cbe);

Gets the target_Cls flags.

Parameters

cbe

a NcCBE

 

Returns

the NcDataCMBDataType flags.


nc_cbe_calc_transfer ()

gboolean
nc_cbe_calc_transfer (NcCBE *cbe);

Gets whether it calculates the transfer function.

Parameters

cbe

a NcCBE

 

Returns

a boolean.


nc_cbe_lensed_Cls ()

gboolean
nc_cbe_lensed_Cls (NcCBE *cbe);

Gets whether it uses lensed Cls.

Parameters

cbe

a NcCBE

 

Returns

a boolean.


nc_cbe_tensor ()

gboolean
nc_cbe_tensor (NcCBE *cbe);

Gets whether it uses tensor contributions.

Parameters

cbe

a NcCBE

 

Returns

a boolean.


nc_cbe_thermodyn ()

gboolean
nc_cbe_thermodyn (NcCBE *cbe);

Gets whether it uses the thermodynamics module.

Parameters

cbe

a NcCBE

 

Returns

a boolean.


nc_cbe_get_scalar_lmax ()

guint
nc_cbe_get_scalar_lmax (NcCBE *cbe);

Gets the scalar $\ell_\textrm{max}$.

Parameters

cbe

a NcCBE

 

Returns

the scalar $\ell_\textrm{max}$.


nc_cbe_get_vector_lmax ()

guint
nc_cbe_get_vector_lmax (NcCBE *cbe);

Gets the vector $\ell_\textrm{max}$.

Parameters

cbe

a NcCBE

 

Returns

the vector $\ell_\textrm{max}$.


nc_cbe_get_tensor_lmax ()

guint
nc_cbe_get_tensor_lmax (NcCBE *cbe);

Gets the tensor $\ell_\textrm{max}$.

Parameters

cbe

a NcCBE

 

Returns

the tensor $\ell_\textrm{max}$.


nc_cbe_thermodyn_prepare ()

void
nc_cbe_thermodyn_prepare (NcCBE *cbe,
                          NcHIReion *reion,
                          NcHICosmo *cosmo);

Prepares the thermodynamic Class structure.

Parameters

cbe

a NcCBE

 

reion

a NcHIReion

 

cosmo

a NcHICosmo

 

nc_cbe_thermodyn_prepare_if_needed ()

void
nc_cbe_thermodyn_prepare_if_needed (NcCBE *cbe,
                                    NcHIReion *reion,
                                    NcHICosmo *cosmo);

Prepares the thermodynamic Class structure.

Parameters

cbe

a NcCBE

 

reion

a NcHIReion

 

cosmo

a NcHICosmo

 

nc_cbe_prepare ()

void
nc_cbe_prepare (NcCBE *cbe,
                NcHIPrim *prim,
                NcHIReion *reion,
                NcHICosmo *cosmo);

Prepares all necessary Class structures.

Parameters

cbe

a NcCBE

 

prim

a NcHIPrim

 

reion

a NcHIReion

 

cosmo

a NcHICosmo

 

nc_cbe_prepare_if_needed ()

void
nc_cbe_prepare_if_needed (NcCBE *cbe,
                          NcHIPrim *prim,
                          NcHIReion *reion,
                          NcHICosmo *cosmo);

Prepares all necessary Class structures.

Parameters

cbe

a NcCBE

 

prim

a NcHIPrim

 

reion

a NcHIReion

 

cosmo

a NcHICosmo

 

nc_cbe_thermodyn_get_Xe ()

NcmSpline *
nc_cbe_thermodyn_get_Xe (NcCBE *cbe);

Gets the free electrons fraction $X_e$ as a function of the redshift.

Parameters

cbe

a NcCBE

 

Returns

a NcmSpline for Xe.

[transfer full]


nc_cbe_get_all_Cls ()

void
nc_cbe_get_all_Cls (NcCBE *cbe,
                    NcmVector *TT_Cls,
                    NcmVector *EE_Cls,
                    NcmVector *BB_Cls,
                    NcmVector *TE_Cls);

Gets and store the Cls calculated in the vectors TT_Cls , EE_Cls , BB_Cls and TE_Cls . If any of these vectors are NULL then it is ignored.

Parameters

cbe

a NcCBE

 

TT_Cls

a NcmVector

 

EE_Cls

a NcmVector

 

BB_Cls

a NcmVector

 

TE_Cls

a NcmVector

 

Types and Values

Property Details

The “calc-transfer” property

  “calc-transfer”            gboolean

Whether to calculate the transfer function.

Flags: Read / Write / Construct

Default value: FALSE


The “precision” property

  “precision”                NcCBEPrecision *

CLASS precision object.

Flags: Read / Write / Construct


The “scalar-lmax” property

  “scalar-lmax”              guint

Scalar modes l_max.

Flags: Read / Write / Construct

Default value: 500


The “target-Cls” property

  “target-Cls”               NcDataCMBDataType

Target Cls to calculate.

Flags: Read / Write / Construct


The “tensor-lmax” property

  “tensor-lmax”              guint

Tensor modes l_max.

Flags: Read / Write / Construct

Default value: 500


The “use-lensed-Cls” property

  “use-lensed-Cls”           gboolean

Whether to use lensed Cls.

Flags: Read / Write / Construct

Default value: FALSE


The “use-tensor” property

  “use-tensor”               gboolean

Whether to use tensor contributions.

Flags: Read / Write / Construct

Default value: FALSE


The “use-thermodyn” property

  “use-thermodyn”            gboolean

Whether to use the thermodynamics module.

Flags: Read / Write / Construct

Default value: FALSE


The “vector-lmax” property

  “vector-lmax”              guint

Vector modes l_max.

Flags: Read / Write / Construct

Default value: 500