.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gen_examples/ionic/plot_static_structure_factors_Arkhipov_Devletov.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_gen_examples_ionic_plot_static_structure_factors_Arkhipov_Devletov.py: Plot static structure Factors in the Approximation by Arkhipov and Devletov =========================================================================== This scripts plots :math:`S_{ee}`, :math:`S_{ei}`, and :math:`S_{ii}` for Carbon with an ionization of 4.5 at :math:`T = 13\text{eV}` and :math:`n_e = 1\times 10^{22} 1 / \text{cm}^3`, in the approach presented by :cite:`Arkhipov.1998`. .. GENERATED FROM PYTHON SOURCE LINES 10-56 .. image-sg:: /gen_examples/ionic/images/sphx_glr_plot_static_structure_factors_Arkhipov_Devletov_001.svg :alt: plot static structure factors Arkhipov Devletov :srcset: /gen_examples/ionic/images/sphx_glr_plot_static_structure_factors_Arkhipov_Devletov_001.svg :class: sphx-glr-single-img .. code-block:: Python import jax.numpy as jnp import matplotlib.pyplot as plt import jaxrts ureg = jaxrts.units.ureg plt.style.use("science") k = jnp.linspace(0.0, 6, 200) / (1 * ureg.angstrom) n_e = 1e22 / ureg.centimeter**3 T_e = 13.0 * ureg.electron_volts / ureg.k_B T_cf = jaxrts.static_structure_factors.T_cf_Greg(T_e, n_e) Z_f = 4.5 m_i = 12 * ureg.atomic_mass_constant See = jaxrts.static_structure_factors.S_ee_AD(k, T_cf, T_cf, n_e, m_i, Z_f) Sei = jaxrts.static_structure_factors.S_ei_AD(k, T_cf, T_cf, n_e, m_i, Z_f) Sii = jaxrts.static_structure_factors.S_ii_AD(k, T_cf, T_cf, n_e, m_i, Z_f) plt.plot( k.m_as(1 / ureg.angstrom), See.m_as(ureg.dimensionless), label="$S_{ee}$", color="C0", ) plt.plot( k.m_as(1 / ureg.angstrom), Sii.m_as(ureg.dimensionless), label="$S_{ii}$", color="C1", ) plt.plot( k.m_as(1 / ureg.angstrom), Sei.m_as(ureg.dimensionless), label="$S_{ei}$", color="C2", ) plt.xlabel(r"$k$ [1/$\AA$]") plt.ylabel(r"Static structure factor [arb. units]") plt.legend() plt.tight_layout() plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.952 seconds) .. _sphx_glr_download_gen_examples_ionic_plot_static_structure_factors_Arkhipov_Devletov.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_static_structure_factors_Arkhipov_Devletov.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_static_structure_factors_Arkhipov_Devletov.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_