Skip to content

ChristopherMayes/lume-astra

Repository files navigation

LUME-Astra

Python wrapper for ASTRA (A Space Charge Tracking Algorithm, DESY) for use in LUME.

Documentation
Documentation
from astra import Astra

A = Astra('Astra.in')
A.run()
A.plot(y=['norm_emit_x', 'norm_emit_y'], y2=['sigma_x', 'sigma_y'])

Installing lume-astra

Installing lume-astra from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, lume-astra can be installed with:

conda install lume-astra

It is possible to list all of the versions of lume-astra available on your platform with:

conda search lume-astra --channel conda-forge

Installing Astra Executables

For convenience, you can set $ASTRA_BIN and $GENERATOR_BIN to point to the Astra and generator binaries for your system. See the install_astra.ipynb example for easy installation.

Basic usage

See simple_astra_run.ipynb. In short:

from astra import Astra

A = Astra('../templates/Astra.in')

A.verbose = True
A.run()
...
output = A.output

About

Python wrapper for Astra (A Space Charge Tracking Algorithm, DESY) for eventual use in LUME https://christophermayes.github.io/lume-astra/

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages