korc_velocity_distribution Module



Contents


Functions

private function fth_3V(Vth, V)

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: Vth

Thermal velocity of the background electrons .

real(kind=rp), intent(in), DIMENSION(3):: V

Velocity of the sampled electron .

Return Value real(kind=rp)

Value of .

private function random_norm(mu, sigma)

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: mu

Mean value of the Gaussian distribution.

real(kind=rp), intent(in) :: sigma

Standard deviation of the Gaussian distribution.

Return Value real(kind=rp)

Sampled number from the Gaussian distribution .


Subroutines

public subroutine thermal_distribution(params, spp)

Read more…

Arguments

Type IntentOptional AttributesName
type(KORC_PARAMS), intent(in) :: params

Core KORC simulation parameters.

type(SPECIES), intent(inout) :: spp

An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation.

public subroutine initial_energy_pitch_dist(params, spp)

Read more…

Arguments

Type IntentOptional AttributesName
type(KORC_PARAMS), intent(in) :: params

Core KORC simulation parameters.

type(SPECIES), intent(inout), DIMENSION(:), ALLOCATABLE:: spp

An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation.

private subroutine gyro_distribution(params, F, spp)

Read more…

Arguments

Type IntentOptional AttributesName
type(KORC_PARAMS), intent(in) :: params

Core KORC simulation parameters.

type(FIELDS), intent(in) :: F

An instance of the KORC derived type FIELDS. This structure has the information of the magnetic field.

type(SPECIES), intent(inout) :: spp

An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation.

public subroutine initial_gyro_distribution(params, F, spp)

Read more…

Arguments

Type IntentOptional AttributesName
type(KORC_PARAMS), intent(in) :: params

Core KORC simulation parameters.

type(FIELDS), intent(in) :: F

An instance of the KORC derived type FIELDS. This structure has the information of the magnetic field.

type(SPECIES), intent(inout), DIMENSION(:), ALLOCATABLE:: spp

An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation.