Skip to content

pf_power_variables

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

acptmax = None module-attribute

average of currents in PF circuits (kA)

ensxpfm = None module-attribute

maximum stored energy in the PF circuits (MJ)

i_pf_energy_storage_source = None module-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 = None module-attribute

number of PF coil circuits

spfbusl = None module-attribute

total PF coil circuit bus length (m)

spsmva = None module-attribute

sum of PF power supply ratings (MVA)

srcktpm = None module-attribute

sum of resistive PF coil power (kW)

vpfskv = None module-attribute

PF coil voltage (kV)

peakpoloidalpower = None module-attribute

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

maxpoloidalpower = None module-attribute

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

poloidalpower = None module-attribute

Poloidal power usage at time t (MW)

init_pf_power_variables()

Initialise PF coil power variables

Source code in process/data_structure/pf_power_variables.py
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
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

    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)