MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
Modules | Functions/Subroutines | Variables
mod_viscosity.t File Reference

Go to the source code of this file.

Modules

module  mod_viscosity
 The module add viscous source terms and check time step.
 

Functions/Subroutines

subroutine mod_viscosity::vc_params_read (files)
 Read this module"s parameters from a file.
 
subroutine mod_viscosity::viscosity_init (phys_wider_stencil)
 Initialize the module.
 
subroutine mod_viscosity::viscosity_add_source (qdt, ixil, ixol, wct, w, x, energy, qsourcesplit, active)
 
subroutine mod_viscosity::viscosity_get_dt (w, ixil, ixol, dtnew, dxd, x)
 
subroutine, public mod_viscosity::visc_get_flux_prim (w, x, ixil, ixol, idim, f, energy)
 
subroutine mod_viscosity::get_crossgrad (ixil, ixol, x, w, idim, cross)
 
subroutine mod_viscosity::cart_cross_grad (ixil, ixol, x, w, idim, cross)
 yields d_i v_j + d_j v_i for a given i, OK in Cartesian and for some tensor terms in cylindrical (rr & rz) and in spherical (rr)
 
subroutine mod_viscosity::visc_add_source_geom (qdt, ixil, ixol, wct, w, x)
 

Variables

double precision, public mod_viscosity::vc_mu = 1.d0
 Viscosity coefficient.
 
logical mod_viscosity::vc_4th_order = .false.
 fourth order
 
logical mod_viscosity::vc_split = .false.
 source split or not
 
logical mod_viscosity::viscindiv = .false.
 whether to compute the viscous terms as fluxes (ie in the div on the LHS), or not (by default)