MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
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.
 
subroutine gravity_init ()
 Initialize the module.
 
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
 
subroutine gravity_get_dt (w, ixil, ixol, dtnew, dxd, x)
 

Variables

logical grav_split = .false.
 source split or not
 

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

Here is the call graph for this function:

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

◆ gravity_init()

subroutine mod_gravity::gravity_init

Initialize the module.

Definition at line 25 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.