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

Go to the source code of this file.

Data Types

interface  mod_physics::sub_check_params
 
interface  mod_physics::sub_set_mg_bounds
 
interface  mod_physics::sub_boundary_adjust
 
interface  mod_physics::sub_convert
 
interface  mod_physics::sub_modify_wLR
 
interface  mod_physics::sub_get_cmax
 
interface  mod_physics::sub_get_a2max
 
interface  mod_physics::sub_get_cs2max
 
interface  mod_physics::sub_get_tcutoff
 
interface  mod_physics::sub_trac_after_setdt
 
interface  mod_physics::sub_get_v
 
interface  mod_physics::sub_get_rho
 
interface  mod_physics::sub_get_H_speed
 
interface  mod_physics::sub_get_cbounds
 
interface  mod_physics::sub_get_flux
 
interface  mod_physics::sub_add_source_geom
 
interface  mod_physics::sub_add_source
 
interface  mod_physics::sub_global_source
 Add global source terms on complete domain (potentially implicit) More...
 
interface  mod_physics::sub_clean_divb
 clean initial divb More...
 
interface  mod_physics::sub_set_equi_vars
 set equilibrium variables other than b0 (e.g. p0 and rho0) More...
 
interface  mod_physics::sub_special_advance
 Add special advance in each advect step. More...
 
interface  mod_physics::sub_get_dt
 
interface  mod_physics::sub_check_w
 
interface  mod_physics::sub_get_pthermal
 
interface  mod_physics::sub_get_auxiliary
 
interface  mod_physics::sub_get_auxiliary_prim
 
interface  mod_physics::sub_get_tgas
 
interface  mod_physics::sub_get_trad
 
interface  mod_physics::sub_write_info
 
interface  mod_physics::sub_small_values
 
interface  mod_physics::sub_get_var
 
interface  mod_physics::sub_get_ct_velocity
 
interface  mod_physics::sub_update_faces
 
interface  mod_physics::sub_face_to_center
 
interface  mod_physics::sub_evaluate_implicit
 
interface  mod_physics::sub_implicit_update
 
interface  mod_physics::sub_update_temperature
 

Modules

module  mod_physics
 This module defines the procedures of a physics module. It contains function pointers for the various supported routines. An actual physics module has to set these pointers to its implementation of these routines.
 

Functions/Subroutines

subroutine mod_physics::phys_check ()
 
subroutine mod_physics::dummy_init_params
 
subroutine mod_physics::dummy_check_params
 
subroutine mod_physics::dummy_modify_wlr (ixIL, ixOL, qt, wLC, wRC, wLp, wRp, s, idir)
 
subroutine mod_physics::dummy_get_h_speed (wprim, x, ixIL, ixOL, idim, Hspeed)
 
subroutine mod_physics::dummy_get_a2max (w, x, ixIL, ixOL, a2max)
 
subroutine mod_physics::dummy_get_cs2max (w, x, ixIL, ixOL, cs2max)
 
subroutine mod_physics::dummy_add_source_geom (qdt, dtfactor, ixIL, ixOL, wCT, wprim, w, x)
 
subroutine mod_physics::dummy_add_source (qdt, dtfactor, ixIL, ixOL, wCT, wCTprim, w, x, qsourcesplit, active)
 
subroutine mod_physics::dummy_check_w (primitive, ixIL, ixOL, w, w_flag)
 
subroutine mod_physics::dummy_get_pthermal (w, x, ixIL, ixOL, pth)
 
subroutine mod_physics::dummy_get_auxiliary (ixIL, ixOL, w, x)
 
subroutine mod_physics::dummy_get_auxiliary_prim (ixIL, ixOL, w)
 
subroutine mod_physics::dummy_boundary_adjust (igrid, psb)
 
subroutine mod_physics::dummy_write_info (fh)
 
subroutine mod_physics::dummy_small_values (primitive, w, x, ixIL, ixOL, subname)
 
subroutine mod_physics::dummy_get_ct_velocity (vcts, wLp, wRp, ixIL, ixOL, idim, cmax, cmin)
 
subroutine mod_physics::dummy_update_faces (ixIL, ixOL, qt, qdt, wprim, fC, fE, sCT, s, vcts)
 
subroutine mod_physics::dummy_face_to_center (ixOL, s)
 
subroutine mod_physics::dummy_evaluate_implicit (qtC, psa)
 
subroutine mod_physics::dummy_implicit_update (dtfactor, qdt, qtC, psa, psb)
 

Variables

double precision mod_physics::phys_gamma =5.d0/3.d0
 
integer mod_physics::phys_wider_stencil = 0
 To use wider stencils in flux calculations. A value of 1 will extend it by one cell in both directions, in any dimension. More...
 
integer, dimension(:, :), allocatable mod_physics::flux_type
 Array per direction per variable, which can be used to specify that certain fluxes have to be treated differently. More...
 
