.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples_gallery/advanced_pdes/pde_custom_class.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_advanced_pdes_pde_custom_class.py: Kuramoto-Sivashinsky - Using custom class ========================================= This example implements a scalar PDE using a custom class. We here consider the `Kuramoto–Sivashinsky equation `_, which for instance describes the dynamics of flame fronts: .. math:: \partial_t u = -\frac12 |\nabla u|^2 - \nabla^2 u - \nabla^4 u .. GENERATED FROM PYTHON SOURCE LINES 13-34 .. image-sg:: /examples_gallery/advanced_pdes/images/sphx_glr_pde_custom_class_001.png :alt: pde custom class :srcset: /examples_gallery/advanced_pdes/images/sphx_glr_pde_custom_class_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none 0%| | 0/10.0 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: pde_custom_class.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: pde_custom_class.zip `