.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples_gallery/simple_pdes/cartesian_grid.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_examples_gallery_simple_pdes_cartesian_grid.py: Diffusion on a Cartesian grid ============================= This example shows how to solve the diffusion equation on a Cartesian grid. .. GENERATED FROM PYTHON SOURCE LINES 7-17 .. image-sg:: /examples_gallery/simple_pdes/images/sphx_glr_cartesian_grid_001.png :alt: cartesian grid :srcset: /examples_gallery/simple_pdes/images/sphx_glr_cartesian_grid_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none 0%| | 0/1.0 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: cartesian_grid.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: cartesian_grid.zip `