integer, parameter mod_physics::flux_default = 0
 Indicates a normal flux. More...
 
integer, parameter mod_physics::flux_tvdlf = 1
 Indicates the flux should be treated with tvdlf. More...
 
integer, parameter mod_physics::flux_no_dissipation = 2
 Indicates dissipation should be omitted. More...
 
integer, parameter mod_physics::flux_special = 3
 Indicates the flux should be specially treated. More...
 
integer, parameter mod_physics::flux_hll = 4
 Indicates the flux should be treated with hll. More...
 
logical mod_physics::phys_req_diagonal = .true.
 Whether the physics routines require diagonal ghost cells, for example for computing a curl. More...
 
logical mod_physics::phys_energy =.false.
 Solve energy equation or not. More...
 
logical mod_physics::phys_total_energy =.false.
 Solve total energy equation or not. More...
 
logical mod_physics::phys_internal_e =.false.
 Solve internal energy instead of total energy. More...
 
logical mod_physics::phys_partial_ionization =.false.
 Solve partially ionized one-fluid plasma. More...
 
logical mod_physics::phys_equi_pe =.false.
 if equilibrium pressure is splitted More...
 
character(len=name_len) mod_physics::physics_type = ""
 String describing the physics type of the simulation. More...
 
procedure(sub_check_params), pointer mod_physics::phys_check_params => null()
 
procedure(sub_set_mg_bounds), pointer mod_physics::phys_set_mg_bounds => null()
 
procedure(sub_convert), pointer mod_physics::phys_to_conserved => null()
 
procedure(sub_convert), pointer mod_physics::phys_to_primitive => null()
 
procedure(sub_modify_wlr), pointer mod_physics::phys_modify_wlr => null()
 
procedure(sub_get_cmax), pointer mod_physics::phys_get_cmax => null()
 
procedure(sub_get_a2max), pointer mod_physics::phys_get_a2max => null()
 
procedure(sub_get_cs2max), pointer mod_physics::phys_get_cs2max => null()
 
procedure(sub_get_tcutoff), pointer mod_physics::phys_get_tcutoff => null()
 
procedure(sub_trac_after_setdt), pointer mod_physics::phys_trac_after_setdt => null()
 
procedure(sub_get_h_speed), pointer mod_physics::phys_get_h_speed => null()
 
procedure(sub_get_cbounds), pointer mod_physics::phys_get_cbounds => null()
 
procedure(sub_get_flux), pointer mod_physics::phys_get_flux => null()
 
procedure(sub_get_v), pointer mod_physics::phys_get_v => null()
 
procedure(sub_get_rho), pointer mod_physics::phys_get_rho => null()
 
procedure(sub_get_dt), pointer mod_physics::phys_get_dt => null()
 
procedure(sub_add_source_geom), pointer mod_physics::phys_add_source_geom => null()
 
procedure(sub_add_source), pointer mod_physics::phys_add_source => null()
 
procedure(sub_global_source), pointer mod_physics::phys_global_source_after => null()
 
procedure(sub_special_advance), pointer mod_physics::phys_special_advance => null()
 
procedure(sub_check_w), pointer mod_physics::phys_check_w => null()
 
procedure(sub_get_pthermal), pointer mod_physics::phys_get_pthermal => null()
 
procedure(sub_get_tgas), pointer mod_physics::phys_get_tgas => null()
 
procedure(sub_get_trad), pointer mod_physics::phys_get_trad => null()
 
procedure(sub_boundary_adjust), pointer mod_physics::phys_boundary_adjust => null()
 
procedure(sub_write_info), pointer mod_physics::phys_write_info => null()
 
procedure(sub_small_values), pointer mod_physics::phys_handle_small_values => null()
 
procedure(sub_get_ct_velocity), pointer mod_physics::phys_get_ct_velocity => null()
 
procedure(sub_update_faces), pointer mod_physics::phys_update_faces => null()
 
procedure(sub_face_to_center), pointer mod_physics::phys_face_to_center => null()
 
procedure(sub_implicit_update), pointer mod_physics::phys_implicit_update => null()
 
procedure(sub_evaluate_implicit), pointer mod_physics::phys_evaluate_implicit => null()
 
procedure(sub_clean_divb), pointer mod_physics::phys_clean_divb => null()
 
procedure(sub_set_equi_vars), pointer mod_physics::phys_set_equi_vars => null()
 
procedure(sub_check_params), pointer mod_physics::phys_te_images => null()
 
procedure(sub_update_temperature), pointer mod_physics::phys_update_temperature => null()
 
procedure(sub_get_auxiliary), pointer mod_physics::phys_get_auxiliary => null()
 
procedure(sub_get_auxiliary_prim), pointer mod_physics::phys_get_auxiliary_prim => null()