sources_base_mod Module Reference

generic source terms module providing functionaly common to all source terms More...

Data Types

interface  CalcTimestep_single
 
interface  ExternalSources_single
 
interface  Finalize
 
interface  InfoSources
 
type  sources_base
 

Variables

class(marray_compound), pointer, save temp_sterm => null()
 
integer, parameter, public gravity = 1
 
integer, parameter, public viscosity = 3
 
integer, parameter, public c_accel = 4
 
integer, parameter, public rotating_frame = 20
 
integer, parameter, public disk_cooling = 24
 
integer, parameter, public shearbox = 30
 
subroutine initsources (this, Mesh, Fluxes, Physics, config, IO)
 Initialize data in sources. More...
 
subroutine externalsources (this, Mesh, Fluxes, Physics, time, dt, pvar, cvar, sterm)
 
subroutine calctimestep (this, Mesh, Physics, Fluxes, pvar, cvar, time, dt, dtcause)
 
class(sources_base) function, pointer getsourcespointer (list, stype)
 
subroutine finalize_base (this)
 Destructor. More...
 

Detailed Description

generic source terms module providing functionaly common to all source terms

Author
Tobias Illenseer
Björn Sperling

Function/Subroutine Documentation

◆ calctimestep()

subroutine sources_base_mod::calctimestep ( class(sources_base), intent(in), target  this,
class(mesh_base), intent(in)  Mesh,
class(physics_base), intent(inout)  Physics,
class(fluxes_base), intent(in)  Fluxes,
class(marray_compound), intent(inout)  pvar,
class(marray_compound), intent(inout)  cvar,
real, intent(in)  time,
real, intent(out)  dt,
integer, intent(out)  dtcause 
)
private

Definition at line 210 of file sources_base.f90.

◆ externalsources()

subroutine sources_base_mod::externalsources ( class(sources_base), intent(inout), target  this,
class(mesh_base), intent(in)  Mesh,
class(fluxes_base), intent(in)  Fluxes,
class(physics_base), intent(inout)  Physics,
real, intent(in)  time,
real, intent(in)  dt,
class(marray_compound), intent(inout)  pvar,
class(marray_compound), intent(inout)  cvar,
class(marray_compound), intent(inout)  sterm 
)
private

Definition at line 167 of file sources_base.f90.

◆ finalize_base()

subroutine sources_base_mod::finalize_base ( class(sources_base), intent(inout)  this)
private

Destructor.

Definition at line 259 of file sources_base.f90.

◆ getsourcespointer()

class(sources_base) function, pointer sources_base_mod::getsourcespointer ( class(sources_base), intent(in), target  list,
integer, intent(in)  stype 
)

Definition at line 242 of file sources_base.f90.

◆ initsources()

subroutine sources_base_mod::initsources ( class(sources_base), intent(in)  this,
class(mesh_base), intent(in)  Mesh,
class(fluxes_base), intent(in)  Fluxes,
class(physics_base), intent(in)  Physics,
type(dict_typ), pointer  config,
type(dict_typ), pointer  IO 
)
private

Initialize data in sources.

Definition at line 151 of file sources_base.f90.

Variable Documentation

◆ c_accel

integer, parameter, public sources_base_mod::c_accel = 4

Definition at line 128 of file sources_base.f90.

◆ disk_cooling

integer, parameter, public sources_base_mod::disk_cooling = 24

Definition at line 132 of file sources_base.f90.

◆ gravity

integer, parameter, public sources_base_mod::gravity = 1

Definition at line 125 of file sources_base.f90.

◆ rotating_frame

integer, parameter, public sources_base_mod::rotating_frame = 20

Definition at line 130 of file sources_base.f90.

◆ shearbox

integer, parameter, public sources_base_mod::shearbox = 30

Definition at line 138 of file sources_base.f90.

◆ temp_sterm

class(marray_compound), pointer, save sources_base_mod::temp_sterm => null()
private

Definition at line 123 of file sources_base.f90.

◆ viscosity

integer, parameter, public sources_base_mod::viscosity = 3

Definition at line 127 of file sources_base.f90.