MPI-AMRVAC
3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
|
Module for including gravity in (magneto)hydrodynamics simulations. More...
Functions/Subroutines | |
subroutine | grav_params_read (files) |
Read this module's parameters from a file. More... | |
subroutine | gravity_init () |
Initialize the module. More... | |
subroutine | gravity_add_source (qdt, ixIL, ixOL, wCT, wCTprim, w, x, energy, rhov, qsourcesplit, active) |
w[iw]=w[iw]+qdt*S[wCT,qtC,x] where S is the source based on wCT within ixO More... | |
subroutine | gravity_get_dt (w, ixIL, ixOL, dtnew, dxD, x) |
Variables | |
logical | grav_split = .false. |
source split or not More... | |
Module for including gravity in (magneto)hydrodynamics simulations.
subroutine mod_gravity::grav_params_read | ( | character(len=*), dimension(:), intent(in) | files | ) |
Read this module's parameters from a file.
Definition at line 10 of file mod_gravity.t.
subroutine mod_gravity::gravity_add_source | ( | double precision, intent(in) | qdt, |
integer, intent(in) | ixI, | ||
integer, intent(in) | L, | ||
integer, intent(in) | ixO, | ||
L, | |||
double precision, dimension(ixi^s,1:nw), intent(in) | wCT, | ||
double precision, dimension(ixi^s,1:nw), intent(in) | wCTprim, | ||
double precision, dimension(ixi^s,1:nw), intent(inout) | w, | ||
double precision, dimension(ixi^s,1:ndim), intent(in) | x, | ||
logical, intent(in) | energy, | ||
logical, intent(in) | rhov, | ||
logical, intent(in) | qsourcesplit, | ||
logical, intent(inout) | active | ||
) |
w[iw]=w[iw]+qdt*S[wCT,qtC,x] where S is the source based on wCT within ixO
Definition at line 41 of file mod_gravity.t.
subroutine mod_gravity::gravity_get_dt | ( | double precision, dimension(ixi^s,1:nw), intent(in) | w, |
integer, intent(in) | ixI, | ||
integer, intent(in) | L, | ||
integer, intent(in) | ixO, | ||
L, | |||
double precision, intent(inout) | dtnew, | ||
double precision, intent(in) | dx, | ||
double precision, intent(in) | D, | ||
double precision, dimension(ixi^s,1:ndim), intent(in) | x | ||
) |
Definition at line 85 of file mod_gravity.t.
subroutine mod_gravity::gravity_init |
Initialize the module.
Definition at line 25 of file mod_gravity.t.
logical mod_gravity::grav_split = .false. |
source split or not
Definition at line 6 of file mod_gravity.t.