.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/DCF/plot_DCF_fields.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_gallery_DCF_plot_DCF_fields.py: Mode fields =========== .. GENERATED FROM PYTHON SOURCE LINES 8-10 Imports ~~~~~~~ .. GENERATED FROM PYTHON SOURCE LINES 10-14 .. code-block:: Python from PyFiberModes import HE11 from PyFiberModes.fiber import load_fiber from PyFiberModes.field import Field .. GENERATED FROM PYTHON SOURCE LINES 15-18 Loading the double clad fiber [DCF] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here we load a fiber from MPSTools library and define the wavelength .. GENERATED FROM PYTHON SOURCE LINES 18-20 .. code-block:: Python fiber = load_fiber(fiber_name='SMF28', wavelength=1310e-9) .. GENERATED FROM PYTHON SOURCE LINES 21-22 Preparing the figure .. GENERATED FROM PYTHON SOURCE LINES 22-36 .. code-block:: Python field = Field( fiber=fiber, mode=HE11, limit=10e-6, n_point=50 ) figure = field.plot(plot_type=['Ex', 'Ey', 'Ez', 'Er', 'Ephi']) figure.show() # - .. image-sg:: /gallery/DCF/images/sphx_glr_plot_DCF_fields_001.png :alt: plot DCF fields :srcset: /gallery/DCF/images/sphx_glr_plot_DCF_fields_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.287 seconds) .. _sphx_glr_download_gallery_DCF_plot_DCF_fields.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_DCF_fields.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_DCF_fields.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_