:orphan: .. _examples-index: ======== Examples ======== Typical examples of application of the package are presented here. You can run them live in your browser on `mybinder.org `_. .. only:: html .. include:: ../_assets/binder_badge.rst .. raw:: html

An example on how to use various backends and GPU acceleration can be run on Google colab .. only:: html .. image:: https://img.shields.io/badge/open%20in-colab-blue?color=d7a44c&logo=GoogleColab&logoColor=d7a44c&style=for-the-badge :target: https://colab.research.google.com/gist/benvial/5d87e109a9a31904e67e62c77db79a03/nannos.ipynb :alt: colab .. raw:: html

.. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Basic examples ============== Getting started. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_conversion_eff_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_conversion_eff.py` .. raw:: html
Polarization conversion
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_tangent_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_tangent.py` .. raw:: html
Tangent field
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_1d_grating_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_1d_grating.py` .. raw:: html
One dimensional grating
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_double_phc_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_double_phc.py` .. raw:: html
Two photonic crystal slabs
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_ellipse_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_ellipse.py` .. raw:: html
Elliptical holes
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_hole_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_hole.py` .. raw:: html
Photonic crystal slab
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_square_patch_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_square_patch.py` .. raw:: html
Dielectric patch array
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_stress_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_stress.py` .. raw:: html
Stress tensor
.. raw:: html
.. only:: html .. image:: /examples/basic/images/thumb/sphx_glr_plot_convergence_thumb.png :alt: :ref:`sphx_glr_examples_basic_plot_convergence.py` .. raw:: html
Convergence
.. thumbnail-parent-div-close .. raw:: html
Benchmarks ============= Comparing the performances of computational backends using CPU and GPU. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/benchmarks/images/thumb/sphx_glr_plot_modal_thumb.png :alt: :ref:`sphx_glr_examples_benchmarks_plot_modal.py` .. raw:: html
Benchmark Modal
.. raw:: html
.. only:: html .. image:: /examples/benchmarks/images/thumb/sphx_glr_plot_kaggle_thumb.png :alt: :ref:`sphx_glr_examples_benchmarks_plot_kaggle.py` .. raw:: html
Benchmark
.. raw:: html
.. only:: html .. image:: /examples/benchmarks/images/thumb/sphx_glr_plot_benchmarks_thumb.png :alt: :ref:`sphx_glr_examples_benchmarks_plot_benchmarks.py` .. raw:: html
Backends comparison
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /examples/basic/index.rst /examples/benchmarks/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_