MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
mod_eos_lte.t File Reference

Go to the source code of this file.

Modules

module  mod_eos_lte
 LTE (Saha-table) EoS kernels and finalise for the eos% family.

Functions/Subroutines

subroutine, public mod_eos_lte::eos_init_lte ()
 update_eos_LTE, get_Te_LTE, get_temperature_from_eint_LTE and Rfactor_from_LTE are PRIVATE: all bound to eos% pointers inside eos_finalise_LTE, so no external module names them. get_temperature_from_eint_fast_LTE stays public – the seam binds it to tc_flget_temperature_ciso2_from_eint (fast TC path, optional p/rho)
subroutine, public mod_eos_lte::eos_finalise_lte ()
 LTE arm of eos_finalise: wire the LTE runtime pointer targets, then dispatch on eos_method to the per-method finaliser, each owned by its method module (analytic->mod_eos_lte_saha, entropy->mod_eos_lte_entropy, tables->mod_eos_lte_tables).
subroutine, public mod_eos_lte::get_temperature_from_eint_fast_lte (w, x, ixil, ixol, res, ciso2)
double precision function, public mod_eos_lte::y_from_nh_eint (nh, eint_nh)
 Scalar EoS kernels: one cell on (log10 nH, log10 eint/nH) or (log10 nH, log10 p/nH), in code units, each dispatching to the analytic Saha solve, the entropy tables or the tables.
double precision function, public mod_eos_lte::t_from_nh_eint (nh, eint_nh)
 Temperature from (log10 nH, log10 eint/nH).
double precision function, public mod_eos_lte::p2eint_from_nh_p (nh, ponh)
 Ratio eint/p from (log10 nH, log10 p/nH).
double precision function, public mod_eos_lte::gamma1_from_nh_p (log_nh, log_p_nh)
 Gamma_1 from (log10 nH, log10 p/nH), one lookup on the pressure-indexed table.
double precision function, public mod_eos_lte::lte_gamma1_from_p (pres, rho_val)
 Gamma_1 of one cell from (p, rho): the ideal value where fully ionised, else the pressure- indexed table of the method.
double precision function, public mod_eos_lte::p_nh_from_eint (log_nh, log_eint_nh)
 p/nH = (1 + He + y) T from (log10 nH, log10 eint/nH)
double precision function, public mod_eos_lte::eint_nh_from_t (log_nh, log_t)
 eint/nH from (log10 nH, log10 T), from the inverse table when one is built and the Saha solve otherwise
pure double precision function pchip_1d (p0, p1, p2, p3, t)
subroutine, public mod_eos_lte::eint_from_p_bisect (log_nh_val, log_p_val, log_eint_nh_out)
 Given log10(nH) and log10(p), find log10(eint/nH) by table-guessed bisection on the forward pressure table. Wraps the bracketing logic and log_p_bisect_cached into a single call for use by both HD and MHD from_conserved routines.
subroutine, public mod_eos_lte::eos_get_eintt_grid (n_nh, lg_nh_min, lg_nh_max)
 ####################################################################### Table-metadata helpers: expose inverse-table grid bounds without reaching into EoS table internals. #######################################################################
double precision function, public mod_eos_lte::lte_p_from_eint (eint_val, nh_val, log_nh_val, inv_rho)
 LTE pressure from internal energy in one cell: ideal without ionE, else the table floor, the FI bypass or p(nH, eint). log_nH_val is read only with ionE.
double precision function, public mod_eos_lte::lte_eint_from_p (pres, nh_val, log_nh_val, rho_val)
 LTE internal energy from pressure in one cell: FI bypass, else eint(nH, p).

Function/Subroutine Documentation

◆ pchip_1d()

pure double precision function log_p_bisect_cached::pchip_1d ( double precision, intent(in) p0,
double precision, intent(in) p1,
double precision, intent(in) p2,
double precision, intent(in) p3,
double precision, intent(in) t )

Definition at line 672 of file mod_eos_lte.t.

Here is the call graph for this function: