smod_equil_rotating_plasma_cylinder Submodule

This submodule defines a cylindrical equilibrium, resembling a rotating plasma cylinder. The geometry can be overridden using the parfile.

This equilibrium is taken from Nijboer, R. J., Holst, B., Poedts, S., & Goedbloed, J. P. (1997). Calculating magnetohydrodynamic flow spectra. Computer physics communications, 106(1-2), 39-52.

Note

Default values are given by

  • k2 = 1
  • k3 = 0
  • cte_rho0 = 1 : used to set the density value.
  • cte_p0 = 0.1 : used to set the pressure.
  • p1 = 8 : sets the constant a21.
  • p2 = 0 : sets the constant a22.
  • p3 = 0 : sets the constant a3.
  • p4 = 1 : sets the constant b21.
  • p5 = 0 : sets the constant b22.
  • p6 = 0 : sets the constant b3.

and can all be changed in the parfile.



Variables

Type Visibility Attributes Name Initial
real(kind=dp), private :: a21
real(kind=dp), private :: a22
real(kind=dp), private :: a3
real(kind=dp), private :: b21
real(kind=dp), private :: b22
real(kind=dp), private :: b3

Functions

function rho0()

Arguments

None

Return Value real(kind=dp)

function T0(r)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: r

Return Value real(kind=dp)

function dT0(r)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: r

Return Value real(kind=dp)

function v02(r)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: r

Return Value real(kind=dp)

function dv02(r)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: r

Return Value real(kind=dp)

function v03()

Arguments

None

Return Value real(kind=dp)

function B02(r)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: r

Return Value real(kind=dp)

function dB02(r)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: r

Return Value real(kind=dp)

function B03()

Arguments

None

Return Value real(kind=dp)


Module Procedures

module procedure /home/runner/work/legolas/legolas/docs/ford/module/smod_equil_rotating_plasma_cylinder.html rotating_plasma_cyl_eq module subroutine rotating_plasma_cyl_eq(settings, grid, background, physics)

Arguments

Type IntentOptional Attributes Name
type(settings_t), intent(inout) :: settings
type(grid_t), intent(inout) :: grid
type(background_t), intent(inout) :: background
type(physics_t), intent(inout) :: physics