.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples_gallery/pde_coupled.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_pde_coupled.py: Custom Class for coupled PDEs ============================= This example shows how to solve a set of coupled PDEs, the spatially coupled `FitzHugh–Nagumo model `_, which is a simple model for the excitable dynamics of coupled Neurons: .. math:: \partial_t u &= \nabla^2 u + u (u - \alpha) (1 - u) + w \\ \partial_t w &= \epsilon u Here, :math:`\alpha` denotes the external stimulus and :math:`\epsilon` defines the recovery time scale. We implement this as a custom PDE class below. .. GENERATED FROM PYTHON SOURCE LINES 18-48 .. image-sg:: /examples_gallery/images/sphx_glr_pde_coupled_001.png :alt: pde coupled :srcset: /examples_gallery/images/sphx_glr_pde_coupled_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none 0%| | 0/100.0 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: pde_coupled.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: pde_coupled.zip `