MPI-AMRVAC  3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Functions/Subroutines | Variables
mod_gravity Module Reference

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...
 

Detailed Description

Module for including gravity in (magneto)hydrodynamics simulations.

Function/Subroutine Documentation

◆ grav_params_read()

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.

◆ gravity_add_source()

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 43 of file mod_gravity.t.

◆ gravity_get_dt()

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 80 of file mod_gravity.t.

◆ gravity_init()

subroutine mod_gravity::gravity_init

Initialize the module.

Definition at line 26 of file mod_gravity.t.

Here is the call graph for this function:

Variable Documentation

◆ grav_split

logical mod_gravity::grav_split = .false.

source split or not

Definition at line 6 of file mod_gravity.t.