Function adas.adf04_ecipcalc

def adf04_ecipcalc(file=None, keep_sline=False)

Calculates the ionization rates from all levels in the ECIP approximation and returns the result as a dictionary which may be added to an adf04 fulldata dictionary.

Parameters

file : str
full name of ADAS adf04 file
keep_sline : bool
if set to True, evaluate the ionization rates if S-lines are present. Default is to return ECIP values for these levels.

Returns

iondata : dict
a dictionary holding the rates.

Notes

Pure python code but calls routines which are dependent on fortran.

The adf04 file must include 'iprt' and 'zpla' information.

The adf04 file must be of type 3, all other version return a None value.

Version History

  • Martin O'Mullane, 03-08-2022

    • First version
  • Martin O'Mullane, 07-08-2022

    • Check for adf04 type.

Example

Show the ECIP rate for ionization from 1s1 3p1 1P of C4+ (level 11) to the first (only) parent metastable.

>>> import adas as adas
>>> file = '/home/adas/adas/adf04/adas#6/mom97_ls#c4.dat'
>>> iond = adas.adf04_ecipcalc(file)
>>> iond['ion_rate'][0, 10, :]
array([2.88936010e-17, 2.40781080e-13, 6.51671494e-11, 4.72871131e-10,
       1.36653519e-09, 2.68214360e-09, 3.28503672e-09, 3.43815469e-09,
       3.11635098e-09, 2.65401308e-09, 2.14491524e-09, 1.54160647e-09])