plasma
Calculate plasma elongation and radial and vertical coordinates for the geometry of the plasma
PlasmaGeometry
dataclass
Holds radial and vertical coordinates for the geometry of a plasma
Source code in process/models/geometry/plasma.py
11 12 13 14 15 16 17 18 19 20 | |
rs
instance-attribute
radial plasma coordinates
zs
instance-attribute
vertical plasma coordinates
kappa
instance-attribute
plasma separatrix elongation
plasma_geometry(rmajor, rminor, triang, kappa, i_single_null, i_plasma_shape, square)
Calculates radial and vertical distances and plasma elongation for the geometry of the plasma.
This function computes the radial and vertical coordinates of the plasma boundary, as well as the plasma elongation, based on the given major radius, minor radius, triangularity, and elongation at 95% of the plasma surface. It also considers whether the plasma configuration is single null or double null.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rmajor
|
float
|
Plasma major radius. |
required |
rminor
|
float
|
Plasma minor radius. |
required |
triang
|
float
|
Plasma triangularity at separatrix. |
required |
kappa
|
float
|
Plasma elongation at separatrix. |
required |
i_single_null
|
int
|
Switch for single null (1) or double null (0) plasma configuration. |
required |
i_plasma_shape
|
int
|
Switch for plasma shape (0 for double arc, 1 for Sauter). |
required |
square
|
float
|
Square term for Sauter plasma shape. |
required |
Returns:
| Type | Description |
|---|---|
PlasmaGeometry
|
A dataclass containing the plasma elongation and the radial and vertical coordinates of the plasma. |
Source code in process/models/geometry/plasma.py
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 | |