Skip to content

pf_power_variables

Module containing global variables relating to the PF coil power conversion system

CREATE_DICTS_FROM_DATACLASS = PFPowerData module-attribute

PFPowerData dataclass

Source code in process/data_structure/pf_power_variables.py
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
@dataclass(slots=True)
class PFPowerData:
    acptmax: float = 0.0
    """average of currents in PF circuits (kA)"""

    ensxpfm: float = 0.0
    """maximum stored energy in the PF circuits (MJ)"""

    i_pf_energy_storage_source: int = 2
    """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 = 0.0
    """number of PF coil circuits"""

    spfbusl: float = 0.0
    """total PF coil circuit bus length (m)"""

    spsmva: float = 0.0
    """sum of PF power supply ratings (MVA)"""

    srcktpm: float = 0.0
    """sum of resistive PF coil power (kW)"""

    vpfskv: float = 0.0
    """PF coil voltage (kV)"""

    peakpoloidalpower: float = 0.0
    """Peak absolute rate of change of stored energy in poloidal field (MW)"""

    maxpoloidalpower: float = 1000.0
    """Maximum permitted absolute rate of change of stored energy in poloidal field (MW)"""

    poloidalpower: list[float] = field(default_factory=lambda: np.zeros(5))
    """Poloidal power usage at time t (MW)"""

    f_p_pf_energy_store_loss: float = 0.1
    """Fraction of PF magnetic energy moved into/out of storage that is lost each time"""

    f_p_pf_psu_loss: float = 0.1
    """Fraction of inductive power flow lost in the PF power supplies/converters."""

acptmax = 0.0 class-attribute instance-attribute

average of currents in PF circuits (kA)

ensxpfm = 0.0 class-attribute instance-attribute

maximum stored energy in the PF circuits (MJ)

i_pf_energy_storage_source = 2 class-attribute instance-attribute

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 = 0.0 class-attribute instance-attribute

number of PF coil circuits

spfbusl = 0.0 class-attribute instance-attribute

total PF coil circuit bus length (m)

spsmva = 0.0 class-attribute instance-attribute

sum of PF power supply ratings (MVA)

srcktpm = 0.0 class-attribute instance-attribute

sum of resistive PF coil power (kW)

vpfskv = 0.0 class-attribute instance-attribute

PF coil voltage (kV)

peakpoloidalpower = 0.0 class-attribute instance-attribute

Peak absolute rate of change of stored energy in poloidal field (MW)

maxpoloidalpower = 1000.0 class-attribute instance-attribute

Maximum permitted absolute rate of change of stored energy in poloidal field (MW)

poloidalpower = field(default_factory=(lambda: np.zeros(5))) class-attribute instance-attribute

Poloidal power usage at time t (MW)

f_p_pf_energy_store_loss = 0.1 class-attribute instance-attribute

Fraction of PF magnetic energy moved into/out of storage that is lost each time

f_p_pf_psu_loss = 0.1 class-attribute instance-attribute

Fraction of inductive power flow lost in the PF power supplies/converters.