korc_profiles Module


Uses

  • module~~korc_profiles~~UsesGraph module~korc_profiles korc_profiles module~korc_input korc_input module~korc_profiles->module~korc_input module~korc_hpc korc_hpc module~korc_profiles->module~korc_hpc module~korc_interp korc_interp module~korc_profiles->module~korc_interp module~korc_hdf5 korc_HDF5 module~korc_profiles->module~korc_hdf5 module~korc_coords korc_coords module~korc_profiles->module~korc_coords module~korc_types korc_types module~korc_profiles->module~korc_types module~korc_input->module~korc_hpc module~korc_input->module~korc_types module~korc_hpc->module~korc_types omp_lib omp_lib module~korc_hpc->omp_lib mpi mpi module~korc_hpc->mpi module~korc_interp->module~korc_hpc module~korc_interp->module~korc_coords module~korc_interp->module~korc_types EZspline_obj EZspline_obj module~korc_interp->EZspline_obj module~korc_rnd_numbers korc_rnd_numbers module~korc_interp->module~korc_rnd_numbers module~korc_fio korc_fio module~korc_interp->module~korc_fio EZspline EZspline module~korc_interp->EZspline module~korc_hdf5->module~korc_hpc module~korc_hdf5->module~korc_types module~korc_constants korc_constants module~korc_hdf5->module~korc_constants HDF5 HDF5 module~korc_hdf5->HDF5 module~korc_coords->module~korc_types module~korc_coords->module~korc_constants iso_c_binding iso_c_binding module~korc_types->iso_c_binding module~korc_rnd_numbers->module~korc_types ifport ifport module~korc_rnd_numbers->ifport module~korc_fio->module~korc_input module~korc_fio->module~korc_hdf5 module~korc_fio->module~korc_types module~korc_fio->iso_c_binding module~korc_fio->mpi module~korc_constants->module~korc_types

Used by

  • module~~korc_profiles~~UsedByGraph module~korc_profiles korc_profiles module~korc_avalanche korc_avalanche module~korc_avalanche->module~korc_profiles program~main main program~main->module~korc_profiles module~korc_collisions korc_collisions program~main->module~korc_collisions module~korc_finalize korc_finalize program~main->module~korc_finalize module~korc_ppusher korc_ppusher program~main->module~korc_ppusher module~korc_initialize korc_initialize program~main->module~korc_initialize module~korc_collisions->module~korc_profiles module~korc_spatial_distribution korc_spatial_distribution module~korc_spatial_distribution->module~korc_profiles module~korc_spatial_distribution->module~korc_avalanche module~korc_finalize->module~korc_profiles module~korc_ppusher->module~korc_profiles module~korc_ppusher->module~korc_collisions module~korc_velocity_distribution korc_velocity_distribution module~korc_velocity_distribution->module~korc_avalanche module~korc_initialize->module~korc_spatial_distribution module~korc_initialize->module~korc_velocity_distribution

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

String containing the type of electron density profile to be used in the simulation.

Read more…

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(pchunk, time, params, Y_R, Y_Z, P, F, ne, Te, Zeff, PSIp)

Read more…

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: pchunk
real(kind=rp), intent(in) :: time
type(KORC_PARAMS), intent(in) :: params
real(kind=rp), intent(in), DIMENSION(params%pchunk):: Y_R
real(kind=rp), intent(in), DIMENSION(params%pchunk):: 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(params%pchunk):: ne

Background electron density seen by simulated particles.

real(kind=rp), intent(out), DIMENSION(params%pchunk):: Te

Backgroun temperature density seen by simulated particles.

real(kind=rp), intent(out), DIMENSION(params%pchunk):: Zeff

Effective atomic charge seen by simulated particles.

real(kind=rp), intent(in), DIMENSION(params%pchunk):: 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(params, 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(KORC_PARAMS), intent(in) :: params
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.

public subroutine DEALLOCATE_PROFILES_ARRAYS(P)

Arguments

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