korc_profiles Module



Contents


Subroutines

public subroutine initialize_profiles(params, P, F)

Read more…

Arguments

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

Core KORC simulation parameters.

type(PROFILES), intent(out) :: P

An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See korc_types and korc_profiles.

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

private subroutine uniform_profiles(vars, P)

Read more…

Arguments

Type IntentOptional AttributesName
type(PARTICLES), intent(inout) :: vars

An instance of PARTICLES containing the variables of a given species.

type(PROFILES), intent(in) :: P

An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See korc_types and korc_profiles.

public subroutine analytical_profiles_p(time, params, Y_R, Y_Z, P, F, ne, Te, Zeff, PSIp)

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: time
type(KORC_PARAMS), intent(in) :: params
real(kind=rp), intent(in), DIMENSION(8):: Y_R
real(kind=rp), intent(in), DIMENSION(8):: Y_Z
type(PROFILES), intent(in) :: P

An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See korc_types and korc_profiles.

type(FIELDS), intent(in) :: F
real(kind=rp), intent(out), DIMENSION(8):: ne

Background electron density seen by simulated particles.

real(kind=rp), intent(out), DIMENSION(8):: Te

Backgroun temperature density seen by simulated particles.

real(kind=rp), intent(out), DIMENSION(8):: Zeff

Effective atomic charge seen by simulated particles.

real(kind=rp), intent(in), DIMENSION(8):: PSIp

private subroutine get_analytical_profiles(P, Y, ne, Te, Zeff, flag)

Read more…

Arguments

Type IntentOptional AttributesName
type(PROFILES), intent(in) :: P

An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See korc_types and korc_profiles.

real(kind=rp), intent(in), DIMENSION(:,:), ALLOCATABLE:: Y

Particles' position in toroidal coordinates; Y(1,:) = , Y(2,:) = , Y(3,:) = .

real(kind=rp), intent(inout), DIMENSION(:), ALLOCATABLE:: ne

Background electron density seen by simulated particles.

real(kind=rp), intent(inout), DIMENSION(:), ALLOCATABLE:: Te

Backgroun temperature density seen by simulated particles.

real(kind=rp), intent(inout), DIMENSION(:), ALLOCATABLE:: Zeff

Effective atomic charge seen by simulated particles.

integer(kind=is), intent(in), DIMENSION(:), ALLOCATABLE:: flag

Flag for each particle to decide whether it is being followed (flag=T) or not (flag=F).

public subroutine get_profiles(params, vars, P, F)

Read more…

Arguments

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

Core KORC simulation parameters.

type(PARTICLES), intent(inout) :: vars

An instance of PARTICLES containing the variables of a given species.

type(PROFILES), intent(in) :: P

An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See [[korc_types] and korc_profiles.

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

An instance of the KORC derived type FIELDS.

private subroutine load_profiles_data_from_hdf5(params, P)

Read more…

Arguments

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

Core KORC simulation parameters.

type(PROFILES), intent(inout) :: P

An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See korc_types and korc_profiles.

private subroutine ALLOCATE_2D_PROFILES_ARRAYS(P)

@brief Subroutine that allocates the mesh information and 2-D arrays for keeping the data of pre-computed plasma profiles.

Read more…

Arguments

Type IntentOptional AttributesName
type(PROFILES), intent(inout) :: P

private subroutine ALLOCATE_3D_PROFILES_ARRAYS(P)

Read more…

Arguments

Type IntentOptional AttributesName
type(PROFILES), intent(inout) :: P

@param[out] P An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See korc_types and korc_profiles.