Function adas.run_adas315

def run_adas315(iz0=None, iz1=None, adf49=None, energy=None, lparams=True, n_norm=True, outfile=None, comments=None)

Runs the adas315 code to fenerate an adf01 file from a universal fit.

Parameters

iz0 : int
receiver atomic number
iz1 : int
receiver charge state
adf49 : str
file name for the universal scaled CX cross section dataset
energy : float, array, optional
requested beam energies (eV/amu) but if not given a default set is used.
lparams : bool
True => output l-parameters in ad01 output file False => Only output total and n-resolved cross sections and this is the default
no_norm : bool
True => normalize the n-shell cross section to the total and this is the default False => do not apply any normalization
outfile : str
full name of output adf01 file
comments : list
comments for the end of the file as a list of strings.

Returns

nothing - the output is an adf01 file written to disk
 

Notes

A pure python routine.

References

ADAS manual description of adas315: http://www.ac.uk/man/chap3-15.pdf

Version History

  • Martin O'Mullane, 31-05-2021

    • First version
  • Martin O'Mullane, 05-10-2022

    • The info dictionary from xxsple is now optional so adjust the way it is called.

Examples

Generate an adf01 file for Ne+9 and print the first line.

>>> import adas as adas
>>> adf49='/home/adas/adas/adf49/arf07#h0_n1.dat'
>>> adas.run_adas315(adf49=adf49, iz0=10, iz1=9, outfile='neon_adf01.pass')
>>> with open('neon_adf01.pass') as f: first_line = f.readline()
>>> first_line.strip()
'Ne+ 9     H + 1 (1)  / receiver, donor (donor state index)    / LPARMS /''