Function adas.xxdata_08
def xxdata_08(file=None)
-
Reads an adf08 radiative recombination rate file and returns all of its contents in a dictionary.
Parameters
file
:str
- full name of ADAS adf08 file
Returns
fulldata
:dict
- contents of the adf08 file
'filename' : adf08 filename 'iz' : Recombined ion charge 'iz0' : Nuclear charge 'iz1' : Recombining ion charge 'nprnt' : Total number of parents 'nprnti' : Number of parents which are initial parents 'bwnp' : Binding wave no. of ground parent (cm-1) 'ipa' : Number of parent energy levels 'ispa' : Multiplicity for parent level 'ipa()' Note: (ispa-1)/2 = quantum number (sp) 'ilpa' : Quantum number (lp) for parent level 'ipa()' 'xjpa' : Quantum number (jp) for parent level 'ipa()' 'wpa' : Energy relative to parent level 1 (cm-1) for parent level 'ipa()' 'cstrpa' : Nomencl./config. for parent level 'ipa()' 'il' : Number of energy levels (terms) of recombined ion 'bwnr' : Ionisation potential (cm-1) of lowest level of recombined ion 'ia' : Recombined ion energy level index number 'isa' : Multiplicity for recombined level 'ia()' 'ila' : Quantum number (l) for recombined level 'ia()' 'xja' : Quantum number (j) for recombined level 'ia()' 'wa' : Energy relative to recombined level 1 (cm-1) for recombined level 'ia()' 'cstrga' : Nomencl./config. for recombined ion level 'ia()' 'iprti' : Initial parent block index 'isprti' : Initial parent block term 'tprti' : Initial parent block spin multiplicity 'radr' : Term selective dielec. coeffts.(cm3 s-1) 1st.dim: level index 2nd.dim: initial parent index 3rd.dim: temperature index 'nte' : Number of temperatures 'tea' : Electron temperatures (k) 'lradr' : True => recombination present for level index False => not present for level index 1st.dim: level index 2nd.dim: initial parent index
Notes
Calls a fortran based shared object file - not pure python.
References
ADAS manual description of adf08: http://www.adas.ac.uk/man/appxa-08.pdf
Version History
- Martin O'Mullane, 02-04-2024
- First version
Example
Show the recombination rate for the 2s1 3p1 2P level of N4+ recombining to N3+.
>>> import adas as adas >>> file='/home/adas/adas/adf08/rrc98#li/rrc98#li_n4ls.dat' >>> fulldata = adas.xxdata_08(file) >>> fulldata['tea'][0:24:2] array([ 16000., 80000., 320000., 1600000.]) >>> fulldata['radr'][9,0,0:24:2] array([1.04e-13, 4.50e-14, 1.96e-14, 5.47e-15])