io interface

CGS units: constants, plus tools for scaling code units into CGS.

pyharm.units.get_cgs()

Get just the list of constants in CGS.

pyharm.units.get_units(MBH, M_unit, tp_over_te=3, gam=1.3333333333333333)

Get derived units and certain quantities for a system, given a BH mass in Msolar, and accretion density M_unit. Arguments tp_over_te and gam only matter for calculating Thetae_unit. Also note the calculation of Mdotedd assumes 10% efficiency.

Parameters:
  • MBH – Black hole mass in solar masses
  • M_unit – Density unit in grams, as fit by imaging with e.g. ipole
pyharm.units.get_units_M87(M_unit, tp_over_te=3)

Get units dict for MBH=6.2e9, i.e. M87. See get_units for details.

pyharm.units.get_units_SgrA(M_unit, tp_over_te=3)

Get units dict for MBH=6.2e9, i.e. M87. See get_units for details.