constraints
ConstraintSymbolType = Literal['=', '>=', '<=']
module-attribute
ConstraintRegistration
dataclass
Contains the constraint equation and metadata about the constraint.
Source code in process/core/solver/constraints.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
name
instance-attribute
The name (often a number) of the constraint. It can be any hashable e.g. a string.
constraint_equation
instance-attribute
The constraint equation that, when called, returns the normalised resiudal, constraint value, and constraint error.
units
instance-attribute
The units of the constraint value and error.
symbol
instance-attribute
The type of constraint (<=, >=, ==). Only used for writing output diagnostics, this does not impact the calculations.
ConstraintResult
dataclass
Bases: ConstraintRegistration
The constraint quantities given the current state of the code (aka given the current iteration variables).
Source code in process/core/solver/constraints.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
residual
instance-attribute
The residual of the constraint. Ie the amount a constraint is or is not violated. A negative residual indicates infeasibility. A positive residual indicates feasibility. A 0 residual indicates that a constraint value is exactly equal to its bound (feasible, just).
The residual will have the same physical units as the constraint value/bound.
normalised_residual
instance-attribute
The normalised residual of the constraint. The sign of the normalised residual is interpreted identical to the residual.
constraint_value
instance-attribute
The value of the constraint (in the physical units).
constraint_bound
instance-attribute
The bound of the constraint (in the physical units).
ConstraintManager
A singleton class that manages the registration of constraint equations and metadata.
This class maintains an internal registry of constraints indexed by their names. Classmethods provide access to this registry or to directly evaluate constraints.
Source code in process/core/solver/constraints.py
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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
num_constraints()
classmethod
Return the number of constraints currently in the registry
Source code in process/core/solver/constraints.py
78 79 80 81 | |
register_constraint(name, units, symbol)
classmethod
A decorator to add a constraint equation with metadata to the registry.
The decorator should wrap a function with no argument which returns a ConstraintResult.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
Hashable
|
the name of the constraint and how it can be indexed from the registry |
required |
units
|
str
|
the units of the constraint written to the output files |
required |
symbol
|
str
|
the symbol of the constraint written to the output files |
required |
Source code in process/core/solver/constraints.py
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 | |
get_constraint(name)
classmethod
Retrieves a constraint registration from the registry given its name. Returns None if no constraint with the name exists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
Hashable
|
the name of the constraint |
required |
Returns:
| Type | Description |
|---|---|
ConstraintRegistration | None
|
the constraint registration object |
Source code in process/core/solver/constraints.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
evaluate_constraint(name, data)
classmethod
Evalutes a constraint with a given name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
Hashable
|
the name of the constraint |
required |
data
|
DataStructure
|
data structure object for providing constraint data to evaluate constraint equations |
required |
Returns:
| Type | Description |
|---|---|
ConstraintResult | None
|
the result of evaluating the constraint |
Source code in process/core/solver/constraints.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
leq(value, bound, registration)
The equation value <= bound.
Source code in process/core/solver/constraints.py
157 158 159 160 161 162 163 164 165 166 167 | |
geq(value, bound, registration)
The equation value >= bound.
Source code in process/core/solver/constraints.py
170 171 172 173 174 175 176 177 178 179 180 | |
eq(value, bound, registration)
The equation value = bound.
Source code in process/core/solver/constraints.py
183 184 185 186 187 188 189 190 191 192 193 | |
constraint_equation_1(constraint_registration, data)
Relationship between beta, temperature (keV) and density
beta_total_vol_avg: total plasma beta beta_{ft}: fast alpha beta component beta_{NBI}: neutral beam beta component n_e: electron density [/m3] n_i: total ion density [/m3] T_e: density weighted average electron temperature [keV] T_i: density weighted average ion temperature [keV] B_{tot}: total toroidal + poloidal field [T]
Source code in process/core/solver/constraints.py
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | |
constraint_equation_2(constraint_registration, data)
i_rad_loss: switch for radiation loss term usage in power balance (see User Guide): - 0 total power lost is scaling power plus radiation (needed for i_plasma_pedestal=2,3) - 1 total power lost is scaling power plus core radiation only - 2 total power lost is scaling power only, with no additional allowance for radiation. This is not recommended for power plant models.
i_plasma_ignited: switch for ignition assumption: - 0 do not assume plasma ignition; - 1 assume ignited (but include auxiliary power in costs)
pden_electron_transport_loss_mw: electron transport power per volume (MW/m3) pden_ion_transport_loss_mw: ion transport power per volume (MW/m3) pden_plasma_rad_mw: total radiation power per volume (MW/m3) pden_plasma_core_rad_mw: total core radiation power per volume (MW/m3) f_p_alpha_plasma_deposited: fraction of alpha power deposited in plasma pden_alpha_total_mw: alpha power per volume (MW/m3) pden_non_alpha_charged_mw: non-alpha charged particle fusion power per volume (MW/m3) pden_plasma_ohmic_mw: ohmic heating power per volume (MW/m3) p_hcd_injected_total_mw: total auxiliary injected power (MW) vol_plasma: plasma volume (m3)
Source code in process/core/solver/constraints.py
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | |
constraint_equation_3(constraint_registration, data)
Global power balance equation for ions i_plasma_ignited: switch for ignition assumption - 0 do not assume plasma ignition; - 1 assume ignited (but include auxiliary power in costs)
pden_ion_transport_loss_mw: ion transport power per volume (MW/m3) pden_ion_electron_equilibration_mw: ion/electron equilibration power per volume (MW/m3) f_p_alpha_plasma_deposited: fraction of alpha power deposited in plasma f_pden_alpha_ions_mw: alpha power per volume to ions (MW/m3) p_hcd_injected_ions_mw: auxiliary injected power to ions (MW) vol_plasma: plasma volume (m3)
Source code in process/core/solver/constraints.py
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | |
constraint_equation_4(constraint_registration, data)
Global power balance equation for electrons
i_rad_loss: switch for radiation loss term usage in power balance - 0 total power lost is scaling power plus radiation (needed for i_plasma_pedestal=2,3) - 1 total power lost is scaling power plus core radiation only - 2 total power lost is scaling power only, with no additional allowance for radiation. This is not recommended for power plant models.
i_plasma_ignited: switch for ignition assumption: - 0 do not assume plasma ignition; - 1 assume ignited (but include auxiliary power in costs)
pden_electron_transport_loss_mw: electron transport power per volume (MW/m3) pden_plasma_rad_mw: total radiation power per volume (MW/m3) pden_plasma_core_rad_mw: total core radiation power per volume (MW/m3) f_p_alpha_plasma_deposited: fraction of alpha power deposited in plasma f_pden_alpha_electron_mw: alpha power per volume to electrons (MW/m3) pden_ion_electron_equilibration_mw: ion/electron equilibration power per volume (MW/m3) p_hcd_injected_electrons_mw: auxiliary injected power to electrons (MW) vol_plasma: plasma volume (m3)
Source code in process/core/solver/constraints.py
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 | |
constraint_equation_5(constraint_registration, data)
Equation for electron density upper limit
f_nd_plasma_electron_limit_max: density limit scale nd_plasma_electrons_vol_avg: electron density (/m³) nd_plasma_electrons_max: density limit (/m³) nd_plasma_electron_line: line averaged electron density (/m³)
i_density_limit: - 1 old ASDEX; - 2 Borrass model for ITER (I); - 3 Borrass model for ITER (II); - 4 JET edge radiation; - 5 JET simplified; - 6 Hugill-Murakami Mq limit; - 7 Greenwald limit
f_nd_plasma_electron_limit_max scales the constraint such that: nd_plasma_electrons_vol_avg / nd_plasma_electrons_max <= f_nd_plasma_electron_limit_max. (Except when i_density_limit=7 when nd_plasma_electron_line is used, not nd_plasma_electrons_vol_avg)
Source code in process/core/solver/constraints.py
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | |
constraint_equation_6(constraint_registration, data)
Equation for epsilon beta-poloidal upper limit
beta_poloidal_eps_max: maximum (eps*beta_poloidal) eps: inverse aspect ratio beta_poloidal: poloidal beta
Source code in process/core/solver/constraints.py
427 428 429 430 431 432 433 434 435 436 437 438 439 | |
constraint_equation_7(constraint_registration, data)
Equation for hot beam ion density
i_plasma_ignited: switch for ignition assumption: - 0 do not assume plasma ignition - 1 assume ignited (but include auxiliary power in costs) Obviously, i_plasma_ignited must be zero if current drive is required. If i_plasma_ignited=1, any auxiliary power is assumed to be used only during plasma start-up, and is excluded from all steady-state power balance calculations. nd_beam_ions_out: hot beam ion density from calculation (/m³) nd_beam_ions: hot beam ion density, variable (/m³)
Source code in process/core/solver/constraints.py
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | |
constraint_equation_8(constraint_registration, data)
Equation for neutron wall load upper limit
pflux_fw_neutron_max_mw: allowable wall-load (MW/m²) pflux_fw_neutron_mw: average neutron wall load (MW/m²)
Source code in process/core/solver/constraints.py
466 467 468 469 470 471 472 473 474 475 476 477 | |
constraint_equation_9(constraint_registration, data)
Equation for fusion power upper limit
p_fusion_total_max_mw: maximum fusion power (MW) p_fusion_total_mw: fusion power (MW)
Source code in process/core/solver/constraints.py
480 481 482 483 484 485 486 487 488 489 490 491 | |
constraint_equation_11(constraint_registration, data)
Equation for radial build
rbld: sum of thicknesses to the major radius (m) rmajor: plasma major radius (m)
Source code in process/core/solver/constraints.py
494 495 496 497 498 499 500 501 502 503 504 505 | |
constraint_equation_12(constraint_registration, data)
Equation for volt-second capability lower limit
vs_plasma_total_required: total Vs needed (Wb) vs_plasma_total_required (lower limit) is positive; vs_cs_pf_total_pulse (available) is negative vs_cs_pf_total_pulse: total flux swing for pulse (Wb)
Source code in process/core/solver/constraints.py
508 509 510 511 512 513 514 515 516 517 518 519 520 521 | |
constraint_equation_13(constraint_registration, data)
Equation for burn time lower limit
t_plant_pulse_burn: burn time (s) (calculated if i_pulsed_plant=1) t_burn_min: minimum burn time (s)
Source code in process/core/solver/constraints.py
524 525 526 527 528 529 530 531 532 533 534 535 | |
constraint_equation_14(constraint_registration, data)
Equation to fix number of NBI decay lengths to plasma centre
n_beam_decay_lengths_core: neutral beam e-decay lengths to plasma centre n_beam_decay_lengths_core_required: permitted neutral beam e-decay lengths to plasma centre
Source code in process/core/solver/constraints.py
538 539 540 541 542 543 544 545 546 547 548 549 | |
constraint_equation_15(constraint_registration, data)
Equation for L-H power threshold limit to enforce H-mode
f_h_mode_margin: a margin on the constraint p_l_h_threshold_mw: L-H mode power threshold (MW) p_plasma_separatrix_mw: power to conducted to the divertor region (MW)
Setting f_h_mode_margin != 1.0 enforces a margin on the constraint: I.e. p_plasma_separatrix_mw >= f_h_mode_margin * p_l_h_threshold_mw
For example, f_h_mode_margin = 1.2 will ensure that p_plasma_separatrix_mw is at least 1.2*p_l_h_threshold_mw (ie in H-mode).
Source code in process/core/solver/constraints.py
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 | |
constraint_equation_16(constraint_registration, data)
Equation for net electric power lower limit
p_plant_electric_net_mw: net electric power (MW) p_plant_electric_net_required_mw: required net electric power (MW)
Source code in process/core/solver/constraints.py
573 574 575 576 577 578 579 580 581 582 583 584 | |
constraint_equation_17(constraint_registration, data)
Equation for plasma radiation fraction upper limit
f_p_plasma_separatrix_rad: plasma radiation fraction at the separatrix f_p_plasma_separatrix_rad_max: maximum allowed plasma radiation fraction at the separatrix
Source code in process/core/solver/constraints.py
587 588 589 590 591 592 593 594 595 596 597 598 599 | |
constraint_equation_18(constraint_registration, data)
Equation for divertor heat load upper limit
pflux_div_heat_load_max_mw: heat load limit (MW/m²) pflux_div_heat_load_mw: divertor heat load (MW/m²)
Source code in process/core/solver/constraints.py
602 603 604 605 606 607 608 609 610 611 612 613 | |
constraint_equation_19(constraint_registration, data)
Equation for MVA (power) upper limit: resistive TF coil set
p_cp_resistive_mw: peak resistive TF coil inboard leg power (total) (MW) p_tf_leg_resistive_mw: TF coil outboard leg resistive power (total) (MW) mvalim: MVA limit for resistive TF coil set (total) (MW)
Source code in process/core/solver/constraints.py
616 617 618 619 620 621 622 623 624 625 626 | |
constraint_equation_20(constraint_registration, data)
Equation for neutral beam tangency radius upper limit
radius_beam_tangency_max: maximum tangency radius for centreline of beam (m) radius_beam_tangency: neutral beam centreline tangency radius (m)
Source code in process/core/solver/constraints.py
629 630 631 632 633 634 635 636 637 638 639 640 | |
constraint_equation_21(constraint_registration, data)
Equation for minor radius lower limit
rminor: plasma minor radius (m) rminor_min: minimum minor radius (m)
Source code in process/core/solver/constraints.py
643 644 645 646 647 648 649 650 651 652 653 654 | |
constraint_equation_22(constraint_registration, data)
Equation for L-H power threshold limit to enforce L-mode
f_l_mode_margin: a margin on the constraint p_l_h_threshold_mw: L-H mode power threshold (MW) p_plasma_separatrix_mw: power to conducted to the divertor region (MW)
Setting f_l_mode_margin != 1.0 enforces a margin on the constraint: I.e. p_l_h_threshold_mw >= f_l_mode_margin * p_plasma_separatrix_mw
For example, f_l_mode_margin = 1.2 will ensure that p_l_h_threshold_mw is at least 1.2*p_plasma_separatrix_mw (ie in L-mode).
Source code in process/core/solver/constraints.py
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 | |
constraint_equation_23(constraint_registration, data)
Equation for conducting shell radius / rminor upper limit
rminor: plasma minor radius (m) dr_fw_plasma_gap_outboard: gap between plasma and first wall, outboard side (m) dr_fw_outboard: outboard first wall thickness, initial estimate (m) dr_blkt_outboard: outboard blanket thickness (m) f_r_conducting_wall: maximum ratio of conducting wall distance to plasma minor radius for vertical stability
Source code in process/core/solver/constraints.py
678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 | |
constraint_equation_24(constraint_registration, data)
Equation for beta upper limit
i_beta_component: switch for beta limit scaling (constraint equation 24): - 0 apply limit to total beta; - 1 apply limit to thermal beta; - 2 apply limit to thermal + neutral beam beta - 3 apply limit to toroidal beta istell: switch for stellarator option: - 0 use tokamak model; - 1 use stellarator model beta_vol_avg_max: allowable beta beta_total_vol_avg: total plasma beta (calculated if i_plasma_pedestal =3) beta_fast_alpha: fast alpha beta component beta_beam: neutral beam beta component b_plasma_toroidal_on_axis: toroidal field b_plasma_total: total field
Source code in process/core/solver/constraints.py
702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 | |
constraint_equation_25(constraint_registration, data)
Equation for peak toroidal field upper limit
b_tf_inboard_max: maximum peak toroidal field (T) b_tf_inboard_peak_with_ripple: mean peak field at TF coil with ripple (T)
Source code in process/core/solver/constraints.py
744 745 746 747 748 749 750 751 752 753 754 755 | |
constraint_equation_26(constraint_registration, data)
Equation for Central Solenoid current density upper limit at EOF
fjohc: margin for central solenoid current at end-of-flattop j_cs_critical_flat_top_end: allowable central solenoid current density at end of flat-top (A/m²) j_cs_flat_top_end: central solenoid overall current density at end of flat-top (A/m²)
Source code in process/core/solver/constraints.py
758 759 760 761 762 763 764 765 766 767 768 769 770 | |
constraint_equation_27(constraint_registration, data)
Equation for Central Solenoid current density upper limit at BOP
fjohc0: margin for central solenoid current at beginning of pulse j_cs_critical_pulse_start: allowable central solenoid current density at beginning of pulse (A/m²) j_cs_pulse_start: central solenoid overall current density at beginning of pulse (A/m²)
Source code in process/core/solver/constraints.py
773 774 775 776 777 778 779 780 781 782 783 784 785 | |
constraint_equation_28(constraint_registration, data)
Equation for fusion gain (big Q) lower limit
big_q_plasma: Fusion gain; P_fusion / (P_injection + P_ohmic) big_q_plasma_min: minimum fusion gain Q i_plasma_ignited : input integer : switch for ignition assumption: - 0 do not assume plasma ignition; - 1 assume ignited (but include auxiliary power in costs) Obviously, ignite must be zero if current drive is required. If i_plasma_ignited=1, any auxiliary power is assumed to be used only during plasma start-up, and is excluded from all steady-state power balance calculations.
Source code in process/core/solver/constraints.py
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 | |
constraint_equation_29(constraint_registration, data)
Equation for inboard major radius: This is a consistency equation
rmajor: plasma major radius (m) (iteration variable 3) rminor: plasma minor radius (m) rinboard: plasma inboard radius (m)
Source code in process/core/solver/constraints.py
812 813 814 815 816 817 818 819 820 821 822 823 824 | |
constraint_equation_30(constraint_registration, data)
Equation for injection power upper limit
p_hcd_injected_total_mw: total auxiliary injected power (MW) p_hcd_injected_max: Maximum allowable value for injected power (MW)
Source code in process/core/solver/constraints.py
827 828 829 830 831 832 833 834 835 836 837 838 | |
constraint_equation_31(constraint_registration, data)
Equation for TF coil case stress upper limit (SCTF)
sig_tf_case_max: Allowable maximum shear stress in TF coil case (Tresca criterion) (Pa) sig_tf_case: Constrained stress in TF coil case (Pa)
Source code in process/core/solver/constraints.py
841 842 843 844 845 846 847 848 849 850 851 852 | |
constraint_equation_32(constraint_registration, data)
Equation for TF coil conduit stress upper limit (SCTF)
sig_tf_wp_max: Allowable maximum shear stress in TF coil conduit (Tresca criterion) (Pa) sig_tf_wp: Constrained stress in TF conductor conduit (Pa)
Source code in process/core/solver/constraints.py
855 856 857 858 859 860 861 862 863 864 865 866 | |
constraint_equation_33(constraint_registration, data)
Equation for TF coil operating/critical J upper limit (SCTF)
args : output structure : residual error; constraint value;
f_j_tf_wp_critical_max: margin for TF coil operating current / critical j_tf_wp_critical: critical current density for winding pack (A/m²) j_tf_wp: winding pack current density (A/m²)
f_j_tf_wp_critical_max scales the constraint such that: j_tf_wp / j_tf_wp_critical <= f_j_tf_wp_critical_max.
Source code in process/core/solver/constraints.py
869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 | |
constraint_equation_34(constraint_registration, data)
Equation for TF coil dump voltage upper limit (SCTF)
v_tf_coil_dump_quench_max_kv: max voltage across TF coil during quench (kV) v_tf_coil_dump_quench_kv: voltage across a TF coil during quench (kV)
Source code in process/core/solver/constraints.py
889 890 891 892 893 894 895 896 897 898 899 900 | |
constraint_equation_35(constraint_registration, data)
Equation for TF coil J_wp/J_prot upper limit (SCTF)
j_tf_wp_quench_heat_max: allowable TF coil winding pack current density, for dump temperature rise protection (A/m²) j_tf_wp: winding pack current density (A/m²)
Source code in process/core/solver/constraints.py
903 904 905 906 907 908 909 910 911 912 913 914 915 | |
constraint_equation_36(constraint_registration, data)
Equation for TF coil s/c temperature margin lower limit (SCTF)
temp_tf_superconductor_margin: TF coil temperature margin (K) temp_tf_superconductor_margin_min: minimum allowable temperature margin : TF coils (K)
Source code in process/core/solver/constraints.py
918 919 920 921 922 923 924 925 926 927 928 929 | |
constraint_equation_37(constraint_registration, data)
Equation for current drive gamma upper limit
eta_cd_norm_hcd_primary_max: maximum current drive gamma eta_cd_norm_hcd_primary: normalised current drive efficiency (1.0e20 A/W-m²)
Source code in process/core/solver/constraints.py
932 933 934 935 936 937 938 939 940 941 942 943 | |
constraint_equation_39(constraint_registration, data)
Equation for first wall temperature upper limit
temp_fw_max: maximum temperature of first wall material (K) (i_thermal_electric_conversion>1) temp_fw_peak: peak first wall temperature (K)
Source code in process/core/solver/constraints.py
946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 | |
constraint_equation_40(constraint_registration, data)
Equation for auxiliary power lower limit
p_hcd_injected_total_mw: total auxiliary injected power (MW) p_hcd_injected_min_mw: minimum auxiliary power (MW)
Source code in process/core/solver/constraints.py
965 966 967 968 969 970 971 972 973 974 975 976 | |
constraint_equation_41(constraint_registration, data)
Equation for plasma current ramp-up time lower limit
t_plant_pulse_plasma_current_ramp_up: plasma current ramp-up time for current initiation (s) t_current_ramp_up_min: minimum plasma current ramp-up time (s)
Source code in process/core/solver/constraints.py
979 980 981 982 983 984 985 986 987 988 989 990 | |
constraint_equation_42(constraint_registration, data)
Equation for cycle time lower limit
t_plant_pulse_total: full cycle time (s) t_cycle_min: minimum cycle time (s)
Source code in process/core/solver/constraints.py
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 | |
constraint_equation_43(constraint_registration, data)
Equation for average centrepost temperature: This is a consistency equation (TART)
temp_cp_average: average temp of TF coil inboard leg conductor (C)e tcpav2: centrepost average temperature (C) (for consistency) itart: switch for spherical tokamak (ST) models: - 0 use conventional aspect ratio models; - 1 use spherical tokamak models
Source code in process/core/solver/constraints.py
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 | |
constraint_equation_44(constraint_registration, data)
Equation for centrepost temperature upper limit (TART)
temp_cp_max: maximum peak centrepost temperature (K) temp_cp_peak: peak centrepost temperature (K) itart: switch for spherical tokamak (ST) models: - 0: use conventional aspect ratio models; - 1: use spherical tokamak models
Source code in process/core/solver/constraints.py
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 | |
constraint_manager_45(constraint_registration, data)
Equation for edge safety factor lower limit (TART)
q95 : safety factor 'near' plasma edge (unless i_plasma_current = 2 (ST current scaling), in which case q = mean edge safety factor qbar) q95_min: lower limit for edge safety factor itart : input integer : switch for spherical tokamak (ST) models: - 0 use conventional aspect ratio models; - 1 use spherical tokamak models
Source code in process/core/solver/constraints.py
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 | |
constraint_equation_46(constraint_registration, data)
Equation for Iₚ/I_rod upper limit (TART)
eps: inverse aspect ratio c_tf_total: total (summed) current in TF coils (A) plasma_current: plasma current (A) itart: switch for spherical tokamak (ST) models: - 0: use conventional aspect ratio models; - 1: use spherical tokamak models
Source code in process/core/solver/constraints.py
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 | |
constraint_equation_48(constraint_registration, data)
Equation for poloidal beta upper limit
beta_poloidal_max: maximum poloidal beta beta_poloidal: poloidal beta
Source code in process/core/solver/constraints.py
1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 | |
constraint_equation_50(constraint_registration, data)
IFE option: Equation for repetition rate upper limit
Source code in process/core/solver/constraints.py
1117 1118 1119 1120 1121 1122 1123 1124 | |
constraint_equation_51(constraint_registration, data)
Equation to enforce startup flux = available startup flux
vs_plasma_ramp_required: Required flux swing for startup (Wb) vs_cs_pf_total_ramp: total flux swing for startup (Wb)
Source code in process/core/solver/constraints.py
1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 | |
constraint_equation_52(constraint_registration, data)
Equation for tritium breeding ratio lower limit
The tritium breeding ratio is only calculated when using the IFE model.
tbr: tritium breeding ratio tbrmin: minimum tritium breeding ratio
Source code in process/core/solver/constraints.py
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 | |
constraint_equation_53(constraint_registration, data)
Equation for fast neutron fluence on TF coil upper limit
flu_tf_neutron_fast_max: max fast neutron fluence on TF coil (n/m²) flu_tf_neutron_fast_peak: peak fast neutron fluence on TF coil superconductor (n/m²)
Source code in process/core/solver/constraints.py
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 | |
constraint_equation_54(constraint_registration, data)
Equation for peak TF coil nuclear heating upper limit
ptfnucmax: maximum nuclear heating in TF coil (MW/m³) ptfnucpm3: nuclear heating in the TF coil (MW/m³) (blktmodel>0)
Source code in process/core/solver/constraints.py
1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 | |
constraint_equation_56(constraint_registration, data)
Equation for Pₛₑₚ / R₀ upper limit
p_plasma_separatrix_rmajor_max_mw: maximum ratio of power crossing the separatrix to plasma major radius (Pₛₑₚ / R₀) [MW/m] p_plasma_separatrix_mw: power crossing plasma separartrix (MW)
Source code in process/core/solver/constraints.py
1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 | |
constraint_equation_59(constraint_registration, data)
Equation for neutral beam shine-through fraction upper limit
f_p_beam_shine_through_max: maximum neutral beam shine-through fraction f_p_beam_shine_through: neutral beam shine-through fraction
Source code in process/core/solver/constraints.py
1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 | |
constraint_equation_60(constraint_registration, data)
Equation for Central Solenoid s/c temperature margin lower limit
temp_cs_superconductor_margin: Central solenoid temperature margin (K) temp_cs_superconductor_margin_min: Minimum allowable temperature margin : CS (K)
Source code in process/core/solver/constraints.py
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 | |
constraint_equation_61(constraint_registration, data)
Equation for availability lower limit
f_t_plant_available: Total plant availability fraction f_t_plant_available_min: Minimum availability
Source code in process/core/solver/constraints.py
1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 | |
constraint_equation_62(constraint_registration, data)
Lower limit on f_t_alpha_energy_confinement the ratio of alpha particle to energy confinement times
t_alpha_confinement: alpha particle confinement time (s) t_energy_confinement: global thermal energy confinement time (sec) f_t_alpha_energy_confinement_min: Lower limit on f_t_alpha_energy_confinement the ratio of alpha particle to energy confinement times
Source code in process/core/solver/constraints.py
1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 | |
constraint_equation_63(constraint_registration, data)
Upper limit on n_iter_vacuum_pumps (i_vacuum_pumping = simple)
tfno: number of TF coils (default = 50 for stellarators) n_iter_vacuum_pumps: number of high vacuum pumps (real number), each with the throughput
Source code in process/core/solver/constraints.py
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 | |
constraint_equation_64(constraint_registration, data)
Upper limit on volume averaged plasma effective charge Zeff
n_charge_plasma_effective_vol_avg_max: maximum value for volume averaged plasma effective charge n_charge_plasma_effective_vol_avg: plasma effective charge
Source code in process/core/solver/constraints.py
1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 | |
constraint_equation_65(constraint_registration, data)
Upper limit on stress of the vacuum vessel that occurs when the TF coil quenches.
max_vv_stress: Maximum permitted stress of the VV (Pa) vv_stress_quench: Stress of the VV (Pa)
Source code in process/core/solver/constraints.py
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 | |
constrain_equation_66(constraint_registration, data)
Upper limit on rate of change of energy in poloidal field
maxpoloidalpower: Maximum permitted absolute rate of change of stored energy in poloidal field (MW) peakpoloidalpower: Peak absolute rate of change of stored energy in poloidal field (MW) (11/01/16)
Source code in process/core/solver/constraints.py
1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 | |
constraint_equation_67(constraint_registration, data)
Simple upper limit on radiation wall load
pflux_fw_rad_max: Maximum permitted radiation wall load (MW/m²) pflux_fw_rad_max_mw: Peak radiation wall load (MW/m²)
Source code in process/core/solver/constraints.py
1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 | |
constraint_equation_68(constraint_registration, data)
Upper limit on Psep scaling (PₛₑₚBₜ / q₉₅AR₀)
p_div_bt_q_aspect_rmajor_max_mw: maximum permitted value of ratio of PₛₑₚBₜ / q₉₅AR₀ (MWT/m) p_plasma_separatrix_mw: Power crossing the separartrix (MW) b_plasma_toroidal_on_axis: toroidal field on axis (T) (iteration variable 2) q95: safety factor q at 95% flux surface aspect: aspect ratio (iteration variable 1) rmajor: plasma major radius (m) (iteration variable 3) i_q95_fixed: Switch that allows for fixing q95 only in this constraint. q95_fixed: fixed safety factor q at 95% flux surface
Source code in process/core/solver/constraints.py
1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 | |
constraint_equation_72(constraint_registration, data)
Upper limit on Central Solenoid Tresca yield stress
In the case if the bucked and wedged option ( i_tf_bucking >= 2 ) the constrained stress is the largest the largest stress of the - CS stress at maximum current (conservative as the TF inward pressure is not taken into account) - CS stress at flux swing (no current in CS) from the TF inward pressure This allow to cover the 2 worst stress scenario in the bucked and wedged design Otherwise (free standing TF), the stress limits are only set by the CS stress at max current Reverse the sign so it works as an inequality constraint (tmp_cc > 0) This will have no effect if it is used as an equality constraint because it will be squared.
alstroh: allowable hoop stress in Central Solenoid structural material (Pa) s_shear_cs_peak: Maximum shear stress coils/central solenoid (Pa) sig_tf_cs_bucked: Maximum shear stress in CS case at flux swing (no current in CS) can be significant for the bucked and weged design i_tf_bucking: switch for TF structure design
Source code in process/core/solver/constraints.py
1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 | |
constraint_equation_73(constraint_registration, data)
Lower limit to ensure separatrix power is greater than the L-H power + auxiliary power Related to constraint 15
p_l_h_threshold_mw: L-H mode power threshold (MW) p_plasma_separatrix_mw: power to be conducted to the divertor region (MW) p_hcd_injected_total_mw : inout real : total auxiliary injected power (MW)
Source code in process/core/solver/constraints.py
1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 | |
constraint_equation_74(constraint_registration, data)
Upper limit to ensure TF coil quench temperature < temp_croco_quench_max ONLY used for croco HTS coil
temp_croco_quench: CroCo strand: Actual temp reached during a quench (K) temp_croco_quench_max: CroCo strand: maximum permitted temp during a quench (K)
Source code in process/core/solver/constraints.py
1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 | |
constraint_equation_75(constraint_registration, data)
Upper limit to ensure that TF coil current / copper area < Maximum value ONLY used for croco HTS coil
copperA_m2: TF coil current / copper area (A/m²) copperA_m2_max: Maximum TF coil current / copper area (A/m²)
Source code in process/core/solver/constraints.py
1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 | |
constraint_equation_76(constraint_registration, data)
Upper limit for Eich critical separatrix density model: Added for issue 558
Eich critical separatrix density model Added for issue 558 with ref to http://iopscience.iop.org/article/10.1088/1741-4326/aaa340/pdf
alpha_crit: critical ballooning parameter value nd_plasma_separatrix_electron_eich_max: critical electron density at separatrix [/m³] kappa: plasma separatrix elongation (calculated if i_plasma_geometry = 1-5, 7 or 9) triang: plasma separatrix triangularity (calculated if i_plasma_geometry = 1, 3-5 or 7) aspect: aspect ratio (iteration variable 1) p_plasma_separatrix_mw: power to conducted to the divertor region (MW) nd_plasma_electron_max_array(7)array : density limit [/m³] as calculated using various models
Source code in process/core/solver/constraints.py
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 | |
constraint_equation_77(constraint_registration, data)
Equation for maximum TF current per turn upper limit
c_tf_turn_max : allowable TF coil current per turn [A/turn] c_tf_turn : TF coil current per turn [A/turn]
Source code in process/core/solver/constraints.py
1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 | |
constraint_equation_78(constraint_registration, data)
Equation for Reinke criterion, divertor impurity fraction lower limit
fzmin : input : minimum impurity fraction from Reinke model fzactual : input : actual impurity fraction
Source code in process/core/solver/constraints.py
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 | |
constraint_equation_79(constraint_registration, data)
Equation for maximum CS field
b_cs_limit_max: Central solenoid max field limit [T] b_cs_peak_pulse_start: maximum field in central solenoid at beginning of pulse (T) b_cs_peak_flat_top_end: maximum field in central solenoid at end of flat-top (EoF) (T) (Note: original code has "b_cs_peak_flat_top_end/b_cs_peak_pulse_start | peak CS field [T]".)
Source code in process/core/solver/constraints.py
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 | |
constraint_equation_80(constraint_registration, data)
Equation for p_plasma_separatrix_mw lower limit
args : output structure : residual error; constraint value; residual error in physical units; output string; units string Lower limit p_plasma_separatrix_mw
p_plasma_separatrix_min_mw : input : Minimum power crossing separatrix p_plasma_separatrix_mw [MW] p_plasma_separatrix_mw : input : Power crossing separatrix [MW]
Source code in process/core/solver/constraints.py
1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 | |
constraint_equation_81(constraint_registration, data)
Lower limit to ensure central density is larger that the pedestal one
args : output structure : residual error; constraint value; residual error in physical units; output string; units string Lower limit nd_plasma_electron_on_axis > nd_plasma_pedestal_electron
nd_plasma_electron_on_axis : input : Central electron density [/m³] nd_plasma_pedestal_electron : input : Electron density at pedestal [/m³]
Source code in process/core/solver/constraints.py
1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 | |
constraint_equation_82(constraint_registration, data)
Equation for toroidal consistency of stellarator build
toroidalgap: minimal gap between two stellarator coils dx_tf_inboard_out_toroidal: total toroidal width of a tf coil
Source code in process/core/solver/constraints.py
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 | |
constraint_equation_83(constraint_registration, data)
Equation for radial consistency of stellarator build
available_radial_space: avaible space in radial direction as given by each s.-configuration required_radial_space: required space in radial direction
Source code in process/core/solver/constraints.py
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 | |
constraint_equation_84(constraint_registration, data)
Equation for the lower limit of beta
beta_vol_avg_min: Lower limit for beta beta: plasma beta
Source code in process/core/solver/constraints.py
1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 | |
constraint_equation_85(constraint_registration, data)
Equality constraint for the centerpost (CP) lifetime
Depending on the chosen option i_cp_lifetime: - 0 : The CP full power year lifelime is set by the user (cplife_input) - 1 : The CP lifelime is equal to the divertor one - 2 : The CP lifetime is equal to the breeding blankets one - 3 : The CP lifetime is equal to the plant one
cplife: calculated CP full power year lifetime (years) life_blkt_fpy: calculated first wall/blanket power year lifetime (years) life_div_fpy: calculated divertor power year lifetime (years) i_cp_lifetime: switch chosing which plant element the CP the CP lifetime must equate
Source code in process/core/solver/constraints.py
1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 | |
constraint_equation_86(constraint_registration, data)
Upper limit on the turn edge length in the TF winding pack
dx_tf_turn_general: TF coil turn edge length including turn insulation [m] t_turn_tf_max: TF turn edge length including turn insulation upper limit [m]
Source code in process/core/solver/constraints.py
1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 | |
constraint_equation_87(constraint_registration, data)
Equation for TF coil cryogenic power upper limit
p_cryo_plant_electric_mw: cryogenic plant power (MW) p_cryo_plant_electric_max_mw: Maximum cryogenic plant power (MW)
Source code in process/core/solver/constraints.py
1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 | |
constraint_equation_88(constraint_registration, data)
Equation for TF coil vertical strain upper limit (absolute value)
str_wp_max: Allowable maximum TF coil vertical strain str_wp: Constrained TF coil vertical strain
Source code in process/core/solver/constraints.py
1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 | |
constraint_equation_89(constraint_registration, data)
Upper limit to ensure that the Central Solenoid [OH] coil current / copper area < Maximum value
copperaoh_m2: CS coil current at EOF / copper area [A/m²] copperaoh_m2_max: maximum coil current / copper area [A/m²]
Source code in process/core/solver/constraints.py
1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 | |
constraint_equation_90(constraint_registration, data)
Lower limit for CS coil stress load cycles
n_cycle: Allowable number of cycles for CS n_cycle_min: Minimum required cycles for CS
Source code in process/core/solver/constraints.py
1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 | |
constraint_equation_91(constraint_registration, data)
Lower limit to ensure ECRH te is greater than required te for ignition at lower values for n and B. Or if the design point is ECRH heatable (if i_plasma_ignited==0) stellarators only (but in principle usable also for tokamaks).
max_gyrotron_frequency: Max. av. gyrotron frequency te0_ecrh_achievable: Max. achievable electron temperature at ignition point
Source code in process/core/solver/constraints.py
1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 | |
constraint_equation_92(constraint_registration, data)
Equation for checking is D/T ratio is consistent, and sums to 1.
f_plasma_fuel_deuterium: fraction of deuterium ions f_plasma_fuel_tritium: fraction of tritium ions f_plasma_fuel_helium3: fraction of helium-3 ions
Source code in process/core/solver/constraints.py
1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 | |
constraint_eqns(m, ieqn, data)
Evaluates the constraints given the current state of PROCESS.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
m
|
int
|
The number of constraints to evaluate |
required |
ieqn
|
int
|
Evaluates the 'ieqn'th constraint equation (index starts at 1) or all equations if <= 0 |
required |
data
|
DataStructure
|
DataStructure object to provide data to evaluate the constraints NOTE: this is only for getting data, not setting it |
required |
Source code in process/core/solver/constraints.py
1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 | |