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] check- rad_file: str
- path to rad table file.
- epermcoords, rcoords: 1D array
- coords for eperm (energy per unit mass) and r (mass density).Units should be ‘raw’ units.
- radbins: int or 1D array-like
- number of radiation bins or coordinates of radiation bins.
- u: None or UnitsManager
- used to calculate scale_quants to convert to ‘raw’ units.None –> all scale quants will be 1.