Metadata-Version: 2.1
Name: primordial
Version: 0.0.2
Summary: primordial: inflationary equation solver
Home-page: https://github.com/williamjameshandley/primordial
Author: Will Handley
Author-email: wh260@cam.ac.uk
License: GPL
Description: ========================================
        primordial: inflationary equation solver
        ========================================
        :primordial: inflationary equation solver
        :Author: Will Handley
        :Version: 0.0.2
        :Homepage: https://github.com/williamjameshandley/primordial
        :Documentation: http://primordial.readthedocs.io/
        
        .. image:: https://travis-ci.org/williamjameshandley/primordial.svg?branch=master
           :target: https://travis-ci.org/williamjameshandley/primordial
           :alt: Build Status
        .. image:: https://codecov.io/gh/williamjameshandley/primordial/branch/master/graph/badge.svg
           :target: https://codecov.io/gh/williamjameshandley/primordial
           :alt: Test Coverage Status
        .. image:: https://badge.fury.io/py/primordial.svg
           :target: https://badge.fury.io/py/primordial
           :alt: PyPi location
        .. image:: https://readthedocs.org/projects/primordial/badge/?version=latest
           :target: https://primordial.readthedocs.io/en/latest/?badge=latest
           :alt: Documentation Status
        
        
        Description
        ===========
        
        ``primordial`` is a python package for solving cosmological inflationary equations.
        
        It is very much in beta stage, and currently being built for research purposes.
        
        
        Example Usage
        =============
        
        .. code:: python
        
            import matplotlib.pyplot as plt
            from primordial.solver import Solver
            from primordial.events import Inflation, Stationary
            from primordial.equations_t import Equations, KD_initial_conditions
            from primordial.potentials import ChaoticPotential
            import numpy
            
            fig, ax = plt.subplots(3,sharex=True)
            for K in [-1, 0, +1]:
                 m = 1
                 V = ChaoticPotential(m)
                 equations = Equations(K, V)
        
                 events= [Inflation(equations, +1),                # Record inflation entry
                          Inflation(equations, -1, terminal=True), # Stop on inflation exit
                          Stationary(equations, terminal=True)]    # Stop if universe stops expanding
        
        
                 solver = Solver(equations, events)
        
                 N_p = -1.5
                 phi_p = 23
                 t = numpy.logspace(-5,10,1e6)
        
                 y0 = KD_initial_conditions(t[0], K, N_p, phi_p)
        
                 sol = solver.solve(t, y0)
        
                 ax[0].plot(sol.N,sol.phi)
                 ax[0].set_ylabel(r'$\phi$')
        
                 ax[1].plot(sol.N,sol.H)
                 ax[1].set_yscale('log')
                 ax[1].set_ylabel(r'$H$')
        
                 ax[2].plot(sol.N,1/(sol.H*numpy.exp(sol.N)))
                 ax[2].set_yscale('log')
                 ax[2].set_ylabel(r'$1/aH$')
        
            plt.show()
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Mathematics
Provides-Extra: docs
