Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $$


$$
\overbrace{\langle \beta_p \rangle_{\text{V}}}^{\texttt{beta_poloidal_thermal_vol_avg}} = \frac{2\mu_0 \overbrace{\langle p_{\text{thermal}} \rangle}^{\texttt{pres_plasma_thermal_vol_avg}}}{\underbrace{\langle B_{\text{P,average}} \rangle^2}_{\texttt{b_plasma_poloidal_average}}}
\overbrace{\langle \beta_p \rangle_{\text{V}}}^{\texttt{beta_poloidal_thermal_vol_avg}} = \frac{2\mu_0 \overbrace{\langle p_{\text{thermal}} \rangle}^{\texttt{pres_plasma_thermal_vol_avg}}}{\underbrace{\langle B_{\text{P,average}} \rangle^2}_{\texttt{b_plasma_surface_poloidal_average}}}
$$

### Volume averaged thermal beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ $$
I_{\text{p}} = \frac{5a B_{\text{T}}\kappa}{2\pi^2 \bar{q}}(F_1+F_2)\left(\frac{\arcsin{E_1}}{E_1}+\frac{\arcsin{E_2}}{E_2}\right)
$$

The values of $F_1$, $F_2$, $d_1$ & $d_2$ are first calculated from the [`_plascar_bpol()`](#_plasc_bpol) function.
The values of $F_1$, $F_2$, $d_1$ & $d_2$ are first calculated from the [`plascar_bpol()`](#_plasc_bpol) function.

The values of $E_1$ & $E_2$ are then calculated such as

Expand Down Expand Up @@ -523,7 +523,7 @@ $$
--------------


## Plasma Current Poloidal Field | `calculate_poloidal_field()`
## Plasma Current Poloidal Field | `calculate_surface_averaged_poloidal_field()`

For calculating the poloidal magnetic field created due to the presence of the plasma current, [Ampere's law](https://en.wikipedia.org/wiki/Amp%C3%A8re%27s_circuital_law) can be used. In this case the plasma edge average poloidal field is simply returned as:

Expand Down
69 changes: 69 additions & 0 deletions documentation/source/physics-models/plasma_magnetic_fields.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Magnetic Fields | `PlasmaFields()`

In a tokamak there are two main magnetic fields that we are concerned about, the toroidal magnetic field ($B_{\text{T}}$) and the poloidal magnetic field ($B_{\text{P}}$). The former created from the electric current in the toroidal field coils and the latter from the toroidal plasma current.



## Toroidal Field

In `PROCESS` the toroidal magnetic field at the plasma centre $(B_{\text{T}}(R_0))$ (`b_plasma_toroidal_on_axis`) is normally an iteration variable and is a key paramter is most plasma physics and engineering models.

The toroidal field decreases as $\propto \frac{1}{R}$ from the edge of the inboard toroidal field coil winding pack across the plasma.

------------------------------------

### Plasma Inboard Toroidal Field | `calculate_plasma_inboard_toroidal_field()`

The toroidal field at the plasma inboard is given as:

$$
\overbrace{B_{\text{T}}(R_0-a)}^{\texttt{b_plasma_inboard_toroidal}} = \frac{R_0 B_{\text{T}}(R_0)}{R_0 -a}
$$

------------------------------------

### Plasma Outboard Toroidal Field | `calculate_plasma_outboard_toroidal_field()`

The toroidal field at the plasma outboard is given as:

$$
\overbrace{B_{\text{T}}(R_0+a)}^{\texttt{b_plasma_outboard_toroidal}} = \frac{R_0 B_{\text{T}}(R_0)}{R_0 +a}
$$

------------------------------------

### Plasma Toroidal Field Profile | `calculate_toroidal_field_profile()`

The full toroidal profile across the plasma can be given as:

$$
\overbrace{B_{\text{T}}(\rho)}^{\texttt{b_plasma_toroidal_profile}} = \frac{R_0 B_{\text{T}}(R_0)}{\rho}
$$

------------------------------------

## Poloidal Field

The poloidal field in `PROCESS` is always an output as it is calculated directly from the plasma current. Currently only the average poloidal field on the plasma surface can be calculated. To know the poloidal field within the plasma the Grad-Sharanov equation must be solved, which is beyond the scope of most systems codes. This would provide a correct toroidal current density profile that can be used to find the poloidal field at any point inside the plasma.

------------------------------------

### Plasma Surface Averaged Field | `calculate_surface_averaged_poloidal_field()`

As the total toroidal plasma current is calculated, the Biot-Savart law can be used to find the poloidal field at the plasma surface by using the plasmas calculated poloidal perimeter:

$$
\overbrace{\langle B_{\text{p}} (a) \rangle}^{\texttt{b_plasma_surface_poloidal_average}} = \frac{I_{\text{p}}}{L_{\text{plasma,perimeter}}}
$$

As most plasmas are non-circular, the poloidal field thus varies with poloidal angle so only the average value can be inferred from this method. If the plasma was a perfect torus then this would be the poloidal field at any point of the plasma surface

------------------------------------

## Total Field | `calculate_total_magnetic_field()`

As the poloidal and toroidal fields are orthogonal to each other, the total magnetic field at any point is simply:

$$
\overbrace{B_{\text{total}}}^{\texttt{b_plasma_total}} = \sqrt{B_{\text{T}}^2 + B_{\text{P}}^2}
$$
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ nav:
- Overview: physics-models/fusion_reactions/plasma_reactions.md
- Beam reactions: physics-models/fusion_reactions/beam_reactions.md
- Bosch-Hale Methods: physics-models/fusion_reactions/plasma_bosch_hale.md
- Magnetic Fields: physics-models/plasma_magnetic_fields.md
- Beta Limit:
- Overview: physics-models/plasma_beta/plasma_beta.md
- Fast Alpha: physics-models/plasma_beta/plasma_alpha_beta_contribution.md
Expand Down
8 changes: 4 additions & 4 deletions process/core/io/plot_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3116,14 +3116,14 @@ def plot_main_plasma_information(
f"$\\mathbf{{Magnetic\\ fields:}}$\n\n"
f"Toroidal field at $R_0$, $B_{{T}}$: {mfile.get('b_plasma_toroidal_on_axis', scan=scan):.4f} T \n"
f" Ripple at outboard , $\\delta$: {mfile.get('ripple_b_tf_plasma_edge', scan=scan):.2f}% \n"
f"Average poloidal field, $B_{{p}}$: {mfile.get('b_plasma_poloidal_average', scan=scan):.4f} T \n"
f"Surface average poloidal field, $\\langle B_{{p}}(a) \\rangle$: {mfile.get('b_plasma_surface_poloidal_average', scan=scan):.4f} T\n"
f"Total field, $B_{{tot}}$: {mfile.get('b_plasma_total', scan=scan):.4f} T \n"
f"Vertical field, $B_{{vert}}$: {mfile.get('b_plasma_vertical_required', scan=scan):.4f} T"
)

axis.text(
0.55,
0.13,
0.5325,
0.14,
textstr_fields,
fontsize=9,
verticalalignment="top",
Expand All @@ -3139,7 +3139,7 @@ def plot_main_plasma_information(
# Add magnetic field label
axis.text(
0.75,
0.1,
0.12,
"$B$",
fontsize=23,
verticalalignment="top",
Expand Down
8 changes: 4 additions & 4 deletions process/data_structure/physics_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@
"""leading coefficient for NB beta fraction"""


b_plasma_poloidal_average: float = None
"""Plasma average poloidal field (T)"""
b_plasma_surface_poloidal_average: float = None
"""Plasma surface average poloidal field (T)"""


b_plasma_toroidal_on_axis: float = None
Expand Down Expand Up @@ -1441,7 +1441,7 @@ def init_physics_variables():
e_plasma_beta_thermal, \
beta_norm_toroidal, \
betbm0, \
b_plasma_poloidal_average, \
b_plasma_surface_poloidal_average, \
b_plasma_toroidal_on_axis, \
b_plasma_toroidal_inboard, \
b_plasma_toroidal_outboard, \
Expand Down Expand Up @@ -1730,7 +1730,7 @@ def init_physics_variables():
e_plasma_beta_thermal = 0.0
beta_norm_toroidal = 0.0
betbm0 = 1.5
b_plasma_poloidal_average = 0.0
b_plasma_surface_poloidal_average = 0.0
b_plasma_toroidal_on_axis = 5.68
b_plasma_toroidal_inboard = 0.0
b_plasma_toroidal_outboard = 0.0
Expand Down
3 changes: 3 additions & 0 deletions process/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
PlasmaInductance,
)
from process.models.physics.plasma_current import PlasmaCurrent
from process.models.physics.plasma_fields import PlasmaFields
from process.models.physics.plasma_geometry import PlasmaGeom
from process.models.physics.plasma_profiles import PlasmaProfile
from process.models.power import Power
Expand Down Expand Up @@ -715,6 +716,7 @@ def __init__(self):
self.plasma_confinement = PlasmaConfinementTime()
self.plasma_transition = PlasmaConfinementTransition()
self.plasma_current = PlasmaCurrent()
self.plasma_fields = PlasmaFields()
self.physics = Physics(
plasma_profile=self.plasma_profile,
current_drive=self.current_drive,
Expand All @@ -726,6 +728,7 @@ def __init__(self):
plasma_confinement=self.plasma_confinement,
plasma_transition=self.plasma_transition,
plasma_current=self.plasma_current,
plasma_fields=self.plasma_fields,
)
self.physics_detailed = DetailedPhysics(
plasma_profile=self.plasma_profile,
Expand Down
2 changes: 1 addition & 1 deletion process/models/divertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def run(self, output: bool):
pv.rminor,
pv.aspect,
pv.b_plasma_toroidal_on_axis,
pv.b_plasma_poloidal_average,
pv.b_plasma_surface_poloidal_average,
pv.p_plasma_separatrix_mw,
dv.f_div_flux_expansion,
pv.nd_plasma_separatrix_electron,
Expand Down
Loading
Loading