Skip to main content

Aurora package for particle transport, radiation and neutrals in magnetically-confined plasmas

Project description

https://badge.fury.io/py/aurorafusion.svg https://anaconda.org/conda-forge/aurorafusion/badges/version.svg https://anaconda.org/conda-forge/aurorafusion/badges/latest_release_date.svg https://anaconda.org/conda-forge/aurorafusion/badges/platforms.svg https://anaconda.org/conda-forge/aurorafusion/badges/license.svg https://anaconda.org/conda-forge/aurorafusion/badges/downloads.svg

Aurora is a package to simulate heavy-ion transport, plasma-wall interaction (PWI), neutrals and radiation in magnetically-confined plasmas. It includes a 1.5D impurity transport forward model for the plasma ions, thoroughly benchmarked with the widely-adopted STRAHL code, and a simple multi-reservoir particle balance model including neutrals recycling, pumping and interaction with the material surfaces of the simulated device. A simple interface to plot and process atomic and surface data for fusion plasmas makes it a convenient tool for spectroscopy, PWI and integrated modeling. It also offers routines to analyze neutral states of hydrogen isotopes, both from the edge of fusion plasmas and from neutral beam injection. The spectroscopic and PWI calculations can be not only applied to the output of Aurora’s own forward model, but also coupled with other 1D, 2D or 3D transport codes.

Aurora’s code is mostly written in Python 3 and Fortran 90. An experimental Julia interface has also been added.

Documentation is available at https://aurora-fusion.readthedocs.io.

Development

The code is developed and maintained by F. Sciortino (MPI-IPP) in collaboration with T. Odstrcil (GA), A. Zito (MPI-IPP), D. Fajardo (MPI-IPP), A. Cavallaro (MIT) and R. Reksoatmodjo (W&M), with support from O. Linder (MPI-IPP), C. Johnson (U. Auburn), D. Stanczak (IPPLM) and S. Smith (GA). The STRAHL documentation provided by R.Dux (MPI-IPP) was extremely helpful to guide the initial development of Aurora.

New contributors are more than welcome! Please get in touch at fsciortino-at-proximafusion.com or open a pull-request via Github.

Generally, we would appreciate if you could work with us to merge your features back into the main Aurora distribution if there is any chance that the changes that you made could be useful to others.

Installation

Aurora can be installed from PyPI using

pip install aurorafusion –user

You can omit the –user flag if you have write-access to the default package directory on your system and wish to install there.

Installing via conda is also possible using

conda install -c conda-forge aurorafusion

Both the PyPI and conda installation are automatically updated at every package release. Note that the conda installation does not currently install dependencies on omfit_classes, which users may need to install via pip (see the PyPI repo).

To look at the code and contribute to the Aurora repository, it is recommended to install from source, by git-cloning the Aurora repo from Github. This will ensure that you can access the latest version of the tools.

For compilation after git-cloning, users can make use

pip3 install .

Note that the makefile will not install any of the dependencies, listed in the requirements.txt file in the main directory. You can use this file to quickly install dependencies within a Python virtual environment, or install each dependency one at a time.

The Julia version of the code is not built by default. If you have Julia installed on your system, you can do

make julia

from the main package directory. This will build a Julia sysimage to speed up access of Julia source code from Python, but it is not strictly necessary. See the documentation to read about interfacing Python and Julia.

Atomic data

Aurora offers a simple interface to download, read, process and plot atomic data from the Atomic Data and Structure Analysis (ADAS) database, particularly through the OPEN-ADAS website: www.open-adas.ac.uk . ADAS data files can be fetched remotely and stored within the Aurora distribution directory, or users may choose to fetch ADAS files from a chosen, pre-existing directory by setting

export AURORA_ADAS_DIR=my_adas_directory

within their Linux environment (or analogous). If an ADAS files that is not available in AURORA_ADAS_DIR is requested by a user, Aurora attempts to download it and store it there. If you are using a public installation of Aurora and you do not have write-access to the directory where Aurora is installed, make sure to set AURORA_ADAS_DIR to a directory where you do have write-access before starting.

Several ADAS formats can currently be managed – please see the docs. Please contact the authors to request and/or suggest expansions of current capabilities.

Surface data

Aurora also contains an interface to read and plot plasma-material interaction data, for the most fusion-relevant ion species and wall materials, namely concerning reflection, sputtering and implantation of plasma ions from/into wall materials. The data were generated with the TRIM.SP Monte Carlo program.

Please contact the authors to request and/or suggest expansions of current capabilities.

License

Aurora is distributed under the MIT License. The package is made open-source with the hope that this will speed up research on fusion energy and make further code development easier. However, we kindly ask that all users communicate to us their purposes, difficulties and successes with Aurora, so that we may support users as much as possible and grow the code further.

Citing Aurora

Please see the User Agreement.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aurorafusion-3.0.6.tar.gz (14.2 MB view details)

Uploaded Source

File details

Details for the file aurorafusion-3.0.6.tar.gz.

File metadata

  • Download URL: aurorafusion-3.0.6.tar.gz
  • Upload date:
  • Size: 14.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for aurorafusion-3.0.6.tar.gz
Algorithm Hash digest
SHA256 c730ab94bdaad39a2454454b21927d432d04f7b243a59b7791cd83f596e11a6f
MD5 76b7f27658b9eac7f784842e64983919
BLAKE2b-256 b340e1162c70fda0e61ba34ad4956c136fefb9ea045d80c10eaf9d23fb70dff3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page