| Top |
Functions
| void | (*NcCBECall) () |
| void | (*NcCBEFree) () |
| NcCBE * | nc_cbe_new () |
| NcCBE * | nc_cbe_prec_new () |
| NcCBE * | nc_cbe_prec_file_new () |
| NcCBE * | nc_cbe_ref () |
| void | nc_cbe_free () |
| void | nc_cbe_clear () |
| void | nc_cbe_set_precision () |
| void | nc_cbe_set_target_Cls () |
| void | nc_cbe_set_calc_transfer () |
| void | nc_cbe_set_lensed_Cls () |
| void | nc_cbe_set_tensor () |
| void | nc_cbe_set_thermodyn () |
| void | nc_cbe_set_scalar_lmax () |
| void | nc_cbe_set_vector_lmax () |
| void | nc_cbe_set_tensor_lmax () |
| NcCBEPrecision * | nc_cbe_peek_precision () |
| NcDataCMBDataType | nc_cbe_get_target_Cls () |
| gboolean | nc_cbe_calc_transfer () |
| gboolean | nc_cbe_lensed_Cls () |
| gboolean | nc_cbe_tensor () |
| gboolean | nc_cbe_thermodyn () |
| guint | nc_cbe_get_scalar_lmax () |
| guint | nc_cbe_get_vector_lmax () |
| guint | nc_cbe_get_tensor_lmax () |
| void | nc_cbe_thermodyn_prepare () |
| void | nc_cbe_thermodyn_prepare_if_needed () |
| void | nc_cbe_prepare () |
| void | nc_cbe_prepare_if_needed () |
| NcmSpline * | nc_cbe_thermodyn_get_Xe () |
| void | nc_cbe_get_all_Cls () |
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 |
Description
This object provides an interface for the CLASS code.
If you use this object please cite: Blas (2011) CLASS II, see also:
Functions
nc_cbe_clear ()
void
nc_cbe_clear (NcCBE **cbe);
Decreases the reference count of *cbe
and sets *cbe
to NULL.
nc_cbe_set_precision ()
void nc_cbe_set_precision (NcCBE *cbe,NcCBEPrecision *cbe_prec);
Sets the cbe_prec
as the precision object.
nc_cbe_set_target_Cls ()
void nc_cbe_set_target_Cls (NcCBE *cbe,NcDataCMBDataType target_Cls);
Sets the target_Cls
target.
nc_cbe_set_calc_transfer ()
void nc_cbe_set_calc_transfer (NcCBE *cbe,gboolean calc_transfer);
Sets whether it should calculate the transfer function.
nc_cbe_set_lensed_Cls ()
void nc_cbe_set_lensed_Cls (NcCBE *cbe,gboolean use_lensed_Cls);
Sets whether it should use lensed Cls.
nc_cbe_set_tensor ()
void nc_cbe_set_tensor (NcCBE *cbe,gboolean use_tensor);
Sets whether it should use tensor contribution.
nc_cbe_set_thermodyn ()
void nc_cbe_set_thermodyn (NcCBE *cbe,gboolean use_thermodyn);
Sets whether it should use the thermodynamics module.
nc_cbe_set_scalar_lmax ()
void nc_cbe_set_scalar_lmax (NcCBE *cbe,guint scalar_lmax);
Sets $\ell_\mathrm{max}$ for scalar modes.
nc_cbe_set_vector_lmax ()
void nc_cbe_set_vector_lmax (NcCBE *cbe,guint vector_lmax);
Sets $\ell_\mathrm{max}$ for vector modes.
nc_cbe_set_tensor_lmax ()
void nc_cbe_set_tensor_lmax (NcCBE *cbe,guint tensor_lmax);
Sets $\ell_\mathrm{max}$ for tensor modes.
nc_cbe_peek_precision ()
NcCBEPrecision *
nc_cbe_peek_precision (NcCBE *cbe);
Peeks the NcCBEPrecision object.
nc_cbe_get_target_Cls ()
NcDataCMBDataType
nc_cbe_get_target_Cls (NcCBE *cbe);
Gets the target_Cls flags.
nc_cbe_calc_transfer ()
gboolean
nc_cbe_calc_transfer (NcCBE *cbe);
Gets whether it calculates the transfer function.
nc_cbe_thermodyn ()
gboolean
nc_cbe_thermodyn (NcCBE *cbe);
Gets whether it uses the thermodynamics module.
nc_cbe_get_scalar_lmax ()
guint
nc_cbe_get_scalar_lmax (NcCBE *cbe);
Gets the scalar $\ell_\textrm{max}$.
nc_cbe_get_vector_lmax ()
guint
nc_cbe_get_vector_lmax (NcCBE *cbe);
Gets the vector $\ell_\textrm{max}$.
nc_cbe_get_tensor_lmax ()
guint
nc_cbe_get_tensor_lmax (NcCBE *cbe);
Gets 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.
nc_cbe_thermodyn_prepare_if_needed ()
void nc_cbe_thermodyn_prepare_if_needed (NcCBE *cbe,NcHIReion *reion,NcHICosmo *cosmo);
Prepares the thermodynamic Class structure.
nc_cbe_prepare ()
void nc_cbe_prepare (NcCBE *cbe,NcHIPrim *prim,NcHIReion *reion,NcHICosmo *cosmo);
Prepares all necessary Class structures.
nc_cbe_prepare_if_needed ()
void nc_cbe_prepare_if_needed (NcCBE *cbe,NcHIPrim *prim,NcHIReion *reion,NcHICosmo *cosmo);
Prepares all necessary Class structures.
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.
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