Function adas.xxdata_49
def xxdata_49(file=None)
-
Reads universal charge exchange data from an adf49 file and returns all of its contents in a dictionary.
Parameters
file
:str
- full name of ADAS adf49 file
Returns
fulldata
:dict
- contents of the adf49 file
'file' : adf49 filename 'symbd' : donor ion element symbol string 'izd' : donor charge 'indd' : donor state index 'nenrgy' : number of energies 'n' : array of scaled n shells 'alpha' : alpha parameter 'beta' : beta parameter 'gamma' : array of gamma parameter for scaling n shells 'delta' : array of delta parameter for scaling x sects 'ltype' : 1/0 indicating whether l-shell parameters are present in file 'lparms' : type of L parms used (currently only 1) 'enrgya' : array of scaled energies 'sigta' : array of scaled total cross sectio 'signa' : array of scaled n-shell cross sections
Notes
Pure python routine.
References
ADAS manual description of adf49: http://www.adas.ac.uk/man/appxa-49.pdf
Version History
- Martin O'Mullane, 31-05-2021
- First version
Example
Read in the scaled universal data for CX capture from n=2 of hydrogen and print the first 5 scaled total cross sections and the set of scale n.
>>> import adas as adas >>> file='/home/adas/adas/adf49/arf07#h0_n2.dat' >>> fulldata = adas.xxdata_49(file) >>> fulldata['sigta'][0:5] array([5.56e-15, 5.74e-15, 5.85e-15, 5.89e-15, 5.90e-15]) >>> fulldata['n'] array([0.5, 0.6, 0.7, 0.8, 0.9, 1. , 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2. , 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3. ])