density_limit
DensityLimitModel
Bases: IntEnum
Electron density model types
Source code in process/models/physics/density_limit.py
18 19 20 21 22 23 24 25 26 27 28 | |
ASDEX = 1
class-attribute
instance-attribute
BORRASS_ITER_I = 2
class-attribute
instance-attribute
BORRASS_ITER_II = 3
class-attribute
instance-attribute
JET_EDGE_RADIATION = 4
class-attribute
instance-attribute
JET_SIMPLE = 5
class-attribute
instance-attribute
HUGILL_MURAKAMI = 6
class-attribute
instance-attribute
GREENWALD = 7
class-attribute
instance-attribute
ASDEX_NEW = 8
class-attribute
instance-attribute
PlasmaDensityLimit
Class to hold plasma density limit calculations for plasma processing.
Source code in process/models/physics/density_limit.py
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 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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 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 231 232 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 289 290 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 329 330 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 382 383 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 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 | |
outfile = constants.NOUT
instance-attribute
mfile = constants.MFILE
instance-attribute
run()
Source code in process/models/physics/density_limit.py
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 | |
get_density_limit_value(model)
Get the density limit value (n_e_max) for the specified model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
DensityLimitModel
|
The density limit model type. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The density limit value (m⁻³). |
Source code in process/models/physics/density_limit.py
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 | |
calculate_asdex_density_limit(p_perp, b_plasma_toroidal_on_axis, q95, rmajor, prn1)
staticmethod
Calculate the ASDEX density limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p_perp
|
float
|
Perpendicular power density (MW/m²). |
required |
b_plasma_toroidal_on_axis
|
float
|
Toroidal field on axis (T). |
required |
q95
|
float
|
Safety factor at 95% of the plasma poloidal flux. |
required |
rmajor
|
float
|
Plasma major radius (m). |
required |
prn1
|
float
|
Edge density / average plasma density. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The ASDEX density limit (m⁻³). |
References
T.C.Hender et.al., 'Physics Assesment of the European Reactor Study', AEA FUS 172, 1992
Source code in process/models/physics/density_limit.py
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 | |
calculate_borrass_iter_i_density_limit(p_perp, b_plasma_toroidal_on_axis, q95, rmajor, prn1)
staticmethod
Calculate the Borrass ITER I density limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p_perp
|
float
|
Perpendicular power density (MW/m²). |
required |
b_plasma_toroidal_on_axis
|
float
|
Toroidal field on axis (T). |
required |
q95
|
float
|
Safety factor at 95% of the plasma poloidal flux. |
required |
rmajor
|
float
|
Plasma major radius (m). |
required |
prn1
|
float
|
Edge density / average plasma density. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The Borrass ITER I density limit (m⁻³). |
References
T.C.Hender et.al., 'Physics Assesment of the European Reactor Study', AEA FUS 172, 1992
Source code in process/models/physics/density_limit.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | |
calculate_borrass_iter_ii_density_limit(p_perp, b_plasma_toroidal_on_axis, q95, rmajor, prn1)
staticmethod
Calculate the Borrass ITER II density limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p_perp
|
float
|
Perpendicular power density (MW/m²). |
required |
b_plasma_toroidal_on_axis
|
float
|
Toroidal field on axis (T). |
required |
q95
|
float
|
Safety factor at 95% of the plasma poloidal flux. |
required |
rmajor
|
float
|
Plasma major radius (m). |
required |
prn1
|
float
|
Edge density / average plasma density. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The Borrass ITER II density limit (m⁻³). |
References
T.C.Hender et.al., 'Physics Assesment of the European Reactor Study', AEA FUS 172, 1992
Source code in process/models/physics/density_limit.py
186 187 188 189 190 191 192 193 194 195 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 | |
calculate_jet_edge_radiation_density_limit(zeff, p_hcd_injected_total_mw, prn1, qcyl)
staticmethod
Calculate the JET edge radiation density limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
zeff
|
float
|
Effective charge (Z_eff). |
required |
p_hcd_injected_total_mw
|
float
|
Power injected into the plasma (MW). |
required |
prn1
|
float
|
Edge density / average plasma density. |
required |
qcyl
|
float
|
Equivalent cylindrical safety factor (qstar). |
required |
Returns:
| Type | Description |
|---|---|
float
|
The JET edge radiation density limit (m⁻³). |
References
T.C.Hender et.al., 'Physics Assesment of the European Reactor Study', AEA FUS 172, 1992
Source code in process/models/physics/density_limit.py
226 227 228 229 230 231 232 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 | |
calculate_jet_simple_density_limit(b_plasma_toroidal_on_axis, p_plasma_separatrix_mw, rmajor, prn1)
staticmethod
Calculate the JET simple density limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b_plasma_toroidal_on_axis
|
float
|
Toroidal field on axis (T). |
required |
p_plasma_separatrix_mw
|
float
|
Power crossing the separatrix (MW). |
required |
rmajor
|
float
|
Plasma major radius (m). |
required |
prn1
|
float
|
Edge density / average plasma density. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The JET simple density limit (m⁻³). |
References
T.C.Hender et.al., 'Physics Assesment of the European Reactor Study', AEA FUS 172, 1992
Source code in process/models/physics/density_limit.py
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 289 290 291 292 293 294 | |
calculate_hugill_murakami_density_limit(b_plasma_toroidal_on_axis, rmajor, qcyl)
staticmethod
Calculate the Hugill-Murakami density limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b_plasma_toroidal_on_axis
|
float
|
Toroidal field on axis (T). |
required |
rmajor
|
float
|
Plasma major radius (m). |
required |
qcyl
|
float
|
Equivalent cylindrical safety factor (qstar). |
required |
Returns:
| Type | Description |
|---|---|
float
|
The Hugill-Murakami density limit (m⁻³). |
References
N.A. Uckan and ITER Physics Group, 'ITER Physics Design Guidelines: 1989'
Source code in process/models/physics/density_limit.py
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 | |
calculate_greenwald_density_limit(c_plasma, rminor)
staticmethod
Calculate the Greenwald density limit (n_GW).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
c_plasma
|
float
|
Plasma current (A). |
required |
rminor
|
float
|
Plasma minor radius (m). |
required |
Returns:
| Type | Description |
|---|---|
float
|
The Greenwald density limit (m⁻³). |
Notes
The Greenwald limit is typically applied to the line averaged electron density.
References
M. Greenwald et al., "A new look at density limits in tokamaks," Nuclear Fusion, vol. 28, no. 12, pp. 2199-2207, Dec. 1988, doi: https://doi.org/10.1088/0029-5515/28/12/009.
M. Greenwald, "Density limits in toroidal plasmas," Plasma Physics and Controlled Fusion, vol. 44, no. 8, pp. R27-R53, Jul. 2002, doi: https://doi.org/10.1088/0741-3335/44/8/201.
Source code in process/models/physics/density_limit.py
324 325 326 327 328 329 330 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 | |
calculate_asdex_new_density_limit(p_hcd_injected_total_mw, c_plasma, q95, prn1)
staticmethod
Calculate the ASDEX Upgrade new density limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p_hcd_injected_total_mw
|
float
|
Power injected into the plasma (MW). |
required |
c_plasma
|
float
|
Plasma current (A). |
required |
q95
|
float
|
Safety factor at 95% surface. |
required |
prn1
|
float
|
Edge density / average plasma density. |
required |
Returns:
| Type | Description |
|---|---|
float
|
The ASDEX Upgrade new density limit (m⁻³). |
Notes
This limit is for the separatrix density so we scale by prn1 to get it as a volume average.
References
J. W. Berkery et al., "Density limits as disruption forecasters for spherical tokamaks," Plasma Physics and Controlled Fusion, vol. 65, no. 9, pp. 095003-095003, Jul. 2023, doi: https://doi.org/10.1088/1361-6587/ace476.
M. Bernert et al., "The H-mode density limit in the full tungsten ASDEX Upgrade tokamak," vol. 57, no. 1, pp. 014038-014038, Nov. 2014, doi: https://doi.org/10.1088/0741-3335/57/1/014038.
Source code in process/models/physics/density_limit.py
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 | |
calculate_density_limit(b_plasma_toroidal_on_axis, i_density_limit, p_plasma_separatrix_mw, p_hcd_injected_total_mw, plasma_current, prn1, qcyl, q95, rmajor, rminor, a_plasma_surface, zeff)
Calculate the density limit using various models.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b_plasma_toroidal_on_axis
|
float
|
Toroidal field on axis (T). |
required |
i_density_limit
|
int
|
Switch denoting which formula to enforce (1-7). |
required |
p_plasma_separatrix_mw
|
float
|
Power flowing to the edge plasma via charged particles (MW). |
required |
p_hcd_injected_total_mw
|
float
|
Power injected into the plasma (MW). |
required |
plasma_current
|
float
|
Plasma current (A). |
required |
prn1
|
float
|
Edge density / average plasma density. |
required |
qcyl
|
float
|
Equivalent cylindrical safety factor (qstar). |
required |
q95
|
float
|
Safety factor at 95% surface. |
required |
rmajor
|
float
|
Plasma major radius (m). |
required |
rminor
|
float
|
Plasma minor radius (m). |
required |
a_plasma_surface
|
float
|
Plasma surface area (m²). |
required |
zeff
|
float
|
Plasma effective charge. |
required |
Returns:
| Type | Description |
|---|---|
tuple[ndarray, float]
|
A tuple containing: - nd_plasma_electron_max_array : Average plasma density limit using eight different models (m⁻³). - nd_plasma_electrons_max : Enforced average plasma density limit (m⁻³). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If i_density_limit is not between 1 and 7. |
Notes
This routine calculates several different formulae for the density limit and enforces the one chosen by the user. For i_density_limit = 1-5, 8, we scale the separatrix density limit output by the ratio of the separatrix to volume averaged density.
References
AEA FUS 172: Physics Assessment for the European Reactor Study
N.A. Uckan and ITER Physics Group, 'ITER Physics Design Guidelines: 1989'
M. Bernert et al., "The H-mode density limit in the full tungsten ASDEX Upgrade tokamak," vol. 57, no. 1, pp. 014038-014038, Nov. 2014, doi: https://doi.org/10.1088/0741-3335/57/1/014038.
Source code in process/models/physics/density_limit.py
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 | |
output_density_limit_information()
Output density limit information to file.
Source code in process/models/physics/density_limit.py
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 | |