Skip to content

constraint_variables

CREATE_DICTS_FROM_DATACLASS = ConstraintData module-attribute

ConstraintData dataclass

Source code in process/data_structure/constraint_variables.py
  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
@dataclass
class ConstraintData:
    p_hcd_injected_min_mw: float = 0.1
    """minimum auxiliary power (MW) (`constraint equation 40`)"""

    beta_poloidal_max: float = 0.19
    """maximum poloidal beta (`constraint equation 48`)"""

    big_q_plasma_min: float = 10.0
    """minimum fusion gain Q (`constraint equation 28`)"""

    b_tf_inboard_max: float = 12.0
    """maximum peak toroidal field (T) (`constraint equation 25`)"""

    fdene: float = 1.0
    """Scaling value for density limit (constraint equation 5)"""

    fradpwr: float = 1.0
    """Scaling value for radiation power upper limit (constraint equation 17)"""

    fiooic: float = 0.7
    """Constraint margin for TF coil operating current / critical current ratio
    (`constraint equation 33`)
    """

    q95_fixed: float = 3.0
    """fixed safety factor q at 95% flux surface
    (`constraint equation 68`)
    """

    fjohc: float = 0.7
    """Constraint margin for central solenoid current at end-of-flattop
    (`constraint equation 26`)
    """

    fjohc0: float = 0.7
    """Constraint margin for central solenoid current at beginning of pulse
    (`constraint equation 27`)
    """

    eta_cd_norm_hcd_primary_max: float = 2.0
    """maximum current drive gamma (`constraint equation 37`)"""

    i_q95_fixed: int = 0
    """Switch that allows for fixing q95 only in this constraint equation 68.
    (`constraint equation 68`)
    """

    pflux_fw_rad_max: float = 1.0
    """Maximum permitted radiation wall load (MW/m^2) (`constraint equation 67`)"""

    mvalim: float = 40.0
    """maximum MVA limit (`constraint equation 19`)"""

    f_p_beam_shine_through_max: float = 1e-3
    """maximum neutral beam shine-through fraction (`constraint equation 59`)"""

    nflutfmax: float = 1.0e23
    """max fast neutron fluence on TF coil (n/m2) (`blktmodel>0`) (`constraint equation 53`)
    Also used for demontable magnets (itart = 1) and superconducting coils (i_tf_sup = 1)
    and quench protection
    To set the CP lifetime (`constraint equation 85`)
    """

    p_plasma_separatrix_min_mw: float = 150.0
    """Minimum p_plasma_separatrix_mw [MW] (`constraint equation 80`)"""

    f_fw_rad_max: float = 3.33
    """peaking factor for radiation wall load (`constraint equation 67`)"""

    pflux_fw_rad_max_mw: float = 0.0
    """Peak radiation wall load (MW/m^2) (`constraint equation 67`)"""

    p_plant_electric_net_required_mw: float = 1.0e3
    """required net electric power (MW) (`constraint equation 16`)"""

    p_fusion_total_max_mw: float = 1.5e3
    """maximum fusion power (MW) (`constraint equation 9`)"""

    psepbqarmax: float = 9.5
    """maximum ratio of Psep*Bt/qAR (MWT/m) (`constraint equation 68`)"""

    pseprmax: float = 25.0
    """maximum ratio of power crossing the separatrix to plasma major radius (Psep/R) (MW/m)
    (`constraint equation 56`)
    """

    ptfnucmax: float = 1e-3
    """maximum nuclear heating in TF coil (MW/m3) (`constraint equation 54`)"""

    tbrmin: float = 1.1
    """minimum tritium breeding ratio (`constraint equation 52`)"""

    t_burn_min: float = 1.0
    """minimum burn time (s) (KE - no longer itv., see issue #706)"""

    t_cycle_min: float = 0.0
    """minimum cycle time (s) (`constraint equation 42`)"""

    t_current_ramp_up_min: float = 1.0
    """minimum plasma current ramp-up time (s) (`constraint equation 41`)"""

    pflux_fw_neutron_max_mw: float = 1.0
    """allowable neutron wall-load (MW/m2) (`constraint equation 8`)"""

    f_alpha_energy_confinement_min: float = 5.0
    """Lower limit on f_alpha_energy_confinement the ratio of alpha particle to energy confinement
    times (`constraint equation 62`)
    """

    zeff_max: float = 3.6
    """maximum value for Zeff (`constraint equation 64`)"""

    f_h_mode_margin: float = 1.0
    """Sets the constraint bound of the L-H power threshold limit for H-mode

    I.e. p_plasma_separatrix_mw / p_l_h_threshold_mw >= f_h_mode_margin
    """

    f_l_mode_margin: float = 1.0
    """Sets the constraint bound of the L-H power threshold limit.

    I.e. p_l_h_threshold_mw / p_plasma_separatrix_mw >= f_l_mode_margin
    """

