smod_equil_constant_current Submodule

This submodule defines an equilibrium in cylindrical geometry with a constant axial current. The geometry can be overridden using the parfile.

This equilibrium is taken from Kerner, W. (1989). Large-scale complex eigenvalue problems. Journal of Computational Physics, 85(1), 1-85.

Note

Default values are given by

  • k2 = -2
  • k3 = 0.2
  • j0 = 0.125 : used to set the current.
  • cte_rho0 = 1 : used to set the density.
  • cte_B03 = 1 : used to set the Bz value.

and can all be changed in the parfile.



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 p0(r)

Arguments

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

Return Value real(kind=dp)

function dp0(r)

Arguments

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

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()

Arguments

None

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_constant_current.html constant_current_eq module subroutine constant_current_eq(settings, grid, background, physics)

Sets the equilibrium.

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