MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
|
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. | |
subroutine | kdv_init () |
Initialize the module. | |
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 | |
subroutine | kdv_get_dt (w, ixil, ixol, dtnew, dxd, x) |
Variables | |
logical | kdv_split = .false. |
source split or not | |
double precision | kdv_delta = 1.0d0 |
forefactor \( \delta^2\) of \( \partial_{iii} \) term | |
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 | |
Module for including kdv source term in simulations adds \(-\delta^2*\sum_i \partial_{iii} \rho \) over dimensions i.
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 | ||
) |
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 | ||
) |
subroutine mod_kdv::kdv_init |
subroutine mod_kdv::kdv_params_read | ( | character(len=*), dimension(:), intent(in) | files | ) |
double precision mod_kdv::kdv_delta = 1.0d0 |
integer mod_kdv::kdv_order = 1 |