MPI-AMRVAC  3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Modules | Functions/Subroutines | Variables
mod_hd_phys.t File Reference

Go to the source code of this file.

Modules

module  mod_hd_phys
 Hydrodynamics physics module.
 

Functions/Subroutines

subroutine mod_hd_phys::hd_write_info (fh)
 Write this module's parameters to a snapsoht. More...
 
subroutine, public mod_hd_phys::hd_phys_init ()
 Initialize the module. More...
 
subroutine mod_hd_phys::hd_te_images
 
subroutine mod_hd_phys::hd_sts_set_source_tc_hd (ixIL, ixOL, w, x, wres, fix_conserve_at_step, my_dt, igrid, nflux)
 
double precision function mod_hd_phys::hd_get_tc_dt_hd (w, ixIL, ixOL, dxD, x)
 
subroutine mod_hd_phys::hd_tc_handle_small_e (w, x, ixIL, ixOL, step)
 
subroutine mod_hd_phys::tc_params_read_hd (fl)
 
subroutine mod_hd_phys::hd_get_rho (w, x, ixIL, ixOL, rho)
 
subroutine mod_hd_phys::rc_params_read (fl)
 
subroutine, public mod_hd_phys::hd_check_params
 
subroutine mod_hd_phys::hd_physical_units
 
subroutine, public mod_hd_phys::hd_check_w (primitive, ixIL, ixOL, w, flag)
 Returns logical argument flag where values are ok. More...
 
subroutine, public mod_hd_phys::hd_to_conserved (ixIL, ixOL, w, x)
 Transform primitive variables into conservative ones. More...
 
subroutine, public mod_hd_phys::hd_to_primitive (ixIL, ixOL, w, x)
 Transform conservative variables into primitive ones. More...
 
subroutine mod_hd_phys::hd_ei_to_e (ixIL, ixOL, w, x)
 Transform internal energy to total energy. More...
 
subroutine mod_hd_phys::hd_e_to_ei (ixIL, ixOL, w, x)
 Transform total energy to internal energy. More...
 
subroutine mod_hd_phys::e_to_rhos (ixIL, ixOL, w, x)
 
subroutine mod_hd_phys::rhos_to_e (ixIL, ixOL, w, x)
 
subroutine mod_hd_phys::hd_get_v_idim (w, x, ixIL, ixOL, idim, v)
 Calculate v_i = m_i / rho within ixO^L. More...
 
subroutine mod_hd_phys::hd_get_v (w, x, ixIL, ixOL, v)
 Calculate velocity vector v_i = m_i / rho within ixO^L. More...
 
subroutine mod_hd_phys::hd_get_cmax (w, x, ixIL, ixOL, idim, cmax)
 Calculate cmax_idim = csound + abs(v_idim) within ixO^L. More...
 
subroutine mod_hd_phys::hd_get_a2max (w, x, ixIL, ixOL, a2max)
 
subroutine mod_hd_phys::hd_get_tcutoff (ixIL, ixOL, w, x, tco_local, Tmax_local)
 get adaptive cutoff temperature for TRAC (Johnston 2019 ApJL, 873, L22) More...
 
subroutine mod_hd_phys::hd_get_cbounds (wLC, wRC, wLp, wRp, x, ixIL, ixOL, idim, Hspeed, cmax, cmin)
 Calculate cmax_idim = csound + abs(v_idim) within ixO^L. More...
 
subroutine, public mod_hd_phys::hd_get_csound2 (w, x, ixIL, ixOL, csound2)
 Calculate the square of the thermal sound speed csound2 within ixO^L. csound2=gamma*p/rho. More...
 
subroutine, public mod_hd_phys::hd_get_pthermal (w, x, ixIL, ixOL, pth)
 Calculate thermal pressure=(gamma-1)*(e-0.5*m**2/rho) within ixO^L. More...
 
subroutine mod_hd_phys::hd_get_temperature_from_etot (w, x, ixIL, ixOL, res)
 Calculate temperature=p/rho when in e_ the total energy is stored. More...
 
subroutine mod_hd_phys::hd_get_temperature_from_eint (w, x, ixIL, ixOL, res)
 Calculate temperature=p/rho when in e_ the internal energy is stored. More...
 
subroutine mod_hd_phys::hd_get_flux_cons (w, x, ixIL, ixOL, idim, f)
 
subroutine mod_hd_phys::hd_get_flux (wC, w, x, ixIL, ixOL, idim, f)
 
subroutine mod_hd_phys::hd_add_source_geom (qdt, dtfactor, ixIL, ixOL, wCT, w, x)
 Add geometrical source terms to w. More...
 
