species Module



Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: ion_species = 1
integer, public, parameter :: electron_species = 2
integer, public, parameter :: slowing_down_species = 3
integer, public, parameter :: tracer_species = 4
integer, private :: species_option_switch
integer, private, parameter :: species_option_stella = 1
integer, private, parameter :: species_option_inputprofs = 2
integer, private, parameter :: species_option_euterpe = 3
integer, private, parameter :: species_option_multibox = 4
integer, public :: nspec
logical, private :: read_profile_variation
logical, private :: write_profile_variation
logical, private :: ecoll_zeff
logical, public :: modified_adiabatic_electrons
logical, public :: adiabatic_electrons
type(spec_type), public, dimension(:), allocatable :: spec
integer, public :: ions
integer, public :: electrons
integer, public :: impurity
real, public :: pfac
character(len=20), private :: species_option
logical, private :: initialized = .false.

Functions

public pure function has_electron_species(spec)

Arguments

Type IntentOptional Attributes Name
type(spec_type), intent(in), dimension(:) :: spec

Return Value logical

public pure function has_slowing_down_species(spec)

Arguments

Type IntentOptional Attributes Name
type(spec_type), intent(in), dimension(:) :: spec

Return Value logical


Subroutines

public subroutine init_species()

Arguments

None

public subroutine read_species_knobs()

Arguments

None

private subroutine read_species_stella()

Arguments

None

private subroutine broadcast_parameters()

Arguments

None

public subroutine finish_species()

Arguments

None

public subroutine reinit_species(ntspec, dens, temp, fprim, tprim, bess_fac)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: ntspec
real, intent(in), dimension(:) :: dens
real, intent(in), dimension(:) :: temp
real, intent(in), dimension(:) :: fprim
real, intent(in), dimension(:) :: tprim
real, intent(in), dimension(:) :: bess_fac

public subroutine communicate_species_multibox(dr_m, dr_p)

Arguments

Type IntentOptional Attributes Name
real, intent(in), optional :: dr_m
real, intent(in), optional :: dr_p

private subroutine dump_species_input()

Arguments

None