MPI-AMRVAC  3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Functions/Subroutines | Variables
mod_kdv Module Reference

Module for including kdv source term in simulations adds \(-\delta^2*\sum_i \partial_{iii} \rho \) over dimensions i. More...

Functions/Subroutines

subroutine kdv_params_read (files)
 Read this module's parameters from a file. More...
 
subroutine kdv_init ()
 Initialize the module. More...
 
subroutine kdv_add_source (qdt, ixIL, ixOL, wCT, w, x, qsourcesplit, active)
 w[iw]=w[iw]+qdt*S[wCT,qtC,x] where S is the source based on wCT within ixO More...
 
subroutine kdv_get_dt (w, ixIL, ixOL, dtnew, dxD, x)
 

Variables

logical kdv_split = .false.
 source split or not More...
 
double precision kdv_delta = 1.0d0
 forefactor \( \delta^2\) of \( \partial_{iii} \) term More...
 
integer kdv_order = 1
 switch for second order [1] or fourth order [2] central FD for \( \partial_{iii}\) Note: fourth order needs 3 nghostcells, all assume equidistant grid More...
 

Detailed Description

Module for including kdv source term in simulations adds \(-\delta^2*\sum_i \partial_{iii} \rho \) over dimensions i.

Function/Subroutine Documentation

◆ kdv_add_source()

subroutine mod_kdv::kdv_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(inout)  w,
double precision, dimension(ixi^s,1:ndim), intent(in)  x,
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 40 of file mod_kdv.t.

◆ kdv_get_dt()

subroutine mod_kdv::kdv_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 
)

Time step constraint for leap-frog time stepping combined with central 2nd order FD see e.g. Chun-Te Lee et al, Journal of Mathematics Research vol. 9, no.4, 2017 ISSN 1916-9795

Definition at line 94 of file mod_kdv.t.

◆ kdv_init()

subroutine mod_kdv::kdv_init

Initialize the module.

Definition at line 32 of file mod_kdv.t.

Here is the call graph for this function:

◆ kdv_params_read()

subroutine mod_kdv::kdv_params_read ( character(len=*), dimension(:), intent(in)  files)

Read this module's parameters from a file.

Definition at line 16 of file mod_kdv.t.

Variable Documentation

◆ kdv_delta

double precision mod_kdv::kdv_delta = 1.0d0

forefactor \( \delta^2\) of \( \partial_{iii} \) term

Definition at line 9 of file mod_kdv.t.

◆ kdv_order

integer mod_kdv::kdv_order = 1

switch for second order [1] or fourth order [2] central FD for \( \partial_{iii}\) Note: fourth order needs 3 nghostcells, all assume equidistant grid

Definition at line 12 of file mod_kdv.t.

◆ kdv_split

logical mod_kdv::kdv_split = .false.

source split or not

Definition at line 7 of file mod_kdv.t.