| Top |
Functions
Properties
| gboolean | calc-transfer | Read / Write / Construct |
| gdouble | matter-pk-maxk | Read / Write / Construct |
| gdouble | matter-pk-maxz | 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-ppf | Read / Write / Construct |
| gboolean | use-tensor | Read / Write / Construct |
| gboolean | use-thermodyn | Read / Write / Construct |
| guint | vector-lmax | Read / Write / Construct |
| guint | verbosity | 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 Cl's.
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 the maximum multipole $\ell_\textrm{max}$ at which the angular power spectrum $C_{\ell}$ of the scalar mode is computed.
nc_cbe_set_vector_lmax ()
void nc_cbe_set_vector_lmax (NcCBE *cbe,guint vector_lmax);
Sets the maximum multipole $\ell_\textrm{max}$ at which the angular power spectrum $C_{\ell}$ of the vector mode is computed.
nc_cbe_set_tensor_lmax ()
void nc_cbe_set_tensor_lmax (NcCBE *cbe,guint tensor_lmax);
Sets the maximum multipole $\ell_\textrm{max}$ at which the angular power spectrum $C_{\ell}$ of the tensor mode is computed.
nc_cbe_set_max_matter_pk_z ()
void nc_cbe_set_max_matter_pk_z (NcCBE *cbe,gdouble zmax);
Sets $z_\mathrm{max}$ for (until?) which the matter power spectrum $P(k, z)$ is evaluated.
nc_cbe_set_max_matter_pk_k ()
void nc_cbe_set_max_matter_pk_k (NcCBE *cbe,gdouble kmax);
Sets $k_\mathrm{max}$ for which the matter power spectrum $P (k, z)$ is evaluated.
nc_cbe_get_max_matter_pk_z ()
gdouble
nc_cbe_get_max_matter_pk_z (NcCBE *cbe);
Gets the maximum redshift $z_\mathrm{max}$ for which the matter power spectrum $P(k, z)$ is evaluated.
nc_cbe_get_max_matter_pk_k ()
gdouble
nc_cbe_get_max_matter_pk_k (NcCBE *cbe);
Gets the maximum mode $k_\mathrm{max}$ for which the matter power spectrum $P (k, z)$ is evaluated.
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_lensed_Cls ()
gboolean
nc_cbe_lensed_Cls (NcCBE *cbe);
Gets whether it uses lensed $C_{\ell}$'s.
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 maximum multipole $\ell_\textrm{max}$ at which the angular power spectrum $C_{\ell}$ of the scalar mode is computed.
nc_cbe_get_vector_lmax ()
guint
nc_cbe_get_vector_lmax (NcCBE *cbe);
Gets the maximum multipole $\ell_\textrm{max}$ at which the angular power spectrum $C_{\ell}$ of the vector mode is computed.
nc_cbe_get_tensor_lmax ()
guint
nc_cbe_get_tensor_lmax (NcCBE *cbe);
Gets the maximum multipole $\ell_\textrm{max}$ at which the angular power spectrum $C_{\ell}$ of the tensor mode is computed.
nc_cbe_thermodyn_prepare ()
void nc_cbe_thermodyn_prepare (NcCBE *cbe,NcHICosmo *cosmo);
Prepares the thermodynamic Class structure.
nc_cbe_thermodyn_prepare_if_needed ()
void nc_cbe_thermodyn_prepare_if_needed (NcCBE *cbe,NcHICosmo *cosmo);
Prepares the thermodynamic Class structure.
nc_cbe_prepare ()
void nc_cbe_prepare (NcCBE *cbe,NcHICosmo *cosmo);
Prepares all necessary Class structures.
nc_cbe_prepare_if_needed ()
void nc_cbe_prepare_if_needed (NcCBE *cbe,NcHICosmo *cosmo);
Prepares all necessary Class structures.
nc_cbe_compare_bg ()
gdouble nc_cbe_compare_bg (NcCBE *cbe,NcHICosmo *cosmo,gboolean log_cmp);
Compares CLASS and NumCosmo background calculations and returns the worst discrepancy.
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.
nc_cbe_thermodyn_v_tau_max_z ()
gdouble
nc_cbe_thermodyn_v_tau_max_z (NcCBE *cbe);
Gets the redshift of the maximum visibility function.
nc_cbe_get_matter_ps ()
NcmSpline2d *
nc_cbe_get_matter_ps (NcCBE *cbe);
Gets the logarithm base e of the matter power spectrum as a function of the redshift $z$ and mode $\ln (k)$.
Returns
a NcmSpline2d for the logarithm base e of the matter power spectrum, $\ln P(\ln k, z)$.
[transfer full]
nc_cbe_get_sigma8 ()
gdouble
nc_cbe_get_sigma8 (NcCBE *cbe);
Computes the value of $\sigma_8$ as computed by CLASS, usually with errors $\propto 10^{-4}$.
For better precision use: nc_powspec_ml_sigma_R() or NcmPowspecFilter.
nc_cbe_get_all_Cls ()
void nc_cbe_get_all_Cls (NcCBE *cbe,NcmVector *PHIPHI_Cls,NcmVector *TT_Cls,NcmVector *EE_Cls,NcmVector *BB_Cls,NcmVector *TE_Cls);
Gets and store the angular power spectra $C_l$'s calculated in the vectors TT_Cls
, EE_Cls
,
BB_Cls
and TE_Cls
. If any of these vectors are NULL, then it is (they are)
ignored.
Property Details
The “calc-transfer” property
“calc-transfer” gboolean
Whether to calculate the transfer function.
Flags: Read / Write / Construct
Default value: FALSE
The “matter-pk-maxk” property
“matter-pk-maxk” gdouble
Maximum mode k for matter Pk.
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 1
The “matter-pk-maxz” property
“matter-pk-maxz” gdouble
Maximum redshift for matter Pk.
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
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-ppf” property
“use-ppf” gboolean
Whether to use PPF.
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
The “verbosity” property
“verbosity” guint
Verbosity.
Flags: Read / Write / Construct
Default value: 0