sources_shearbox_mod Module Reference

Source terms module for fictious forces in a shearingsheet. More...

Data Types

type  sources_shearbox
 

Functions/Subroutines

subroutine initsources (this, Mesh, Physics, Fluxes, config, IO)
 Constructor of sources shearbox module. More...
 
subroutine infosources (this, Mesh)
 Write shearbox fictious forces parameters to screen. More...
 
subroutine externalsources (this, Mesh, Physics, Fluxes, Sources, time, dt, pvar, cvar, sterm)
 Compute fictious forces within a shearingsheet. More...
 

Variables

character(len=32) source_name = "forces in shearing-box"
 

Detailed Description

Source terms module for fictious forces in a shearingsheet.

Author
Jannes Klee

Function/Subroutine Documentation

◆ externalsources()

subroutine sources_shearbox_mod::externalsources ( class(sources_shearbox), intent(inout)  this,
class(mesh_base), intent(in)  Mesh,
class(physics_base), intent(inout)  Physics,
class(fluxes_base), intent(in)  Fluxes,
class(sources_base), intent(inout)  Sources,
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 
)

Compute fictious forces within a shearingsheet.

Computation is done via

\[ \mathbf{a} = - 2 \mathbf{\Omega} \times \mathbf{v} + 2 q \Omega^2 x \mathbf{\hat{e}_x} - \Omega^2 z \mathbf{\hat{e}_z} \]

See for example [18] or [20] .

Definition at line 178 of file sources_shearbox.f90.

◆ infosources()

subroutine sources_shearbox_mod::infosources ( class(sources_shearbox), intent(in)  this,
class(mesh_base), intent(in)  Mesh 
)

Write shearbox fictious forces parameters to screen.

Definition at line 156 of file sources_shearbox.f90.

◆ initsources()

subroutine sources_shearbox_mod::initsources ( class(sources_shearbox), intent(inout)  this,
class(mesh_base), intent(in)  Mesh,
class(physics_base), intent(in)  Physics,
class(fluxes_base), intent(in)  Fluxes,
type(dict_typ), pointer  config,
type(dict_typ), pointer  IO 
)

Constructor of sources shearbox module.

This subroutine reads the necessary config data for the source module for a shearingsheet. It initializes the sources type and the accelerations array.

Definition at line 88 of file sources_shearbox.f90.

Variable Documentation

◆ source_name

character(len=32) sources_shearbox_mod::source_name = "forces in shearing-box"
private

Definition at line 64 of file sources_shearbox.f90.