Source terms module for fictious forces in a shearingsheet. More...
Data Types | |
type | sources_shearbox |
Functions/Subroutines | |
subroutine | initsources_shearbox (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_single (this, Mesh, Physics, Fluxes, Sources, time, dt, pvar, cvar, sterm) |
Compute fictious forces within a shearingsheet. More... | |
subroutine | finalize (this) |
Closes the shearingsheet source term. More... | |
Variables | |
character(len=32) | source_name = "forces in shearing-box" |
Detailed Description
Source terms module for fictious forces in a shearingsheet.
Function/Subroutine Documentation
◆ externalsources_single()
subroutine sources_shearbox_mod::externalsources_single | ( | 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}. \]
See for example [gammie2001] or [hawley1995] .
Definition at line 173 of file sources_shearbox.f90.
◆ finalize()
subroutine sources_shearbox_mod::finalize | ( | class(sources_shearbox), intent(inout) | this | ) |
Closes the shearingsheet source term.
Definition at line 216 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 151 of file sources_shearbox.f90.
◆ initsources_shearbox()
subroutine sources_shearbox_mod::initsources_shearbox | ( | class(sources_shearbox) | 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 91 of file sources_shearbox.f90.
Variable Documentation
◆ source_name
|
private |
Definition at line 64 of file sources_shearbox.f90.