Metadata-Version: 2.1
Name: apace
Version: 0.0.1
Summary: Another Particle Accelerator Code
Home-page: https://github.com/andreasfelix/apace
Author: Felix Andreas
License: GNU General Public License v3.0
Description: # apace
        **apace** is yet **a**nother **p**article **a**ccelerator **c**od**e** designed for the optimization of beam optics. It is available as Python packages and aims to provide a convenient and straightforward API to make use Python's numeros scientific libaries.
        
        
        
        ## Installing
        Install and update using pip:
        
        ```sh
        pip install -U apace
        ```
        
        ## Dependencies
        - Python 3.7 or higher
        - CFFI 1.0.0 or higher
        - NumPy/SciPy
        - Matplotlib
        
        
        ### A Simple Example
        import apace
        ```python
        import apace as ap
        ```
        
        Create a ring consisting of 8 FODO cells:
        ```python
        D1 = ap.Drift('D1', length=0.55)
        Q1 = ap.Quad('Q1', length=0.2, k1=1.2)
        B1 = ap.Bend('B1', length=1.5, angle=0.392701, e1=0.1963505, e2=0.1963505)
        Q2 = ap.Quad('Q2', length=0.4, k1=-1.2)
        fodo = ap.Cell('FODO-CELL', [Q1, D1, B1, D1, Q2, D1, B1, D1, Q1])
        ring = ap.MainCell('FODO-RING', [fodo] * 8)
        ```
        
        Calculate the twiss parameters:
        ```python
        twiss = ap.Twiss(ring)
        ```
        
        
        Plot horizontal and vertical beta functions using matplotlib:
        ```python
        plt.plot(twiss.s, twiss.beta_x, twiss.beta_y, twiss.eta_x)
        ```
        
        ## License
        [GNU General Public License v3.0](https://github.com/andreasfelix/apace/blob/master/LICENSE)
        
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.6
Description-Content-Type: text/markdown
