solutions Package

analyticsolution Module

analyticsolution.py - Analytic solutions for the second order Klein-Gordon equation

class pyflation.solutions.analyticsolution.AnalyticSolution(*args, **kwargs)[source]

Bases: pyflation.solutions.generalsolution.GeneralSolution

Analytic Solution base class.

full_source_from_model(m, nix, **kwargs)[source]

Use the data from a model at a timestep nix to calculate the full source term S.

class pyflation.solutions.analyticsolution.ImaginaryInverseSolution(*args, **kwargs)[source]

Bases: pyflation.solutions.analyticsolution.AnalyticSolution

Analytic solution using an imaginary inverse solution as the first order solution and with no phase information.

\delta\varphi_1 = 1/k i

\delta\varphi^\dagger_1 = 1/k i

where i=\sqrt(-1)

J_A(k, Cterms, **kwargs)[source]

Solution for J_A which is the integral for A in terms of constants C1 and C2.

J_B(k, Cterms, **kwargs)[source]

Solution for J_B which is the integral for B in terms of constants C3 and C4.

J_C(k, Cterms, **kwargs)[source]

Second method for J_C

J_D(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_general_Atype(k, C, n)[source]
J_general_Btype(k, C, n)[source]
class pyflation.solutions.analyticsolution.NoPhaseBunchDaviesSolution(*args, **kwargs)[source]

Bases: pyflation.solutions.analyticsolution.AnalyticSolution

Analytic solution using the Bunch Davies initial conditions as the first order solution and with no phase information.

\delta\varphi_1 = \alpha/\sqrt(k)

\delta\varphi^\dagger_1 = -\alpha/\sqrt(k) - \alpha/\beta \sqrt(k) i

J_A(k, Cterms, **kwargs)[source]

Solution for J_A which is the integral for A in terms of constants C1 and C2.

J_B(k, Cterms, **kwargs)[source]

Solution for J_B which is the integral for B in terms of constants C3 and C4.

J_C(k, Cterms, **kwargs)[source]

Second method for J_C

J_D(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

calculate_Cterms(bgvars, a, potentials)[source]

Calculate the constant terms needed for source integration.

full_source_from_model(m, nix)[source]

Use the data from a model at a timestep nix to calculate the full source term S.

class pyflation.solutions.analyticsolution.OldSimpleInverseFull(*args, **kwargs)[source]

Bases: pyflation.solutions.analyticsolution.AnalyticSolution

Analytic solution using a simple inverse solution as the first order

solution and with no phase information. This uses the solutions of the old equations and is not reliable. Should not be used in production.

delta

arphi_1 = 1/k
dN{delta

arphi_1} = 1/k

J_A1(k, Cterms, **kwargs)[source]

Solution for J_A which is the integral for A in terms of constants C1 and C2.

J_A2(k, Cterms, **kwargs)[source]

Solution for J_A which is the integral for A in terms of constants C1 and C2.

J_B1(k, Cterms, **kwargs)[source]

Solution for J_B which is the integral for B in terms of constants C3 and C4.

J_B2(k, Cterms, **kwargs)[source]

Solution for J_B which is the integral for B in terms of constants C3 and C4.

J_C1(k, Cterms, **kwargs)[source]

Second method for J_C

J_C2(k, Cterms, **kwargs)[source]

Second method for J_C

J_D1(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_D2(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_E1(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_E2(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_F1(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_F2(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_G1(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_G2(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_general_Atype(k, C, n)[source]
J_general_Btype(k, C, n)[source]
J_general_Etype(k, C, n)[source]
J_general_Ftype(k, C, n)[source]
class pyflation.solutions.analyticsolution.SimpleInverseFull(*args, **kwargs)[source]

Bases: pyflation.solutions.analyticsolution.AnalyticSolution

Analytic solution using a simple inverse solution as the first order solution and with no phase information.

\delta\varphi_1 = 1/k

\delta\varphi^\dagger_1 = 1/k

J_factory(Jkey)[source]
J_general_Atype(k, C, n)[source]
J_general_Btype(k, C, n)[source]
J_general_Etype(k, C, n)[source]
J_general_Ftype(k, C, n)[source]
class pyflation.solutions.analyticsolution.SimpleInverseSolution(*args, **kwargs)[source]

Bases: pyflation.solutions.analyticsolution.AnalyticSolution

Analytic solution using a simple inverse solution as the first order solution and with no phase information.

\delta\varphi_1 = 1/k

\delta\varphi^\dagger_1 = 1/k

J_A(k, Cterms, **kwargs)[source]

Solution for J_A which is the integral for A in terms of constants C1 and C2.

J_B(k, Cterms, **kwargs)[source]

Solution for J_B which is the integral for B in terms of constants C3 and C4.

J_C(k, Cterms, **kwargs)[source]

Second method for J_C

J_D(k, Cterms, **kwargs)[source]

Solution for J_D which is the integral for D in terms of constants C6 and C7.

J_general_Atype(k, C, n)[source]
J_general_Btype(k, C, n)[source]

calcedsolution Module

comparison Module

fixtures Module

fixtures.py - Module with fixture information and generating functions

pyflation.solutions.fixtures.fixture_from_model(m, numsoks=None, nthetas=513)[source]

Generate a single fixture from a cosmomodels model.

If numsoks is not specified, then use the last value in the defaults.

pyflation.solutions.fixtures.generate_fixtures(kmins=[1e-61, 3e-61, 1e-60], deltaks=[1e-61, 3e-61, 1e-60], numsoks=[257, 513, 1025], nthetas=[129, 257, 513])[source]

Generator for fixtures created from cartesian products of input lists.

generalsolution Module

generalsolution.py - Holds the general solution base class

class pyflation.solutions.generalsolution.GeneralSolution(fixture, srcclass)[source]

Bases: object

General solution base class.

full_source_from_model(m, nix)[source]

Table Of Contents

Previous topic

analysis Package

Next topic

sourceterm Package

This Page