p_hcd_injected_min_mw = 0.1 class-attribute instance-attribute

minimum auxiliary power (MW) (constraint equation 40)

beta_poloidal_max = 0.19 class-attribute instance-attribute

maximum poloidal beta (constraint equation 48)

big_q_plasma_min = 10.0 class-attribute instance-attribute

minimum fusion gain Q (constraint equation 28)

b_tf_inboard_max = 12.0 class-attribute instance-attribute

maximum peak toroidal field (T) (constraint equation 25)

fdene = 1.0 class-attribute instance-attribute

Scaling value for density limit (constraint equation 5)

fradpwr = 1.0 class-attribute instance-attribute

Scaling value for radiation power upper limit (constraint equation 17)

fiooic = 0.7 class-attribute instance-attribute

Constraint margin for TF coil operating current / critical current ratio (constraint equation 33)

q95_fixed = 3.0 class-attribute instance-attribute

fixed safety factor q at 95% flux surface (constraint equation 68)

fjohc = 0.7 class-attribute instance-attribute

Constraint margin for central solenoid current at end-of-flattop (constraint equation 26)

fjohc0 = 0.7 class-attribute instance-attribute

Constraint margin for central solenoid current at beginning of pulse (constraint equation 27)

eta_cd_norm_hcd_primary_max = 2.0 class-attribute instance-attribute

maximum current drive gamma (constraint equation 37)

i_q95_fixed = 0 class-attribute instance-attribute

Switch that allows for fixing q95 only in this constraint equation 68. (constraint equation 68)

pflux_fw_rad_max = 1.0 class-attribute instance-attribute

Maximum permitted radiation wall load (MW/m^2) (constraint equation 67)

mvalim = 40.0 class-attribute instance-attribute

maximum MVA limit (constraint equation 19)

f_p_beam_shine_through_max = 0.001 class-attribute instance-attribute

maximum neutral beam shine-through fraction (constraint equation 59)

nflutfmax = 1e+23 class-attribute instance-attribute

max fast neutron fluence on TF coil (n/m2) (blktmodel>0) (constraint equation 53) Also used for demontable magnets (itart = 1) and superconducting coils (i_tf_sup = 1) and quench protection To set the CP lifetime (constraint equation 85)

p_plasma_separatrix_min_mw = 150.0 class-attribute instance-attribute

Minimum p_plasma_separatrix_mw [MW] (constraint equation 80)

f_fw_rad_max = 3.33 class-attribute instance-attribute

peaking factor for radiation wall load (constraint equation 67)

pflux_fw_rad_max_mw = 0.0 class-attribute instance-attribute

Peak radiation wall load (MW/m^2) (constraint equation 67)

p_plant_electric_net_required_mw = 1000.0 class-attribute instance-attribute

required net electric power (MW) (constraint equation 16)

p_fusion_total_max_mw = 1500.0 class-attribute instance-attribute

maximum fusion power (MW) (constraint equation 9)

psepbqarmax = 9.5 class-attribute instance-attribute

maximum ratio of Psep*Bt/qAR (MWT/m) (constraint equation 68)

pseprmax = 25.0 class-attribute instance-attribute

maximum ratio of power crossing the separatrix to plasma major radius (Psep/R) (MW/m) (constraint equation 56)

ptfnucmax = 0.001 class-attribute instance-attribute

maximum nuclear heating in TF coil (MW/m3) (constraint equation 54)

tbrmin = 1.1 class-attribute instance-attribute

minimum tritium breeding ratio (constraint equation 52)

t_burn_min = 1.0 class-attribute instance-attribute

minimum burn time (s) (KE - no longer itv., see issue #706)

t_cycle_min = 0.0 class-attribute instance-attribute

minimum cycle time (s) (constraint equation 42)

t_current_ramp_up_min = 1.0 class-attribute instance-attribute

minimum plasma current ramp-up time (s) (constraint equation 41)

pflux_fw_neutron_max_mw = 1.0 class-attribute instance-attribute

allowable neutron wall-load (MW/m2) (constraint equation 8)

f_alpha_energy_confinement_min = 5.0 class-attribute instance-attribute

Lower limit on f_alpha_energy_confinement the ratio of alpha particle to energy confinement times (constraint equation 62)

zeff_max = 3.6 class-attribute instance-attribute

maximum value for Zeff (constraint equation 64)

f_h_mode_margin = 1.0 class-attribute instance-attribute

Sets the constraint bound of the L-H power threshold limit for H-mode

I.e. p_plasma_separatrix_mw / p_l_h_threshold_mw >= f_h_mode_margin

f_l_mode_margin = 1.0 class-attribute instance-attribute

Sets the constraint bound of the L-H power threshold limit.

I.e. p_l_h_threshold_mw / p_plasma_separatrix_mw >= f_l_mode_margin