|
MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
|
Go to the source code of this file.
Modules | |
| module | mod_eos_lte_saha |
| Analytic hydrogen Saha EoS with neutral helium (eos_method == 'analytic'). | |
Functions/Subroutines | |
| subroutine, public | mod_eos_lte_saha::load_analytic_lte () |
| Analytic-method load: no binary tables (on-the-fly Saha solve); just announce the method. | |
| subroutine, public | mod_eos_lte_saha::finalise_analytic_lte () |
| Analytic-method finalise: there are no tables, only the shared FI-bypass constants. | |
| double precision function, public | mod_eos_lte_saha::saha_eint_from_nh_t (nh_code, t_code) |
| eint/nH from Saha at (nH, T), in code units | |
| subroutine, public | mod_eos_lte_saha::saha_state_from_nh_p (nh_code, p_code, t_out, y_out, eint_nh_out) |
| Given (nH, p) in code units, T, y and optionally eint/nH: bisection on p = nH*(1+He+y(T))*T, with kB absorbed in the code units. | |
| subroutine, public | mod_eos_lte_saha::saha_t_from_nh_eint (nh_code, eint_nh_code, t_out, y_out) |
| Temperature and ionisation fraction from (nH, eint/nH) in code units, by bisection. | |
| double precision function, public | mod_eos_lte_saha::saha_gamma1_from_nh_p (nh_code, p_code) |
| Gamma_1 at (nH, p) in code units, in closed form from the hydrogen Saha balance. T and y come from the bisection at that pressure, and with N = 1+He+y and theta = chi_H/kT dln y/dln T = (1-y)/(2-y) (3/2 + theta), chi_T = 1 + y dln y/dln T / N, chi_rho = 1 - y (1-y)/((2-y) N), c_v/kB = 3/2 N + (3/2 + theta) y dln y/dln T, Gamma_1 = chi_rho + chi_T**2 N kB/c_v, where the theta term of c_v is the heat taken up by ionisation. It is linked only with ionE, since without the ionisation energy p = (gamma-1) eint and the sound speed is the ideal one. | |