.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "api/gallery/plasma/collisions/plot_01_spitzer_resistivity.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_api_gallery_plasma_collisions_plot_01_spitzer_resistivity.py: Spitzer and Härm: the resistivity of a fully ionized gas =========================================================== An electron carrying current through a plasma is slowed by Coulomb collisions with ions. Each collision is a small-angle deflection, and adding up the many distant ones gives a collision frequency :math:`\nu_{ei}\propto n\ln\Lambda/T_e^{3/2}`. Spitzer and Härm (1953) solved the Fokker-Planck equation for the current-carrying electron distribution and found the parallel resistivity, in Chen's form (eq. 5.76), .. math:: \eta_\parallel = 5.2\times10^{-5}\,\frac{Z\ln\Lambda}{T_e^{3/2}}\ \Omega\,\mathrm{m} \qquad (T_e \text{ in eV}). Two things are unlike a metal. The density cancels, because more carriers means proportionally more ions to hit. And the resistivity falls as :math:`T_e^{-3/2}`, because fast electrons are barely deflected, so a fusion plasma conducts better than copper and ohmic heating fades as it heats up. This example evaluates :func:`~physicskit.plasma.collisions.spitzer_resistivity` and checks it against the Braginskii collision frequency :func:`~physicskit.plasma.collisions.electron_ion_collision_frequency`. .. GENERATED FROM PYTHON SOURCE LINES 28-38 .. code-block:: Python import matplotlib.pyplot as plt import numpy as np from physicskit.constants import ELECTRON_MASS, ELEMENTARY_CHARGE from physicskit.plasma.collisions import ( coulomb_logarithm, electron_ion_collision_frequency, spitzer_resistivity, ) .. GENERATED FROM PYTHON SOURCE LINES 39-44 Resistivity against temperature ---------------------------------- :math:`\ln\Lambda` changes slowly, so it is held at 15 for the curves. Copper at room temperature is :math:`1.7\times10^{-8}\ \Omega\,` m; a hydrogen plasma passes it near 1 keV. .. GENERATED FROM PYTHON SOURCE LINES 44-58 .. code-block:: Python T = np.geomspace(1.0, 1e4, 200) eta_cu = 1.7e-8 fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(11, 4)) for Z, color in [(1, "steelblue"), (2, "darkorange"), (6, "firebrick")]: ax1.loglog(T, spitzer_resistivity(T, 15.0, Z), color=color, label=f"Z = {Z}") ax1.axhline(eta_cu, color="k", ls=":", label="copper, 300 K") T_cross = (5.2e-5 * 15.0 / eta_cu) ** (2 / 3) ax1.axvline(T_cross, color="gray", lw=0.8) ax1.set_xlabel(r"$T_e$ [eV]") ax1.set_ylabel(r"$\eta_\parallel$ [$\Omega$ m]") ax1.set_title(r"Spitzer resistivity, $\ln\Lambda = 15$") ax1.legend(fontsize=8) print(f"Hydrogen plasma matches copper at T_e = {T_cross:.0f} eV") .. image-sg:: /api/gallery/plasma/collisions/images/sphx_glr_plot_01_spitzer_resistivity_001.png :alt: Spitzer resistivity, $\ln\Lambda = 15$ :srcset: /api/gallery/plasma/collisions/images/sphx_glr_plot_01_spitzer_resistivity_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Hydrogen plasma matches copper at T_e = 1282 eV .. GENERATED FROM PYTHON SOURCE LINES 59-64 Density drops out -------------------- :math:`\eta = 0.51\,m_e\nu_{ei}/(n_e e^2)` with Braginskii's :math:`\nu_{ei}\propto n_e`: across eight decades of density only the logarithm moves, by a factor of two. .. GENERATED FROM PYTHON SOURCE LINES 64-80 .. code-block:: Python densities = np.geomspace(1e14, 1e22, 9) lnL = coulomb_logarithm(densities, 100.0) eta_braginskii = 0.51 * ELECTRON_MASS * electron_ion_collision_frequency(densities, 100.0, lnL) / (densities * ELEMENTARY_CHARGE**2) eta_chen = spitzer_resistivity(100.0, lnL) ax2.semilogx(densities, eta_braginskii, "o", label=r"$0.51\,m_e\nu_{ei}/n e^2$ (Braginskii)") ax2.semilogx(densities, eta_chen, "-", label="Spitzer, Chen eq. 5.76") ax2.set_xlabel(r"$n_e$ [m$^{-3}$]") ax2.set_ylabel(r"$\eta_\parallel$ [$\Omega$ m]") ax2.set_title(r"$T_e = 100$ eV: only $\ln\Lambda(n)$ varies") ax2.legend(fontsize=8) fig.tight_layout() for n, L_, e1, e2 in zip(densities, lnL, eta_braginskii, eta_chen): print(f"n = {n:8.1e} lnL = {L_:5.2f} eta = {e2:.3e} (Braginskii {e1:.3e})") plt.show() .. rst-class:: sphx-glr-script-out .. code-block:: none n = 1.0e+14 lnL = 19.39 eta = 1.009e-06 (Braginskii 1.020e-06) n = 1.0e+15 lnL = 18.24 eta = 9.487e-07 (Braginskii 9.596e-07) n = 1.0e+16 lnL = 17.09 eta = 8.888e-07 (Braginskii 8.990e-07) n = 1.0e+17 lnL = 15.94 eta = 8.289e-07 (Braginskii 8.385e-07) n = 1.0e+18 lnL = 14.79 eta = 7.691e-07 (Braginskii 7.779e-07) n = 1.0e+19 lnL = 13.64 eta = 7.092e-07 (Braginskii 7.174e-07) n = 1.0e+20 lnL = 12.49 eta = 6.493e-07 (Braginskii 6.568e-07) n = 1.0e+21 lnL = 11.34 eta = 5.895e-07 (Braginskii 5.963e-07) n = 1.0e+22 lnL = 10.18 eta = 5.296e-07 (Braginskii 5.357e-07) .. GENERATED FROM PYTHON SOURCE LINES 81-85 Check ----- 100 eV hydrogen with ln(Lambda) = 10 has 5.2e-7 ohm m; eta ~ T^(-3/2); Spitzer's coefficient agrees with 0.51 m_e nu_ei / (n e^2) to 2%. .. GENERATED FROM PYTHON SOURCE LINES 85-89 .. code-block:: Python assert abs(spitzer_resistivity(100.0, 10.0) - 5.2e-7) < 1e-12 assert abs(spitzer_resistivity(400.0, 10.0) * 8 - spitzer_resistivity(100.0, 10.0)) < 1e-15 assert np.allclose(eta_braginskii, eta_chen, rtol=0.02) assert 500 < T_cross < 2000 .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.169 seconds) .. _sphx_glr_download_api_gallery_plasma_collisions_plot_01_spitzer_resistivity.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_01_spitzer_resistivity.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_01_spitzer_resistivity.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_01_spitzer_resistivity.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_