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

Module containing the physics routines for scalar nonlinear equation. More...

Functions/Subroutines

subroutine nonlinear_write_info (fh)
 Write this module's parameters to a snapshot. More...
 
subroutine, public nonlinear_phys_init ()
 
subroutine nonlinear_to_conserved (ixIL, ixOL, w, x)
 
subroutine nonlinear_to_primitive (ixIL, ixOL, w, x)
 
subroutine, public nonlinear_get_v (w, x, ixIL, ixOL, idim, v)
 
subroutine nonlinear_get_cmax (w, x, ixIL, ixOL, idim, cmax)
 
subroutine nonlinear_get_cbounds (wLC, wRC, wLp, wRp, x, ixIL, ixOL, idim, Hspeed, cmax, cmin)
 
subroutine nonlinear_get_dt (w, ixIL, ixOL, dtnew, dxD, x)
 
subroutine nonlinear_get_flux (wC, w, x, ixIL, ixOL, idim, f)
 
subroutine nonlinear_add_source_geom (qdt, dtfactor, ixIL, ixOL, wCT, wprim, w, x)
 
subroutine nonlinear_add_source (qdt, dtfactor, ixIL, ixOL, wCT, wCTprim, w, x, qsourcesplit, active)
 

Variables

integer, public, protected rho_ = 1
 index of the single scalar unknown More...
 
integer, public, protected nonlinear_flux_type = 1
 switch between burgers (i.e. rho**2) or nonconvex flux (i.e. rho**3) More...
 
logical, public, protected kdv_source_term = .false.
 whether the KdV source term is added More...
 
logical, public, protected nonlinear_particles = .false.
 Whether particles module is added. More...
 

Detailed Description

Module containing the physics routines for scalar nonlinear equation.

Function/Subroutine Documentation

◆ nonlinear_add_source()

subroutine mod_nonlinear_phys::nonlinear_add_source ( double precision, intent(in)  qdt,
double precision, intent(in)  dtfactor,
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)  qsourcesplit,
logical, intent(inout)  active 
)

Definition at line 235 of file mod_nonlinear_phys.t.

Here is the call graph for this function:

◆ nonlinear_add_source_geom()

subroutine mod_nonlinear_phys::nonlinear_add_source_geom ( double precision, intent(in)  qdt,
double precision, intent(in)  dtfactor,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s, 1:nw), intent(inout)  wCT,
double precision, dimension(ixi^s,1:nw), intent(inout)  wprim,
double precision, dimension(ixi^s, 1:nw), intent(inout)  w,
double precision, dimension(ixi^s, 1:^nd), intent(in)  x 
)

Definition at line 222 of file mod_nonlinear_phys.t.

◆ nonlinear_get_cbounds()

subroutine mod_nonlinear_phys::nonlinear_get_cbounds ( double precision, dimension(ixi^s, nw), intent(in)  wLC,
double precision, dimension(ixi^s,nw), intent(in)  wRC,
double precision, dimension(ixi^s, nw), intent(in)  wLp,
double precision, dimension(ixi^s,nw), intent(in)  wRp,
double precision, dimension(ixi^s, 1:^nd), intent(in)  x,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
integer, intent(in)  idim,
double precision, dimension(ixi^s,1:number_species), intent(in)  Hspeed,
double precision, dimension(ixi^s,1:number_species), intent(inout)  cmax,
double precision, dimension(ixi^s,1:number_species), intent(inout), optional  cmin 
)

Definition at line 160 of file mod_nonlinear_phys.t.

Here is the call graph for this function:

◆ nonlinear_get_cmax()

subroutine mod_nonlinear_phys::nonlinear_get_cmax ( double precision, dimension(ixi^s, nw), intent(in)  w,
double precision, dimension(ixi^s, 1:^nd), intent(in)  x,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
integer, intent(in)  idim,
double precision, dimension(ixi^s), intent(inout)  cmax 
)

Definition at line 148 of file mod_nonlinear_phys.t.

Here is the call graph for this function:

◆ nonlinear_get_dt()

subroutine mod_nonlinear_phys::nonlinear_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:^nd), intent(in)  x 
)

Definition at line 186 of file mod_nonlinear_phys.t.

Here is the call graph for this function:

◆ nonlinear_get_flux()

subroutine mod_nonlinear_phys::nonlinear_get_flux ( double precision, dimension(ixi^s, 1:nw), intent(in)  wC,
double precision, dimension(ixi^s, 1:nw), intent(in)  w,
double precision, dimension(ixi^s, 1:^nd), intent(in)  x,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
integer, intent(in)  idim,
double precision, dimension(ixi^s, nwflux), intent(out)  f 
)

Definition at line 203 of file mod_nonlinear_phys.t.

◆ nonlinear_get_v()

subroutine, public mod_nonlinear_phys::nonlinear_get_v ( double precision, dimension(ixi^s, nw), intent(in)  w,
double precision, dimension(ixi^s, 1:^nd), intent(in)  x,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
integer, intent(in)  idim,
double precision, dimension(ixi^s), intent(out)  v 
)

Definition at line 131 of file mod_nonlinear_phys.t.

◆ nonlinear_phys_init()

subroutine, public mod_nonlinear_phys::nonlinear_phys_init

Definition at line 60 of file mod_nonlinear_phys.t.

Here is the call graph for this function:

◆ nonlinear_to_conserved()

subroutine mod_nonlinear_phys::nonlinear_to_conserved ( integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s, nw), intent(inout)  w,
double precision, dimension(ixi^s, 1:^nd), intent(in)  x 
)

Definition at line 113 of file mod_nonlinear_phys.t.

◆ nonlinear_to_primitive()

subroutine mod_nonlinear_phys::nonlinear_to_primitive ( integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s, nw), intent(inout)  w,
double precision, dimension(ixi^s, 1:^nd), intent(in)  x 
)

Definition at line 122 of file mod_nonlinear_phys.t.

◆ nonlinear_write_info()

subroutine mod_nonlinear_phys::nonlinear_write_info ( integer, intent(in)  fh)

Write this module's parameters to a snapshot.

Definition at line 43 of file mod_nonlinear_phys.t.

Variable Documentation

◆ kdv_source_term

logical, public, protected mod_nonlinear_phys::kdv_source_term = .false.

whether the KdV source term is added

Definition at line 15 of file mod_nonlinear_phys.t.

◆ nonlinear_flux_type

integer, public, protected mod_nonlinear_phys::nonlinear_flux_type = 1

switch between burgers (i.e. rho**2) or nonconvex flux (i.e. rho**3)

Definition at line 12 of file mod_nonlinear_phys.t.

◆ nonlinear_particles

logical, public, protected mod_nonlinear_phys::nonlinear_particles = .false.

Whether particles module is added.

Definition at line 18 of file mod_nonlinear_phys.t.

◆ rho_

integer, public, protected mod_nonlinear_phys::rho_ = 1

index of the single scalar unknown

Definition at line 8 of file mod_nonlinear_phys.t.