subroutine mod_hd_phys::hd_add_source (qdt, dtfactor, ixIL, ixOL, wCT, wCTprim, w, x, qsourcesplit, active)
 
subroutine mod_hd_phys::hd_get_dt (w, ixIL, ixOL, dtnew, dxD, x)
 
double precision function, dimension(ixo^s), public mod_hd_phys::hd_kin_en (w, ixIL, ixOL, inv_rho)
 
double precision function, dimension(ixo^s) mod_hd_phys::hd_inv_rho (w, ixIL, ixOL)
 
subroutine mod_hd_phys::hd_handle_small_values (primitive, w, x, ixIL, ixOL, subname)
 
subroutine mod_hd_phys::rfactor_from_temperature_ionization (w, x, ixIL, ixOL, Rfactor)
 
subroutine mod_hd_phys::rfactor_from_constant_ionization (w, x, ixIL, ixOL, Rfactor)
 
subroutine mod_hd_phys::hd_update_temperature (ixIL, ixOL, wCT, w, x)
 

Variables

logical, public, protected mod_hd_phys::hd_energy = .true.
 Whether an energy equation is used. More...
 
logical, public, protected mod_hd_phys::hd_thermal_conduction = .false.
 Whether thermal conduction is added. More...
 
type(tc_fluid), allocatable, public mod_hd_phys::tc_fl
 
type(te_fluid), allocatable, public mod_hd_phys::te_fl_hd
 
logical, public, protected mod_hd_phys::hd_radiative_cooling = .false.
 Whether radiative cooling is added. More...
 
type(rc_fluid), allocatable, public mod_hd_phys::rc_fl
 
logical, public, protected mod_hd_phys::hd_dust = .false.
 Whether dust is added. More...
 
logical, public, protected mod_hd_phys::hd_viscosity = .false.
 Whether viscosity is added. More...
 
logical, public, protected mod_hd_phys::hd_gravity = .false.
 Whether gravity is added. More...
 
logical, public, protected mod_hd_phys::hd_particles = .false.
 Whether particles module is added. More...
 
logical, public, protected mod_hd_phys::hd_rotating_frame = .false.
 Whether rotating frame is activated. More...
 
logical, public, protected mod_hd_phys::hd_cak_force = .false.
 Whether CAK radiation line force is activated. More...
 
integer, public, protected mod_hd_phys::hd_n_tracer = 0
 Number of tracer species. More...
 
logical, public, protected mod_hd_phys::hd_partial_ionization = .false.
 Whether plasma is partially ionized. More...
 
integer, public, protected mod_hd_phys::rho_
 Index of the density (in the w array) More...
 
integer, dimension(:), allocatable, public, protected mod_hd_phys::mom
 Indices of the momentum density. More...
 
integer, dimension(:), allocatable, public, protected mod_hd_phys::tracer
 Indices of the tracers. More...
 
integer, public, protected mod_hd_phys::e_
 Index of the energy density (-1 if not present) More...
 
integer, public, protected mod_hd_phys::p_
 Index of the gas pressure (-1 if not present) should equal e_. More...
 
integer, public, protected mod_hd_phys::te_
 Indices of temperature. More...
 
integer, public, protected mod_hd_phys::tcoff_
 Index of the cutoff temperature for the TRAC method. More...
 
double precision, public mod_hd_phys::hd_gamma = 5.d0/3.0d0
 The adiabatic index. More...
 
double precision, public mod_hd_phys::hd_adiab = 1.0d0
 The adiabatic constant. More...
 
logical, public, protected mod_hd_phys::hd_trac = .false.
 Whether TRAC method is used. More...
 
integer, public, protected mod_hd_phys::hd_trac_type = 1
 
logical, public, protected mod_hd_phys::hd_force_diagonal = .false.
 Allows overruling default corner filling (for debug mode, since otherwise corner primitives fail) More...
 
double precision, public, protected mod_hd_phys::he_abundance =0.1d0
 Helium abundance over Hydrogen. More...
 
double precision, public, protected mod_hd_phys::h_ion_fr =1d0
 Ionization fraction of H H_ion_fr = H+/(H+ + H) More...
 
double precision, public, protected mod_hd_phys::he_ion_fr =1d0
 Ionization fraction of He He_ion_fr = (He2+ + He+)/(He2+ + He+ + He) More...
 
double precision, public, protected mod_hd_phys::he_ion_fr2 =1d0
 Ratio of number He2+ / number He+ + He2+ He_ion_fr2 = He2+/(He2+ + He+) More...
 
double precision, public, protected mod_hd_phys::rr =1d0
 
logical, public, protected mod_hd_phys::eq_state_units = .true.