Function adas.run_adas407

def run_adas407(adf04_z=None, adf04_z1=None, ion_type='A', rr_type='A', dr_type='A', pow_type='A', nmet=None, npar=None, te=None, dens=None, adf03=None, adf25=None, logfile=None)

Runs ADAS407 to generate parameterised atomic data for use in ADAS408 and ADAS204 codes.

Parameters

adf04_z : str
ionising specific ion file
adf04_z1 : str
ionised/recombining specific ion file
ion_type : str
'A' or 'B' formula for ionisation rate (defaults to 'A')
rr_type : str
'A' or 'B' formula for radiative recombination rate (defaults to 'A')
dr_type : str
'A' or 'B' formula for dielectronic recombination rate (defaults to 'A')
pow_type : str
'A' or 'B' formula for line power coefficient (defaults to 'A')
te : float, array
requested electron temperatures (reduced units) for adf25 driver file.
dens : float, array
requested electron temperatures (reduced units) for adf25 driver file.
logfile : str
name of log file, defaults to no output file

Returns

nothing - the output is file written to disk
 

Notes

Calls a fortran executable code and communicates via a bi-directional pipe connected to stdout.

The adf03 and adf25 outputs are not complete. The adf03 fragment should be embedded in an iso-nuclear set. The adf25 file requires editing to include supplementary ionisation and DR data.

The optional te and dens inputs are given in reduced units (K/iz2) and (cm-3/iz7) and are only needed if adf25 output is requested. The size of each is limited to 24 values.

References

ADAS manual description of adas407: http://www.adas.ac.uk/man/chap4-04.pdf

Version History

  • Martin O'Mullane, 28-04-2021
    • First version

Examples

Produce adf03 block for Be-like C for baseline 89-style data

>>> import adas as adas
>>> adf04_z  = '/home/adas/adas/adf04/copmm#6/ls#c2.dat'
>>> adf04_z1 = '/home/adas/adas/adf04/copmm#6/ls#c3.dat'
>>> adas.run_adas407(adf04_z=adf04_z, adf04_z1=adf04_z1,
                     adf03='a03.pass', logfile='paper-407.txt')

a03.pass and paper-407.txt will be written to the directory the routine was called from.