Function adas.merge_adas810_plt

def merge_adas810_plt(files=None, adf11=None, project='ADAS810', comments=None)

Merges a set of partial plt coefficients from adas810 into a single iso-nuclear adf11 file.

Parameters

files : str, list
full name(s) of ADAS adf11 plt files.
adf11 : str
full name of the output adf11 file.
project : str
project name. Default is 'ADAS810'
comments : list
comments for the end of the file as a list of strings.

Returns

nothing - the output is an adf11 file written to disk
 

Notes

Pure python code.

Limited checks on whether the partial plt files are compatible for Z0 and Te/dens arrays.

References

ADAS manual description of adf11: http://www.adas.ac.uk/man/appxa-11.pdf

Version History

  • Martin O'Mullane, 18-05-2021
    • First version

Example

Generate the 3 lithium plt files with ADAS810. Combine into an iso-nuclear adf11 file by calling this routine.

>>> import adas as adas
>>> files = ['plt42_li_00.dat', 'plt42_li_01.dat', 'plt42_li_03.dat']
>>> adas.merge_adas810_plt(files, 'plt42_li.dat', project='Lithium work')