sources_gravity_mod Module Reference

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

Data Types

type  sources_gravity
 

Functions/Subroutines

subroutine initsources_gravity (this, Mesh, Physics, Fluxes, config, IO)
 
subroutine externalsources_single (this, Mesh, Physics, Fluxes, Sources, time, dt, pvar, cvar, sterm)
 Evaluates source-terms by gravitation. More...
 
subroutine updategravity (this, Mesh, Physics, Fluxes, pvar, time, dt)
 Updates gravity of all gravity source modules. More...
 
subroutine calcdiskheight (this, Mesh, Physics, pvar)
 
subroutine infosources (this, Mesh)
 
subroutine finalize (this)
 

Variables

character(len=32), parameter source_name = "gravity"
 

Detailed Description

generic gravity terms module providing functionaly common to all gravity terms

Author
Björn Sperling
Tobias Illenseer
Jannes Klee

Function/Subroutine Documentation

◆ calcdiskheight()

subroutine sources_gravity_mod::calcdiskheight ( class(sources_gravity), intent(inout), target  this,
class(mesh_base), intent(in)  Mesh,
class(physics_eulerisotherm), intent(inout)  Physics,
class(marray_compound), intent(inout)  pvar 
)
private

Definition at line 227 of file sources_gravity.f90.

◆ externalsources_single()

subroutine sources_gravity_mod::externalsources_single ( class(sources_gravity), 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 
)
private

Evaluates source-terms by gravitation.

The gravitational source term evaluates all forces that are produced by gravitational participants.

Todo:
The treatment of energy sources should be handled in the physics module and not here!

Definition at line 154 of file sources_gravity.f90.

◆ finalize()

subroutine sources_gravity_mod::finalize ( class(sources_gravity), intent(inout)  this)
private

Definition at line 283 of file sources_gravity.f90.

◆ infosources()

subroutine sources_gravity_mod::infosources ( class(sources_gravity), intent(in)  this,
class(mesh_base), intent(in)  Mesh 
)

Definition at line 275 of file sources_gravity.f90.

◆ initsources_gravity()

subroutine sources_gravity_mod::initsources_gravity ( class(sources_gravity), 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 
)
private
Todo:
check if this is really sufficient, what we really need is to check whether the geometry is flat or not

Definition at line 82 of file sources_gravity.f90.

◆ updategravity()

subroutine sources_gravity_mod::updategravity ( class(sources_gravity), intent(inout), 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,
real, intent(in)  time,
real, intent(in)  dt 
)

Updates gravity of all gravity source modules.

Definition at line 193 of file sources_gravity.f90.

Variable Documentation

◆ source_name

character(len=32), parameter sources_gravity_mod::source_name = "gravity"
private

Definition at line 57 of file sources_gravity.f90.