Class

NumCosmoScalefactor

Description [src]

class NumCosmo.Scalefactor : GObject.Object
{
  /* No available fields */
}

Scale factor as a function of the conformal time.

Integrates the first order Friedmann equation, $$E^2 = \frac{\rho}{\rho_{\mathrm{crit}0}} + \Omega_{k0} x^2.$$ Where ${\mathrm{crit}0}$ is the critical density today [nc_hicosmo_crit_density()], $E = H / H_0$ is the dimensionless Hubble function [nc_hicosmo_E()] and $\Omega_{k0}$ is the curvature parameter today [nc_hicosmo_Omega_k0()].

Ancestors

Constructors

nc_scalefactor_new

Creates a new NcScalefactor valid for calculations in the $[0, z_f]$ interval.

Functions

nc_scalefactor_clear

If a is different from NULL, decreases the reference count of a by one and sets *a to NULL.

Instance methods

nc_scalefactor_eval_a_eta

Calculates the value of the scale factor in $\eta$, i.e., $a(\eta)$.

nc_scalefactor_eval_eta_t

Calculates the value of the conformal time at $t$, i.e., $\eta(t)$.

nc_scalefactor_eval_eta_x

Calculates the value of the conformal time at $x$, i.e., $\eta(z(x))$.

nc_scalefactor_eval_eta_z

Calculates the value of the conformal time at $z$, i.e., $\eta(z)$.

nc_scalefactor_eval_t_eta

Calculates the value of the cosmic time at $\eta$, i.e., $t(\eta)$.

nc_scalefactor_eval_z_eta

Calculates the value of the redshift in $\eta$, i.e., $z(\eta)$.

nc_scalefactor_free

Decreases the reference count of a by one.

nc_scalefactor_get_a0

Gets the current value of the scale factor today $a_0$.

nc_scalefactor_get_abstol

Gets the current absolute tolerance.

nc_scalefactor_get_reltol

Gets the current relative tolerance.

nc_scalefactor_get_zf

Gets the current final redshift $z_f$.

nc_scalefactor_prepare

Prepares the object a using the cosmological model cosmo. This function computes the scale factor evolution and prepares internal splines for interpolation.

nc_scalefactor_prepare_if_needed

Prepares the object a using the cosmological model cosmo if the model has changed since the last preparation. This function checks if an update is needed before recomputing the scale factor evolution.

nc_scalefactor_ref

Increases the reference count of a by one.

nc_scalefactor_require_zf

Requires the final redshift of at least $z_f$ = zf.

nc_scalefactor_set_a0

Sets the value of the scale factor today.

nc_scalefactor_set_a0_conformal_normal

When enable is TRUE, it sets the value of the scale factor today $a_0$, assuming that the conformal hypersurface the spatial hypersurface where ($a=1$) hascurvature equals to 1Mpc, i.e., $1/\sqrt{K} = 1\,\mathrm{Mpc}$. If enable is FALSE it lets $a_0$ untouched. *.

nc_scalefactor_set_abstol

Sets the absolute tolerance of the integration.

nc_scalefactor_set_reltol

Sets the relative tolerance of the integration.

nc_scalefactor_set_zf

Sets the final redshift of the integration.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmo.Scalefactor:a0
No description available.

NumCosmo.Scalefactor:a0-conformal-normal
No description available.

NumCosmo.Scalefactor:abstol
No description available.

NumCosmo.Scalefactor:dist
No description available.

NumCosmo.Scalefactor:reltol
No description available.

NumCosmo.Scalefactor:zf
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoScalefactorClass {
  /* no available fields */
}

No description available.