Analysing ITER parameters

Let’s try to look at ITER plasma conditions using the physics subpackage.

from astropy import units as u
from plasmapy import formulary
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D

The radius of electric field shielding clouds, also known as the Debye length, would be

electron_temperature = 8.8 * u.keV
electron_concentration = 10.1e19 / u.m**3
print(formulary.Debye_length(electron_temperature, electron_concentration))


6.939046841173439e-05 m

Note that we can also neglect the unit for the concentration, as 1/m^3 is the a standard unit for this kind of Quantity:

print(formulary.Debye_length(electron_temperature, 10.1e19))


/home/docs/checkouts/ UnitsWarning: No units are specified for n_e = 1.01e+20 in Debye_length. Assuming units of 1 / m3.
                To silence this warning, explicitly pass in an Astropy Quantity (from astropy.units)
6.939046841173439e-05 m

Assuming the magnetic field as 5.3 Teslas (which is the value at the major radius):

B = 5.3 * u.T

print(formulary.gyrofrequency(B, particle='e'))

print(formulary.gyroradius(B, T_i=electron_temperature, particle='e'))


932174612509.1257 rad / s
/home/docs/checkouts/ RelativityWarning: thermal_speed is yielding a velocity that is 18.559% of the speed of light. Relativistic effects may be important.
5.968562743414285e-05 m

The electron inertial length would be

print(formulary.inertial_length(electron_concentration, particle='e'))


0.0005287720431268747 m

In these conditions, they should reach thermal velocities of about

print(formulary.thermal_speed(T=electron_temperature, particle='e'))


55637426.625786155 m / s

And the Langmuir wave plasma frequency should be on the order of



566959736046.5352 rad / s

Let’s try to recreate some plots and get a feel for some of these quantities. We will also compare our data to real-world plasma situations.

n_e = np.logspace(4, 30, 100) / u.m**3
plt.plot(n_e, formulary.plasma_frequency(n_e))
    label="Our Data")

# IRT1 Tokamak Data
n_e = 1.2e19 / u.m**3
T_e = 136.8323 * u.eV
B = 0.82 * u.T
plt.scatter(n_e, formulary.plasma_frequency(n_e), label="IRT1 Tokamak")

# Wendelstein 7-X Stellerator Data
n_e = 3e19 / u.m**3
T_e = 6 * u.keV
B = 3 * u.T
plt.scatter(n_e, formulary.plasma_frequency(n_e), label="W7-X Stellerator")

# Solar Corona
# Estimated by Nick Murphy
n_e = 1e15 / u.m**3
T_e = 1e6 * u.K
B = 0.005 * u.T, equivalencies=u.temperature_energy())
plt.scatter(n_e, formulary.plasma_frequency(n_e), label="Solar Corona")

# Interstellar (warm neutral) Medium
# Estimated by Nick Murphy
n_e = 1e6 / u.m**3
T_e = 5e3 * u.K
B = 0.005 * u.T, equivalencies=u.temperature_energy())
plt.scatter(n_e, formulary.plasma_frequency(n_e), label="Interstellar Medium")

# Solar Wind at 1 AU
# Estimated by Nick Murphy
n_e = 7e6 / u.m**3
T_e = 1e5 * u.K
B = 5e-9 * u.T, equivalencies=u.temperature_energy())
plt.scatter(n_e, formulary.plasma_frequency(n_e), label="Solar Wind (1AU)")

plt.xlabel("Electron Concentration (m^-3)")
plt.ylabel("Langmuir Wave Plasma Frequency (rad/s)")
plt.title("Log-scale plot of plasma frequencies")

Total running time of the script: ( 0 minutes 0.453 seconds)

Gallery generated by Sphinx-Gallery