aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-21 15:17:01 +0800
committerAaron LI <aly@aaronly.me>2017-10-21 15:17:01 +0800
commit4f1b9b0cc8828cb81fb2cfee89b5153cc7ace0ae (patch)
tree7d4a9ce88d785095bbc2163067e95d5b563e07e4 /fg21sim/utils
parentfd20ab688759f3dfc3f7796ac0b1118e21ee5b22 (diff)
downloadfg21sim-4f1b9b0cc8828cb81fb2cfee89b5153cc7ace0ae.tar.bz2
clusters/halo: Add function "speed_sound()"
Also add "gamma" the adiabatic index of ideal gas to utils/units.py
Diffstat (limited to 'fg21sim/utils')
-rw-r--r--fg21sim/utils/units.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fg21sim/utils/units.py b/fg21sim/utils/units.py
index dfe5013..e7deb17 100644
--- a/fg21sim/utils/units.py
+++ b/fg21sim/utils/units.py
@@ -100,3 +100,6 @@ class Constants:
# Mean molecular weight
# Ref.: Ettori et al, 2013, Space Science Review, 177, 119-154, Eq.(6)
mu = 0.6
+
+ # Adiabatic index of ideal monatomic gas
+ gamma = 5.0/3.0