MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
|
Hydrodynamics physics module. More...
Functions/Subroutines | |
subroutine, public | hd_phys_init () |
Initialize the module. | |
subroutine, public | hd_check_params |
subroutine, public | hd_check_w (primitive, ixil, ixol, w, flag) |
Returns logical argument flag where values are ok. | |
subroutine, public | hd_to_conserved (ixil, ixol, w, x) |
Transform primitive variables into conservative ones. | |
subroutine, public | hd_to_primitive (ixil, ixol, w, x) |
Transform conservative variables into primitive ones. | |
subroutine, public | hd_get_csound2 (w, x, ixil, ixol, csound2) |
Calculate the square of the thermal sound speed csound2 within ixO^L. csound2=gamma*p/rho. | |
subroutine, public | hd_get_pthermal (w, x, ixil, ixol, pth) |
Calculate thermal pressure=(gamma-1)*(e-0.5*m**2/rho) within ixO^L. | |
double precision function, dimension(ixo^s), public | hd_kin_en (w, ixil, ixol, inv_rho) |
Variables | |
logical, public, protected | hd_energy = .true. |
Whether an energy equation is used. | |
logical, public, protected | hd_thermal_conduction = .false. |
Whether thermal conduction is added. | |
type(tc_fluid), allocatable, public | tc_fl |
type(te_fluid), allocatable, public | te_fl_hd |
logical, public, protected | hd_radiative_cooling = .false. |
Whether radiative cooling is added. | |
type(rc_fluid), allocatable, public | rc_fl |
logical, public, protected | hd_dust = .false. |
Whether dust is added. | |
logical, public, protected | hd_viscosity = .false. |
Whether viscosity is added. | |
logical, public, protected | hd_gravity = .false. |
Whether gravity is added. | |
logical, public, protected | hd_particles = .false. |
Whether particles module is added. | |
logical, public, protected | hd_rotating_frame = .false. |
Whether rotating frame is activated. | |
logical, public, protected | hd_cak_force = .false. |
Whether CAK radiation line force is activated. | |
integer, public, protected | hd_n_tracer = 0 |
Number of tracer species. | |
logical, public, protected | hd_partial_ionization = .false. |
Whether plasma is partially ionized. | |
integer, public, protected | rho_ |
Index of the density (in the w array) | |
integer, dimension(:), allocatable, public, protected | mom |
Indices of the momentum density. | |
integer, dimension(:), allocatable, public, protected | tracer |
Indices of the tracers. | |
integer, public, protected | e_ |
Index of the energy density (-1 if not present) | |
integer, public, protected | p_ |
Index of the gas pressure (-1 if not present) should equal e_. | |
integer, public, protected | te_ |
Indices of temperature. | |
integer, public, protected | tcoff_ |
Index of the cutoff temperature for the TRAC method. | |
double precision, public | hd_gamma = 5.d0/3.0d0 |
The adiabatic index. | |
double precision, public | hd_adiab = 1.0d0 |
The adiabatic constant. | |
logical, public, protected | hd_trac = .false. |
Whether TRAC method is used. | |
integer, public, protected | hd_trac_type = 1 |
double precision, public, protected | he_abundance =0.1d0 |
Helium abundance over Hydrogen. | |
double precision, public, protected | h_ion_fr =1d0 |
Ionization fraction of H H_ion_fr = H+/(H+ + H) | |
double precision, public, protected | he_ion_fr =1d0 |
Ionization fraction of He He_ion_fr = (He2+ + He+)/(He2+ + He+ + He) | |
double precision, public, protected | he_ion_fr2 =1d0 |
Ratio of number He2+ / number He+ + He2+ He_ion_fr2 = He2+/(He2+ + He+) | |
double precision, public, protected | rr =1d0 |
logical, public, protected | eq_state_units = .true. |
Hydrodynamics physics module.
subroutine, public mod_hd_phys::hd_check_params |
subroutine, public mod_hd_phys::hd_check_w | ( | logical, intent(in) | primitive, |
integer, intent(in) | ixi, | ||
integer, intent(in) | l, | ||
integer, intent(in) | ixo, | ||
l, | |||
double precision, dimension(ixi^s, nw), intent(in) | w, | ||
logical, dimension(ixi^s,1:nw), intent(inout) | flag | ||
) |
Returns logical argument flag where values are ok.
Definition at line 602 of file mod_hd_phys.t.
subroutine, public mod_hd_phys::hd_get_csound2 | ( | double precision, dimension(ixi^s,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) | csound2 | ||
) |
Calculate the square of the thermal sound speed csound2 within ixO^L. csound2=gamma*p/rho.
Definition at line 997 of file mod_hd_phys.t.
subroutine, public mod_hd_phys::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=(gamma-1)*(e-0.5*m**2/rho) within ixO^L.
Definition at line 1010 of file mod_hd_phys.t.
double precision function, dimension(ixo^s), public mod_hd_phys::hd_kin_en | ( | double precision, dimension(ixi^s, nw), intent(in) | w, |
integer, intent(in) | ixi, | ||
integer, intent(in) | l, | ||
integer, intent(in) | ixo, | ||
l, | |||
double precision, dimension(ixo^s), intent(in), optional | inv_rho | ||
) |
subroutine, public mod_hd_phys::hd_phys_init |
Initialize the module.
Definition at line 153 of file mod_hd_phys.t.
subroutine, public mod_hd_phys::hd_to_conserved | ( | integer, intent(in) | ixi, |
integer, intent(in) | l, | ||
integer, intent(in) | ixo, | ||
l, | |||
double precision, dimension(ixi^s, nw), intent(inout) | w, | ||
double precision, dimension(ixi^s, 1:ndim), intent(in) | x | ||
) |
Transform primitive variables into conservative ones.
Definition at line 631 of file mod_hd_phys.t.
subroutine, public mod_hd_phys::hd_to_primitive | ( | integer, intent(in) | ixi, |
integer, intent(in) | l, | ||
integer, intent(in) | ixo, | ||
l, | |||
double precision, dimension(ixi^s, nw), intent(inout) | w, | ||
double precision, dimension(ixi^s, 1:ndim), intent(in) | x | ||
) |
Transform conservative variables into primitive ones.
Definition at line 663 of file mod_hd_phys.t.
integer, public, protected mod_hd_phys::e_ |
Index of the energy density (-1 if not present)
Definition at line 57 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::eq_state_units = .true. |
Definition at line 99 of file mod_hd_phys.t.
double precision, public, protected mod_hd_phys::h_ion_fr =1d0 |
Ionization fraction of H H_ion_fr = H+/(H+ + H)
Definition at line 85 of file mod_hd_phys.t.
double precision, public mod_hd_phys::hd_adiab = 1.0d0 |
The adiabatic constant.
Definition at line 72 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_cak_force = .false. |
Whether CAK radiation line force is activated.
Definition at line 39 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_dust = .false. |
Whether dust is added.
Definition at line 24 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_energy = .true. |
Whether an energy equation is used.
Definition at line 12 of file mod_hd_phys.t.
double precision, public mod_hd_phys::hd_gamma = 5.d0/3.0d0 |
The adiabatic index.
Definition at line 69 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_gravity = .false. |
Whether gravity is added.
Definition at line 30 of file mod_hd_phys.t.
integer, public, protected mod_hd_phys::hd_n_tracer = 0 |
Number of tracer species.
Definition at line 42 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_partial_ionization = .false. |
Whether plasma is partially ionized.
Definition at line 45 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_particles = .false. |
Whether particles module is added.
Definition at line 33 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_radiative_cooling = .false. |
Whether radiative cooling is added.
Definition at line 20 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_rotating_frame = .false. |
Whether rotating frame is activated.
Definition at line 36 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_thermal_conduction = .false. |
Whether thermal conduction is added.
Definition at line 15 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_trac = .false. |
Whether TRAC method is used.
Definition at line 78 of file mod_hd_phys.t.
integer, public, protected mod_hd_phys::hd_trac_type = 1 |
Definition at line 79 of file mod_hd_phys.t.
logical, public, protected mod_hd_phys::hd_viscosity = .false. |
Whether viscosity is added.
Definition at line 27 of file mod_hd_phys.t.
double precision, public, protected mod_hd_phys::he_abundance =0.1d0 |
Helium abundance over Hydrogen.
Definition at line 82 of file mod_hd_phys.t.
double precision, public, protected mod_hd_phys::he_ion_fr =1d0 |
Ionization fraction of He He_ion_fr = (He2+ + He+)/(He2+ + He+ + He)
Definition at line 88 of file mod_hd_phys.t.
double precision, public, protected mod_hd_phys::he_ion_fr2 =1d0 |
Ratio of number He2+ / number He+ + He2+ He_ion_fr2 = He2+/(He2+ + He+)
Definition at line 91 of file mod_hd_phys.t.
integer, dimension(:), allocatable, public, protected mod_hd_phys::mom |
Indices of the momentum density.
Definition at line 51 of file mod_hd_phys.t.
integer, public, protected mod_hd_phys::p_ |
Index of the gas pressure (-1 if not present) should equal e_.
Definition at line 60 of file mod_hd_phys.t.
type(rc_fluid), allocatable, public mod_hd_phys::rc_fl |
Definition at line 21 of file mod_hd_phys.t.
integer, public, protected mod_hd_phys::rho_ |
Index of the density (in the w array)
Definition at line 48 of file mod_hd_phys.t.
double precision, public, protected mod_hd_phys::rr =1d0 |
Definition at line 95 of file mod_hd_phys.t.
type(tc_fluid), allocatable, public mod_hd_phys::tc_fl |
Definition at line 16 of file mod_hd_phys.t.
integer, public, protected mod_hd_phys::tcoff_ |
Index of the cutoff temperature for the TRAC method.
Definition at line 66 of file mod_hd_phys.t.
integer, public, protected mod_hd_phys::te_ |
Indices of temperature.
Definition at line 63 of file mod_hd_phys.t.
type(te_fluid), allocatable, public mod_hd_phys::te_fl_hd |
Definition at line 17 of file mod_hd_phys.t.
integer, dimension(:), allocatable, public, protected mod_hd_phys::tracer |
Indices of the tracers.
Definition at line 54 of file mod_hd_phys.t.