From 5e1f261f84776e6f4f33f8ef21397c43e5895801 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 25 Jun 2016 11:03:46 +0800 Subject: calc_mass_potential.py: update documentation --- calc_mass_potential.py | 58 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/calc_mass_potential.py b/calc_mass_potential.py index 48a20d4..46fe777 100755 --- a/calc_mass_potential.py +++ b/calc_mass_potential.py @@ -2,20 +2,63 @@ # # Weitian LI # Created: 2016-06-24 -# Updated: 2016-06-24 +# Updated: 2016-06-25 # # Change logs: +# 2016-06-25: +# * Update documentation # 2016-06-24: # * Update method 'gen_radius()' # """ Calculate the (gas and gravitational) mass profile and gravitational -potential profile from the electron number density profile. -The temperature profile is required. +potential profile from the electron number density profile, under the +assumption of hydrostatic equilibrium. + +The electron density profile and temperature profile are required. + +Assuming that the gas is in hydrostatic equilibrium with the gravitational +potential and a spherically-symmetric distribution of the gas, we can +write the hydrostatic equilibrium equation (HEE) of the ICM as +(ref.[1], eq.(6)): + derivative(P_gas, r) / rho_gas = - derivative(phi, r) + = - G M_tot(