From 77e77c36b80be17b0abec00cd696b71922a01860 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 23 Jun 2017 10:25:54 +0800 Subject: utils/units.py: Add "rad2deg" and "k_B" --- fg21sim/utils/units.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fg21sim') diff --git a/fg21sim/utils/units.py b/fg21sim/utils/units.py index a7e4ef5..aea0f92 100644 --- a/fg21sim/utils/units.py +++ b/fg21sim/utils/units.py @@ -1,4 +1,4 @@ -# Copyright (c) 2017 Weitian LI +# Copyright (c) 2017 Weitian LI # MIT license """ @@ -48,6 +48,8 @@ class UnitConversions: km2cm = au.km.to(au.cm) # Energy keV2erg = au.keV.to(au.erg) + # Angle + rad2deg = au.rad.to(au.deg) class Constants: @@ -66,6 +68,8 @@ class Constants: G = ac.G.cgs.value # [cm^3/g/s^2] # Electron charge e = ac.e.gauss.value # [Fr] = [esu] + # Boltzmann constant + k_B = ac.k_B.cgs.value # [erg/K] # Mean molecular weight # Ref.: Ettori et al, 2013, Space Science Review, 177, 119-154, Eq.(6) -- cgit v1.2.2