primordial.equations.t package¶
Submodules¶
primordial.equations.t.cosmology module¶
-
class
primordial.equations.t.cosmology.Equations(H0, Omega_r, Omega_m, Omega_k, Omega_l)[source]¶ Bases:
primordial.equations.cosmology.EquationsCosmology equations in time
Solves background variables in cosmic time for curved and flat universes using the Friedmann equation.
- Independent variable:
- t: cosmic time
- Variables:
- N: efolds
Methods
H(t, y)Hubble parameter H2(t, y)The square of the Hubble parameter, computed using the Friedmann equation __call__(t, y)The derivative function for underlying variables, computed using the Klein-Gordon equation add_variable(*args)Add dependent variables to the equations set_independent_variable(name)Set name of the independent variable sol(sol, **kwargs)Post-process solution of solve_ivp
primordial.equations.t.inflation module¶
-
class
primordial.equations.t.inflation.Equations(K, potential)[source]¶ Bases:
primordial.equations.inflation.EquationsBackground equations in time
Solves bacgkround variables in cosmic time for curved and flat universes using the Klein-Gordon and Friedmann equations.
- Independent variable:
- t: cosmic time
- Variables:
- N: efolds phi: inflaton field dphi: d (phi) / dt
Methods
H(t, y)Hubble parameter H2(t, y)The square of the Hubble parameter, computed using the Friedmann equation V(t, y)Potential __call__(t, y)The derivative function for underlying variables, computed using the Klein-Gordon equation add_variable(*args)Add dependent variables to the equations d2Vdphi2(t, y)Potential second derivative dVdphi(t, y)Potential derivative inflating(t, y)Inflation diagnostic set_independent_variable(name)Set name of the independent variable sol(sol, **kwargs)Post-process solution of solve_ivp
primordial.equations.t.mukhanov_sasaki module¶
-
class
primordial.equations.t.mukhanov_sasaki.Equations(K, potential, k)[source]¶ Bases:
primordial.equations.t.inflation.EquationsMethods
H(t, y)Hubble parameter H2(t, y)The square of the Hubble parameter, computed using the Friedmann equation V(t, y)Potential __call__(t, y)The derivative function for underlying variables, computed using the Mukhanov-Sasaki equation equation add_variable(*args)Add dependent variables to the equations d2Vdphi2(t, y)Potential second derivative dVdphi(t, y)Potential derivative inflating(t, y)Inflation diagnostic set_independent_variable(name)Set name of the independent variable sol(sol, **kwargs)Post-process solution of solve_ivp
-
class
primordial.equations.t.mukhanov_sasaki.Inflation_start_initial_conditions(N_e, phi_e)[source]¶ Bases:
primordial.equations.t.inflation.Inflation_start_initial_conditionsMethods
__call__
-
class
primordial.equations.t.mukhanov_sasaki.KD_initial_conditions(t0, N_p, phi_p)[source]¶ Bases:
primordial.equations.t.inflation.KD_initial_conditionsMethods
__call__