Struphy equilibrium
AdhocTorus
Governing formula
For a cylindrical coordinate system with transformation formulae
the magnetic field is given by
where is the toroidal field function, the major radius of the torus and the on-axis magnetic field. The ad hoc poloidal flux function is the solution of
for some given safety factor profile. Two profiles in terms of the on-axis and edge safety factor values are available ( is the minor radius of the torus):
The pressure profile
is either the exact solution of the MHD equilibrium condition in the cylindrical limit () or an monotonically decreasing adhoc profile for some given on-axis plasma beta (). Finally, the number density profile is chosen as
Units are those defned in the parameter file (through `struphy.io.options.BaseUnits`).
Coordinate slices
Pressure and density sampled from the generated equilibrium data. Heatmaps use the perceptually uniform Viridis palette.
XZ plane at 0
YZ plane at 0
Coordinate-line profiles
Parameters
| Parameter | Value | Description |
|---|---|---|
a | 1 | Minor radius of torus (default: 1.). |
R0 | 3 | Major radius of torus (default: 3.). |
B0 | 2 | On-axis (r=0) toroidal magnetic field (default: 2.). |
q_kind | 0 | Which safety factor profile, see :meth:`doc_formula` (0, 1 or 2, default: 0). |
q0 | 1.71 | Safety factor at r=0 (default: 1.71). |
q1 | 1.87 | Safety factor at r=a (default: 1.87). |
l | 0 | Linear term factor for q profile if q_kind=2 (default: 0.). |
n1 | 2 | 1st shape factor for ion number density profile (default: 0.). |
n2 | 1 | 2nd shape factor for ion number density profile (default: 0.). |
na | 0.2 | Ion number density at r=a (default: 1.). |
p_kind | 1 | Kind of pressure profile, see :meth:`doc_formula` (0 or 1, default: 1). |
p0 | 1 | constant factor for ad hoc pressure profile (default: 1.). |
p1 | 0.1 | 1st shape factor for ad hoc pressure profile (default: 0.). |
p2 | 0.1 | 2nd shape factor for ad hoc pressure profile (default: 0.). |
beta | 0.179 | On-axis (r=0) plasma beta if p_kind=1 (ratio of kinematic pressure to B^2/(2*mu0), default: 0.179). |
psi_k | 3 | Spline degree to be used for interpolation of poloidal flux function (if q_kind=1, default=3). |
psi_nel | 50 | Number of cells to be used for interpolation of poloidal flux function (if q_kind=1, default=50). |