Skip to content

impurity_radiation_module

N_IMPURITIES = 14 module-attribute

Number of ion species in impurity radiation model

( 1) Hydrogen (fraction calculated by code) ( 2) Helium ( 3) Beryllium ( 4) Carbon ( 5) Nitrogen ( 6) Oxygen ( 7) Neon ( 8) Silicon ( 9) Argon (10) Iron (11) Nickel (12) Krypton (13) Xenon (14) Tungsten

radius_plasma_core_norm = None module-attribute

Normalised radius defining the 'core' region

f_p_plasma_core_rad_reduction = None module-attribute

Fraction of radiation from 'core' region

f_nd_impurity_electrons = None module-attribute

n_charge_impurity_profile = None module-attribute

charge profile of impurities

imp_label = None module-attribute

impurity_arr_label = None module-attribute

impurity_arr_z = None module-attribute

m_impurity_amu_array = None module-attribute

2D array of impurity atomic masses in Atomic Mass Units (amu)

f_nd_impurity_electron_array = None module-attribute

2D array of impurity relative densities (n_imp/n_e)

impurity_arr_len_tab = None module-attribute

temp_impurity_keV_array = None module-attribute

2D array of impurity temperatures in kilo-electronvolts (keV)

pden_impurity_lz_nd_temp_array = None module-attribute

impurity_arr_zav = None module-attribute

init_impurity_radiation_module()

Source code in process/data_structure/impurity_radiation_module.py
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
def init_impurity_radiation_module():
    global \
        radius_plasma_core_norm, \
        f_p_plasma_core_rad_reduction, \
        f_nd_impurity_electrons, \
        n_charge_impurity_profile, \
        imp_label, \
        impurity_arr_label, \
        impurity_arr_z, \
        m_impurity_amu_array, \
        f_nd_impurity_electron_array, \
        impurity_arr_len_tab, \
        temp_impurity_keV_array, \
        pden_impurity_lz_nd_temp_array, \
        impurity_arr_zav

    radius_plasma_core_norm = 0.6
    f_p_plasma_core_rad_reduction = 1.0
    f_nd_impurity_electrons = np.array([
        1.0,
        0.1,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
    ])
    imp_label = np.array([
        "H_",
        "He",
        "Be",
        "C_",
        "N_",
        "O_",
        "Ne",
        "Si",
        "Ar",
        "Fe",
        "Ni",
        "Kr",
        "Xe",
        "W_",
    ])
    impurity_arr_label = np.full(N_IMPURITIES, "  ")
    impurity_arr_z = np.zeros(N_IMPURITIES)
    m_impurity_amu_array = np.zeros(N_IMPURITIES)
    f_nd_impurity_electron_array = np.zeros(N_IMPURITIES)
    n_charge_impurity_profile = np.zeros((N_IMPURITIES, 200))
    impurity_arr_len_tab = np.full(N_IMPURITIES, 0)
    temp_impurity_keV_array = np.zeros((N_IMPURITIES, 200))
    pden_impurity_lz_nd_temp_array = np.zeros((N_IMPURITIES, 200))
    impurity_arr_zav = np.zeros((N_IMPURITIES, 200))