-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEM1PythonDictionaries.py
138 lines (130 loc) · 4.2 KB
/
EM1PythonDictionaries.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
variable_symbols = {
"taue": r"$\tau_E$",
"betan": r"$\beta_{\mathrm{N}}$",
"modeh": r"H-Mode",
"qeff": r"$q_{\mathrm{eff}}$",
"q0": r"$q_0$",
"q95": r"$q_{95}$",
"temps": r"$t$",
"pnbi": r"$P_{\mathrm{NBI}}$",
"frnbi": r"$P_{\mathrm{NBI frac}}$",
"pnbi_th": r"$P_{\mathrm{NBI thermal}}$",
"ip": r"$I_{\mathrm{P}}$",
"betap": r"$\beta_{\mathrm{P}}$",
"nbar": r"$\bar{n}_e$",
"ne0": r"$n_{e(0)}$",
"ni0": r"$n_{i(0)}$",
"nim": r"$n_{i(m)}$",
"te0": r"$T_{e(0)}$",
"tem": r"$\bar{T}_e$",
"tite": r"$\frac{T_i}{T_e}$",
"tim": "$T_{i(m)}$",
"pfus": r"$P_{\mathrm{f}}$",
"sext": r"$S_{\mathrm{ext}}$",
"vp": r"$V_{\mathrm{p}}$",
"W": r"$E_{\mathrm{p}}$",
"ne0te0taue": r"$n_{e(0)}T_{e(0)}\tau_E$", # This is a custom variable
"ni0titetaue": r"$n_{i(0)}\frac{T_i}{T_e}\tau_E$", # This is a custom variable
"nimtimtaue": r"$n_{i(m)}T_{i(m)}\tau_E$", # This is a custom variable
"nTtau": r"$\bar{n}_i \bar{T}_i \tau_E$", # This is a custom variable
}
variable_meanings = {
"taue": "Energy confinement time",
"betan": "Normalised plasma beta",
"modeh": "Confinement mode [L=0, H=1]",
"qeff": "Effective safety factor",
"q0": "Central safety factor",
"q95": "Safety factor at 95%%",
"temps": "Time",
"pnbi": "NBI",
"frnbi": "Fraction of NBI absorbed",
"pnbi_th": "NBI Therm. power deposit.",
"ip:": "Plasma current",
"betap": "Poloidal beta",
"nbar": "Line avg. electron density",
"ne0": "Central electron density",
"ni0": "Central ion density",
"nim": "Sum of V.avg. ion densities",
"te0": "Central electron temp.",
"tite": "Ratio of ion to e- temp. (V.avg.)",
"tim": "Volume avg. ion temp.",
"tem": "Volume avg. e- temp.",
"pfus": "Alpha D-T fusion power",
"sext": "External plasma surface",
"vp": "Plasma volume",
"W": "Total plasma energy",
"ne0te0taue": "Triple product",
"ni0titetaue": "Old triple product", # This is a custom variable
"nimtimtaue": "Triple product", # This is a custom variable
"nTtau": "Triple product", # This is a custom variable
}
variable_units = {
"taue": r"\unit{\second}",
"betan": "",
"modeh": "",
"qeff": "",
"q0": "",
"q95": "",
"temps": r"\unit{\second}",
"pnbi": r"\unit{\watt}",
"frnbi": "",
"pnbi_th": r"\unit{\watt}",
"ip:": r"$\unit{\ampere}$",
"betap": "",
"nbar": r"\unit{\per\metre\squared}",
"ne0": r"\unit{\per\metre\cubed}",
"ni0": r"\unit{\per\metre\cubed}",
"nim": r"\unit{\per\metre\cubed}",
"te0": r"\unit{\electronvolt}",
"tite": "",
"tim": r"\unit{\electronvolt}",
"tem": r"\unit{\electronvolt}",
"pfus": r"\unit{\watt}",
"sext": r"\unit{\metre\squared}",
"vp": r"\unit{\metre\cubed}",
"W": r"\unit{\joule}",
"ne0te0taue": r"\unit{\electronvolt\second\per\metre\cubed}",
"ni0titetaue": r"\unit{\second\per\metre\cubed}", # Custom
"nimtimtaue": r"\unit{\electronvolt\second\per\metre\cubed}", # Custom
"nTtau": r"\unit{\electronvolt\second\per\metre\cubed}", # Custom
}
variable_yticks = {
"modeh": [0, 1],
}
variables_list = list(variable_symbols.keys())
parameter_symbols = {
"b0": r"$B_0$", # Toroidal Magnetic Field
"a": r"$a$", # Minor Radius of Plasma
"R0": r"$R_0$", # Major Radius of Plasma
"z0": r"$Z_0$", # Height of Plasma
"ip": r"$I_{\mathrm{P}}$",
"nbar": r"$\bar{n}$",
"nim": r"$N_{i(m)}$",
"pnbi": r"$P_{\mathrm{NBI}}$",
}
parameter_meanings = {
"b0": "Toroidal Magnetic Field",
"a": "Minor Radius of Plasma",
"R0": "Major Radius of Plasma",
"z0": "Height of Plasma",
"ip": "Plasma Current",
"nbar": "Line avg. electron density",
"nim": "Sum of V.Avg. Ion Densities",
"pnbi": "NBI Power",
}
parameter_units = {
"b0": r"\unit{\tesla}",
"a": r"\unit{\metre}",
"R0": r"\unit{\metre}",
"z0": r"\unit{\metre}",
"ip": r"\unit{\ampere}",
"nbar": r"\unit{\per\metre\cubed}",
"nim": r"\unit{\per\metre\cubed}",
"pnbi": r"\unit{\watt}",
}
respective_variable_for_dataframe = {
"pnbi_dataframes": "pnbi",
"B0_dataframes": "b0",
"Ip_dataframes": "ip",
"nbar_dataframes": "nbar",
}