MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
Functions/Subroutines | Variables
mod_hd_eos Module Reference

HD <-> EoS seam: binds the eos% authority into hydrodynamics. More...

Functions/Subroutines

subroutine, public hd_link_eos ()
 Link the appropriate EOS conversion routines based on the selected EoS type.
 
subroutine, public hd_get_pthermal (w, x, ixil, ixol, pth)
 Calculate thermal pressure within ixO^L. For energy runs delegates to eosget_thermal_pressure; for no-energy (isothermal) uses the adiabatic relation p = adiab * rho^gamma.
 

Variables

procedure(sub_convert), pointer, public hd_to_primitive => null()
 
procedure(sub_convert), pointer, public hd_to_conserved => null()
 

Detailed Description

HD <-> EoS seam: binds the eos% authority into hydrodynamics.

hd_link_eos wires the eos%/phys_ procedure pointers (conversions, pthermal, csound2/gamma1, get_Rfactor, temperature, update_temperature) per eos_type (FI / LTE / PI, with PI energy- and prominence-mode overrides). bind_eos_to_source wires the thermal-conduction / radiative-cooling / FLD fluid-port callbacks from eos%.

Holds the HD block routines that wrap the shared thermodynamics with HD's mechanical-energy bookkeeping – total-energy ("origin") formulation, dust-aware: FI/LTE/PI conversions, p_to_e, pthermal, csound2/gamma1, and the PI energy + prominence R-factor / temperature kernels.

Function/Subroutine Documentation

◆ hd_get_pthermal()

subroutine, public mod_hd_eos::hd_get_pthermal ( double precision, dimension(ixi^s, 1:nw), intent(in)  w,
double precision, dimension(ixi^s, 1:ndim), intent(in)  x,
integer, intent(in)  ixi,
integer, intent(in)  l,
integer, intent(in)  ixo,
  l,
double precision, dimension(ixi^s), intent(out)  pth 
)

Calculate thermal pressure within ixO^L. For energy runs delegates to eosget_thermal_pressure; for no-energy (isothermal) uses the adiabatic relation p = adiab * rho^gamma.

Definition at line 429 of file mod_hd_eos.t.

Here is the call graph for this function:

◆ hd_link_eos()

subroutine, public mod_hd_eos::hd_link_eos

Link the appropriate EOS conversion routines based on the selected EoS type.

suitable for both FI and LTE

PI energy-mode overrides (eos_type='PI', ionE=.true.)

eosget_csound2 => get_csound2_PI set in eos_finalise_PI (private target)

Definition at line 42 of file mod_hd_eos.t.

Here is the call graph for this function:

Variable Documentation

◆ hd_to_conserved

procedure(sub_convert), pointer, public mod_hd_eos::hd_to_conserved => null()

Definition at line 35 of file mod_hd_eos.t.

◆ hd_to_primitive

procedure(sub_convert), pointer, public mod_hd_eos::hd_to_primitive => null()

Definition at line 34 of file mod_hd_eos.t.