Function adas.run_adas204

def run_adas204(adf25=None, adf17=None, logfile=None, popfile=None, projfile=None, acdfile=None, scdfile=None, xcdfile=None, prbfile=None, pcasfile=None)

Runs the adas204 bundle-n population code. Input and output are files.

Parameters

adf25 : str
full name of ADAS adf25 driver file
adf17 : str
output file of projection matrices
logfile : str
name of log file
popfile : str, optional
output file of population details
projfile : str, optional
output file with projection details
acdfile : str, optional
output file of recombination coefficients
scdfile : str, optional
output file of ionization coefficients
xcdfile : str, optional
output file of cross-coupling coefficients
prbfile : str, optional
output file of recombination powers
pcasfile : str, optional
output file of wavelength binned recombination power

Notes

adas204 is used to produce the projection matrix data (adf17 format) used in generalized collisional-radiative (GCR) modelling. This may take a few minutes to run, depending on computer capabilities.

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

References

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

Version History

  • Martin O'Mullane, 20-11-2019
    • First version

Examples

Make the projection file for He-like O6+.

>>> import adas as adas
>>> adf25='/home/adas/adas/adf25/bns96#he/bns96#he_o6.dat'
>>> adf17='cbnm96#he_o6ls.dat'
>>> adas.run_adas204(adf25=adf25, adf17=adf17)