aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fg21sim/extragalactic/clusters/halo.py2
-rw-r--r--fg21sim/extragalactic/clusters/helper.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index beaff9e..ab59db9 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -232,7 +232,7 @@ class RadioHalo:
Unit: [keV]
"""
mass = self.M_main + self.M_sub
- kT = helper.mass_to_kT(mass, z=self.z_merger)
+ kT = helper.kT_cluster(mass, z=self.z_merger)
return kT
@property
diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py
index daf806b..e43d7f4 100644
--- a/fg21sim/extragalactic/clusters/helper.py
+++ b/fg21sim/extragalactic/clusters/helper.py
@@ -241,10 +241,10 @@ def density_energy_thermal(mass, z=0.0):
-------
e_th : float
Energy density of the ICM
- Unit: [erg cm^-3]
+ Unit: [erg/cm^3]
"""
- n_th = density_number_thermal(mass, z) # [cm^-3]
- kT = mass_to_kT(mass, z) * AUC.keV2erg # [erg]
+ n_th = density_number_thermal(mass=mass, z=z) # [cm^-3]
+ kT = kT_cluster(mass, z) * AUC.keV2erg # [erg]
e_th = (3.0/2) * kT * n_th
return e_th