primordial.equations.N package¶
Submodules¶
primordial.equations.N.cosmology module¶
-
class
primordial.equations.N.cosmology.
Equations
(H0, Omega_r, Omega_m, Omega_k, Omega_l)[source]¶ Bases:
primordial.equations.cosmology.Equations
Cosmology equations in time
Solves background variables in cosmic time for curved and flat universes using the Friedmann equation.
- Independent variable:
- N: efolds
- Variables:
- t: cosmic time
Methods
H
(t, y)Hubble parameter H2
(t, y)The square of the Hubble parameter, computed using the Friedmann equation __call__
(N, 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.N.inflation module¶
-
class
primordial.equations.N.inflation.
Equations
(K, potential)[source]¶ Bases:
primordial.equations.inflation.Equations
Background equations in time
Solves background variables in cosmic time for curved and flat universes using the Klein-Gordon and Friedmann equations.
- Independent variable:
- N: e-folds (log a)
- Variables:
- phi: inflaton field dphi: d/dN (phi) t: cosmic time
Methods
H
(t, y)Hubble parameter H2
(N, y)The square of the Hubble parameter, computed using the Friedmann equation V
(t, y)Potential __call__
(N, 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 dlogH
(N, y)d/dN log H inflating
(N, y)Inflation diagnostic set_independent_variable
(name)Set name of the independent variable sol
(sol, **kwargs)Post-process solution of solve_ivp
primordial.equations.N.mukhanov_sasaki module¶
-
class
primordial.equations.N.mukhanov_sasaki.
Equations
(K, potential, k)[source]¶ Bases:
primordial.equations.N.inflation.Equations
Methods
H
(t, y)Hubble parameter H2
(N, y)The square of the Hubble parameter, computed using the Friedmann equation V
(t, y)Potential __call__
(N, 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 dlogH
(N, y)d/dN log H inflating
(N, 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.N.mukhanov_sasaki.
Inflation_start_initial_conditions
(N_e, phi_e)[source]¶ Bases:
primordial.equations.N.inflation.Inflation_start_initial_conditions
Methods
__call__