init_g Module

This module contains the subroutines which set the initial value of the


Variables

Type Visibility Attributes Name Initial
integer, private :: ginitopt_switch
integer, private, parameter :: ginitopt_default = 1
integer, private, parameter :: ginitopt_noise = 2
integer, private, parameter :: ginitopt_restart_many = 3
integer, private, parameter :: ginitopt_kpar = 4
integer, private, parameter :: ginitopt_nltest = 5
integer, private, parameter :: ginitopt_kxtest = 6
integer, private, parameter :: ginitopt_rh = 7
integer, private, parameter :: ginitopt_remap = 8
real, public :: width0
real, public :: phiinit
real, private :: imfac
real, private :: refac
real, private :: zf_init
real, private :: den0
real, private :: upar0
real, private :: tpar0
real, private :: tperp0
real, private :: den1
real, private :: upar1
real, private :: tpar1
real, private :: tperp1
real, private :: den2
real, private :: upar2
real, private :: tpar2
real, private :: tperp2
real, public :: tstart
real, private :: scale
real, private :: kxmax
real, private :: kxmin
logical, private :: chop_side
logical, private :: left
logical, public :: scale_to_phiinit
logical, private :: oddparity
character(len=300), public :: restart_file
character(len=150), private :: restart_dir
logical, private :: initialized = .false.
logical, private :: exist

Subroutines

public subroutine init_init_g()

Arguments

None

public subroutine ginit(restarted, istep0)

if maxwwellian_normalization = .true., the pdf is normalized by F0 (which is not the case otherwise) unless reading in g from a restart file, normalise g by F0 for a full flux surface simulation

Arguments

Type IntentOptional Attributes Name
logical, intent(out) :: restarted
integer, intent(out) :: istep0

private subroutine read_parameters()

Arguments

None

private subroutine ginit_default()

Arguments

None

private subroutine ginit_noise()

Initialise the distribution function with random noise. This is the default

Arguments

None

private subroutine ginit_kpar()

Arguments

None

private subroutine ginit_rh()

Arguments

None

private subroutine ginit_remap()

Arguments

None

private subroutine ginit_restart_many()

Arguments

None

private subroutine normalize_by_maxwellian()

gvmu is initialised with a Maxwellian weighting for flux tube simulations, with the Maxwellian evaluated at ia = 1 we are undoing that weighting here, so also need to use ia = 1

Arguments

None

public subroutine reset_init()

Arguments

None

public subroutine finish_init_g()

Arguments

None