-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpf_power_variables.py
More file actions
81 lines (64 loc) · 2.08 KB
/
pf_power_variables.py
File metadata and controls
81 lines (64 loc) · 2.08 KB
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
"""author: J. Morris, M. Kovari (UKAEA)
Module containing global variables relating to the PF coil power conversion system
"""
import numpy as np
acptmax: float = None
"""average of currents in PF circuits (kA)"""
ensxpfm: float = None
"""maximum stored energy in the PF circuits (MJ)"""
i_pf_energy_storage_source: int = None
"""Switch for PF coil energy storage option:
- =1 all power from MGF (motor-generator flywheel) units
- =2 all pulsed power from line
- =3 PF power from MGF, heating from line
(In fact, options 1 and 3 are not treated differently)
"""
pfckts: float = None
"""number of PF coil circuits"""
spfbusl: float = None
"""total PF coil circuit bus length (m)"""
spsmva: float = None
"""sum of PF power supply ratings (MVA)"""
srcktpm: float = None
"""sum of resistive PF coil power (kW)"""
vpfskv: float = None
"""PF coil voltage (kV)"""
peakpoloidalpower: float = None
"""Peak absolute rate of change of stored energy in poloidal field (MW)"""
maxpoloidalpower: float = None
"""Maximum permitted absolute rate of change of stored energy in poloidal field (MW)"""
poloidalpower: list[float] = None
"""Poloidal power usage at time t (MW)"""
f_p_pf_energy_store_loss: float = None
"""Fraction of PF magnetic energy moved into/out of storage that is lost each time"""
f_p_pf_psu_loss: float = None
"""Fraction of inductive power flow lost in the PF power supplies/converters."""
def init_pf_power_variables():
"""Initialise PF coil power variables"""
global \
acptmax, \
ensxpfm, \
i_pf_energy_storage_source, \
pfckts, \
spfbusl, \
spsmva, \
srcktpm, \
vpfskv, \
peakpoloidalpower, \
maxpoloidalpower, \
poloidalpower, \
f_p_pf_energy_store_loss, \
f_p_pf_psu_loss
acptmax = 0.0
ensxpfm = 0.0
i_pf_energy_storage_source = 2
pfckts = 0.0
spfbusl = 0.0
spsmva = 0.0
srcktpm = 0.0
vpfskv = 0.0
peakpoloidalpower = 0.0
maxpoloidalpower = 1000.0
poloidalpower = np.zeros(5)
f_p_pf_energy_store_loss = 0.1
f_p_pf_psu_loss = 0.1