Function adas.adf56_to_adf32

def adf56_to_adf32(adf56=None, iz0=0, iz=0, adf32=None, comments=None)

Produces the adf32 driver file for an ion, to use with the adas8#2 CADW ionization rate code, from a set of rules in an adf56 file.

Parameters

adf56 : str
full name of ADAS adf56 rules file
iz0 : int
nuclear charge.

iz : int ion charge (0 is neutral).

adf32 : str
full name of ADAS adf32 driver file
comments : list
comments for the end of the file as a list of strings.

Returns

nothing - the output is a file written to disk
 

Notes

Pure python code but calls adas8#1 and compiled routines which are dependent on fortran and a full ADAS installation.

References

ADAS manual description of adf56: http://www.adas.ac.uk/man/appxa-56.pdf ADAS manual description of adf32: http://www.adas.ac.uk/man/appxa-32.pdf

Version History

  • Martin O'Mullane, 03-08-2022

    • First version
  • Martin O'Mullane, 23-11-2023

    • Change the way rcn is called to avoid calling run_adas8#1 which introduces a dependency on perl.
  • Martin O'Mullane, 16-01-2024

    • Calculate EMX for EA configurations mostly to avoid issue with evaluating neutral stages.

Example

Generate the driver file for adas8#2 to calculate CADW rates for Ca5+.

>>> import adas as adas
>>> adf56 = '/home/adas/adas/adf56/large_arf09.dat'
>>> iz0 = 20
>>> iz = 5
>>> adas.adf56_to_adf32(adf56=adf56, iz0=iz0, iz=iz, adf32='/tmp/ca5_adf32.dat')