aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/units.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/utils/units.py')
-rw-r--r--fg21sim/utils/units.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/fg21sim/utils/units.py b/fg21sim/utils/units.py
index bb8f670..3230225 100644
--- a/fg21sim/utils/units.py
+++ b/fg21sim/utils/units.py
@@ -20,7 +20,11 @@ class Units:
Commonly used units, especially in the CGS unit system.
"""
# Unit for electron momentum (p), thus its value is the Lorentz factor
- mec = ac.m_e.cgs.value*ac.c.cgs.value # [g cm / s]
+ # Unit: [g cm / s]
+ mec = ac.m_e.cgs.value*ac.c.cgs.value
+ # Energy of a still electron
+ # Unit: [erg]
+ mec2 = (ac.m_e * ac.c**2).to(au.erg).value
class UnitConversions: