This is the legacy website for the Atomic and Molecular Data Unit.
The latest information about our activities can be found at
Existing data services at this location function as usual.

About Flexible Atomic Code (FAC)

It is an integrated software package by M. F. Gu to calculate various atomic radiative and collisional processes, including energy levels, radiative transition rates, collisional excitation and ionization by electron impact, photoionization, autoionization, radiative recombination and dielectronic capture. The package also includes a collisional radiative model to construct synthetic spectra for plasmas under different physical conditions. Physics and code descriptions can be found in the reference [Can. J. Phys. 86: 675-689 (2008)].

cFAC was started around 2010 (based on FAC-1.1.1, released in 2006), initially focusing on providing large volumes of data as required, e.g., for collisional-radiative (CR) plasma modeling, and eliminating reliance upon third-party Fortran numerical libraries with their C equivalents (hence the change in the package name). Databases and source codes for CR modeling will be available shortly.

Source Codes

FAC and cFAC codes are currently available at GitHub repositories of FAC and cFAC and managed by M. F. Gu and E. Stambulchik.

FAC Input Files

General guidelines to write input files for FAC calculations are available.


Examples of input files to run FAC codes are provided below.

Atomic data for K-shell and L-shell charge states
This is an example of calculating atomic data for K-shell and L-shell ions of silicon atoms.

Atomic data for M-shell ions by UTA levels For Au ion with 31 electrons, please type "python 31"
The input files create a set of atomic data to be used for M-shell ions.

Atomic data for Zeeman split levels For Fe, please type "python Fe"
This is an example of computing zemmann splitted levels and transition rates for He-like ions.

Atomic data for polarized atoms
This is an example of calculating poplarizations under unidirectional excitation of an electron beam. calculates the atomic data and calculates the spectral model and produce the linear polarization of the spectral lines.

Collisional-Radiatve model calculations type "phtyon 10 3 5" type "phtyon 10 3" type "phtyon 10 3"
This is an example of running the process, starting from generating the atomic data, solving rate equation and postprocessing. generates atomic data for Z=10, number of electrons =3, maximum n=5 for excitation. runs the collisional radiative module. prints the line intensities in ascii format. Due to matrix size limitation, the CR module in FAC code is best suited for a single charge state calculation. For charge balance calculations which involve numerous autoionizing states (dielectronic recombination channels), it is recommended to use a different code to solve the rate matrix equations.

Atomic Data Sets generated by FAC codes

  • Helium Atomic Data Sets
  • Lithium Atomic Data Sets
  • Beryllium Data Sets
  • Boron Data Sets
  • Carbon Data Sets
  • Nitrogen Data Sets
  • Oxygen Data Sets
  • Fluorine Data Sets
  • Neon Data Sets
  • Sodium Data Sets
  • Magnesium Data Sets
  • Aliminium Data Sets
  • Silicon Data Sets