Top |
gboolean | calc-transfer | Read / Write / Construct |
double | matter-pk-maxk | Read / Write / Construct |
double | 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 |
This object provides an interface for the CLASS code.
If you use this object please cite: Blas (2011) CLASS II, see also:
void
nc_cbe_clear (NcCBE **cbe
);
Decreases the reference count of *cbe
and sets *cbe
to NULL.
void nc_cbe_set_precision (NcCBE *cbe
,NcCBEPrecision *cbe_prec
);
Sets the cbe_prec
as the precision object.
void nc_cbe_set_target_Cls (NcCBE *cbe
,NcDataCMBDataType target_Cls
);
Sets the target_Cls
target.
void nc_cbe_set_calc_transfer (NcCBE *cbe
,gboolean calc_transfer
);
Sets whether it should calculate the transfer function.
void nc_cbe_set_lensed_Cls (NcCBE *cbe
,gboolean use_lensed_Cls
);
Sets whether it should use lensed Cl's.
void nc_cbe_set_tensor (NcCBE *cbe
,gboolean use_tensor
);
Sets whether it should use tensor contribution.
void nc_cbe_set_thermodyn (NcCBE *cbe
,gboolean use_thermodyn
);
Sets whether it should use the thermodynamics module.
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.
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.
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.
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.
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.
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.
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.
NcCBEPrecision *
nc_cbe_peek_precision (NcCBE *cbe
);
Peeks the NcCBEPrecision object.
NcDataCMBDataType
nc_cbe_get_target_Cls (NcCBE *cbe
);
Gets the target_Cls flags.
gboolean
nc_cbe_calc_transfer (NcCBE *cbe
);
Gets whether it calculates the transfer function.
gboolean
nc_cbe_lensed_Cls (NcCBE *cbe
);
Gets whether it uses lensed $C_{\ell}$'s.
gboolean
nc_cbe_thermodyn (NcCBE *cbe
);
Gets whether it uses the thermodynamics module.
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.
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.
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.
void nc_cbe_thermodyn_prepare (NcCBE *cbe
,NcHICosmo *cosmo
);
Prepares the thermodynamic Class structure.
void nc_cbe_thermodyn_prepare_if_needed (NcCBE *cbe
,NcHICosmo *cosmo
);
Prepares the thermodynamic Class structure.
void nc_cbe_prepare (NcCBE *cbe
,NcHICosmo *cosmo
);
Prepares all necessary Class structures.
void nc_cbe_prepare_if_needed (NcCBE *cbe
,NcHICosmo *cosmo
);
Prepares all necessary Class structures.
gdouble nc_cbe_compare_bg (NcCBE *cbe
,NcHICosmo *cosmo
,gboolean log_cmp
);
Compares CLASS and NumCosmo background calculations and returns the worst discrepancy.
NcmSpline *
nc_cbe_thermodyn_get_Xe (NcCBE *cbe
);
Gets the free electrons fraction $X_e$ as a function of the redshift.
gdouble
nc_cbe_thermodyn_v_tau_max_z (NcCBE *cbe
);
Gets the redshift of the maximum visibility function.
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)$.
a NcmSpline2d for the logarithm base e of the matter power spectrum, $\ln P(\ln k, z)$.
[transfer full]
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: ncm_powspec_sigma_tophat_R()
or NcmPowspecFilter.
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.
“calc-transfer”
property “calc-transfer” gboolean
Whether to calculate the transfer function.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: FALSE
“matter-pk-maxk”
property “matter-pk-maxk” double
Maximum mode k for matter Pk.
Owner: NcCBE
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 1
“matter-pk-maxz”
property “matter-pk-maxz” double
Maximum redshift for matter Pk.
Owner: NcCBE
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
“precision”
property“precision” NcCBEPrecision *
CLASS precision object.
Owner: NcCBE
Flags: Read / Write / Construct
“scalar-lmax”
property “scalar-lmax” guint
Scalar modes l_max.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: 500
“target-Cls”
property“target-Cls” NcDataCMBDataType
Target Cls to calculate.
Owner: NcCBE
Flags: Read / Write / Construct
“tensor-lmax”
property “tensor-lmax” guint
Tensor modes l_max.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: 500
“use-lensed-Cls”
property “use-lensed-Cls” gboolean
Whether to use lensed Cls.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: FALSE
“use-ppf”
property “use-ppf” gboolean
Whether to use PPF.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: FALSE
“use-tensor”
property “use-tensor” gboolean
Whether to use tensor contributions.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: FALSE
“use-thermodyn”
property “use-thermodyn” gboolean
Whether to use the thermodynamics module.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: FALSE
“vector-lmax”
property “vector-lmax” guint
Vector modes l_max.
Owner: NcCBE
Flags: Read / Write / Construct
Default value: 500