sources_viscosity.f90 File Reference

Go to the source code of this file.

Data Types

type  sources_viscosity_mod::sources_viscosity
 

Modules

module  sources_viscosity_mod
 computes momentum and energy sources due to shear stresses
 

Functions/Subroutines

subroutine sources_viscosity_mod::initsources (this, Mesh, Physics, Fluxes, config, IO)
 
subroutine sources_viscosity_mod::setoutput (this, Mesh, config, IO)
 
subroutine sources_viscosity_mod::infosources (this)
 
subroutine sources_viscosity_mod::updateviscosity (this, Mesh, Physics, Fluxes, time, pvar, cvar)
 updates dynamic and bulk viscosity More...
 
pure real function, dimension(size(ephir%data2d, dim=1)) omega (ephir, velocity)
 
elemental real function etafkt_alpha (alpha, density, cs, omega)
 
elemental real function etafkt_beta (beta, r, density, omega)
 
elemental real function etafkt_powerlaw (beta, q, r, density, omega)
 
subroutine sources_viscosity_mod::externalsources (this, Mesh, Physics, Fluxes, Sources, time, dt, pvar, cvar, sterm)
 
subroutine sources_viscosity_mod::calctimestep (this, Mesh, Physics, Fluxes, pvar, cvar, time, dt, dtcause)
 compute time step limit for advection-diffusion problems More...
 
subroutine sources_viscosity_mod::finalize (this)
 destructor More...
 

Variables

character(len=32), parameter sources_viscosity_mod::source_name = "viscosity of Newtonian fluid"
 
integer, parameter, public sources_viscosity_mod::molecular = 1
 
integer, parameter, public sources_viscosity_mod::alpha = 2
 
integer, parameter, public sources_viscosity_mod::beta = 3
 
integer, parameter, public sources_viscosity_mod::powerlaw = 4
 
integer, parameter, public sources_viscosity_mod::alpha_alt = 5
 
character(len=32), dimension(5), parameter, public sources_viscosity_mod::viscosity_name = (/ "constant viscosity ", "turbulent Shakura-Sunyaev ", "turbulent Duschl ", "power law viscosity ", "alternative Shakura-Sunyaev "/)
 

Function/Subroutine Documentation

◆ etafkt_alpha()

elemental real function updateviscosity::etafkt_alpha ( real, intent(in)  alpha,
real, intent(in)  density,
real, intent(in)  cs,
real, intent(in)  omega 
)
private

Definition at line 447 of file sources_viscosity.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ etafkt_beta()

elemental real function updateviscosity::etafkt_beta ( real, intent(in)  beta,
real, intent(in)  r,
real, intent(in)  density,
real, intent(in)  omega 
)
private

Definition at line 457 of file sources_viscosity.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ etafkt_powerlaw()

elemental real function updateviscosity::etafkt_powerlaw ( real, intent(in)  beta,
real, intent(in)  q,
real, intent(in)  r,
real, intent(in)  density,
real, intent(in)  omega 
)
private

Definition at line 469 of file sources_viscosity.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ omega()

pure real function, dimension(size(ephir%data2d,dim=1)) updateviscosity::omega ( class(marray_base), intent(in)  ephir,
class(marray_base), intent(in)  velocity 
)

Definition at line 431 of file sources_viscosity.f90.

Here is the call graph for this function:
Here is the caller graph for this function: