rad_file_tables
- PlasmaCalcs.mhd.mhd_er_tables.rad_file_tables(rad_file, *, epermcoords, rcoords, radbins, u=None)
return erTableManager dict (of {var: Radiation lookup table}), for vars in file.
file should have quantities:
‘pscatter’ (probability of scattering)‘emtherm’ (thermal emission)‘opacity’ (opacity)file values should all (?) be in ln-space (e.g. ln(emtherm) instead of emtherm). [TODO] checkfile should have values in cgs. [TODO] checkrad_file: strpath to rad table file.epermcoords, rcoords: 1D arraycoords for eperm (energy per unit mass) and r (mass density).Units should be ‘raw’ units.radbins: int or 1D array-likenumber of radiation bins or coordinates of radiation bins.u: None or UnitsManagerused to calculate scale_quants to convert to ‘raw’ units.None –> all scale quants will be 1.