Function adas.run_adas211
def run_adas211(file=None, adf37=None, kappa=None, x=None, adf08=None, rlines=None, logfile=None)
-
Runs the adas211 radiative recombination generation code.
Parameters
file
:str
- full name of ADAS adf08 driver file
adf37
:str
- full name of optional ADAS adf37 numerical, electron energy distribution file
kappa
:float
- optional parameter for kappa distribution
x
:float
- optional parameter for Druyvestyn distribution
adf08
:str
- name of an adf08 formatted output file
rlines
:str
- name of a file containing the R-lines
logfile
:str
- name of log file, defaults to no output file
Returns
nothing - output files are written to disk
Notes
The usual, and default, operation is to generate R-lines for plasmas with a Maxwellian electron energy distribution function.
For numerical EEDFs supply an adf37 file and for kappa or Druyvesteyn functions the kappa or x parameter are required. Choose just one of these options.
Calls a fortran executable code and communicates via a bi-directional pipe connected to stdout.
Version History
- Martin O'Mullane, 11-07-2022
- First version
Examples
Calculate the R-lines for neutral helium assuming a Maxwellian electron energy distribution function.
>>> import adas as adas >>> file='/home/adas/adas/adf08/rrc96#h/rrc96#h_he1ls.dat' >>> adas.run_adas211(file=file, rlines='/tmp/rlines.txt')