Skip to content

alpxp/atomic_neu

 
 

Repository files navigation

Atomic_neu

Atomic_neu is a set of tools to calculate fractional abundance and radiation of different elements in hot plasmas.

Installation and running the code


Ensure you have a Fortran compiler installed.

Required code from OPEN-ADAS:

    $ python fetch_adas_data # fetch the atomic data and reading routines
    $ pip install . # to compile the extension module

See below for details.

Launch ipython and try out the examples:

    $ ipython

    (in ipython) >>> %run examples/radiation.py

Fetching the atomic data

Atomic needs atomic data ionisation/recombination etc. coefficients, as well as the routines to read them. These are fetched from the OpenADAS [1] website. In order to download your own dataset and reading routines run:

    $ python fetch_adas_data

For description of these so called iso-nuclear master files see [2].

The routines to download are

http://open.adas.ac.uk/codes/xxdata_11.tar.gz and http://open.adas.ac.uk/codes/xxdata_15.tar.gz

and should be put in the src folder and unzipped like

src/xxdata_11 and src/xxdata_15.

Compiling python extension module

Ensure you have a Fortran compiler installed.

The extension module is compiled using meson:

    $ meson setup builddir
    $ meson compile -C builddir
    $ meson install -C builddir

or

    $ pip install .

Testing

Have nose2 installed.

$ nose2

Test boilerplate was first produced automatedly with pythoscope, so at time of writing (20160916) many tests are skipped. (S)

References

[1] http://open.adas.ac.uk [2] http://www.adas.ac.uk/man/chap4-04.pdf

About

Simple atomic processes, coronal equilibrium, rate equations, radiation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 67.6%
  • Python 31.4%
  • Other 1.0%