:orphan: Examples ======== These are example scripts using the `py-pde` package, which illustrates some of the most important features of the package. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_plot_vector_field_thumb.png :alt: :ref:`sphx_glr_examples_gallery_plot_vector_field.py` .. raw:: html
Plotting a vector field
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_plot_cylindrical_field_thumb.png :alt: :ref:`sphx_glr_examples_gallery_plot_cylindrical_field.py` .. raw:: html
Plotting a scalar field in cylindrical coordinates
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_laplace_eq_2d_thumb.png :alt: :ref:`sphx_glr_examples_gallery_laplace_eq_2d.py` .. raw:: html
Solving Laplace's equation in 2d
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_poisson_eq_1d_thumb.png :alt: :ref:`sphx_glr_examples_gallery_poisson_eq_1d.py` .. raw:: html
Solving Poisson's equation in 1d
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_simple_thumb.png :alt: :ref:`sphx_glr_examples_gallery_simple.py` .. raw:: html
Simple diffusion equation
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_custom_expression_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_custom_expression.py` .. raw:: html
Kuramoto-Sivashinsky - Using PDE class
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_spherical_grid_thumb.png :alt: :ref:`sphx_glr_examples_gallery_spherical_grid.py` .. raw:: html
Spherically symmetric PDE
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_cartesian_grid_thumb.png :alt: :ref:`sphx_glr_examples_gallery_cartesian_grid.py` .. raw:: html
Diffusion on a Cartesian grid
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_stochastic_simulation_thumb.png :alt: :ref:`sphx_glr_examples_gallery_stochastic_simulation.py` .. raw:: html
Stochastic simulation
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_boundary_conditions_thumb.png :alt: :ref:`sphx_glr_examples_gallery_boundary_conditions.py` .. raw:: html
Setting boundary conditions
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_time_dependent_bcs_thumb.png :alt: :ref:`sphx_glr_examples_gallery_time_dependent_bcs.py` .. raw:: html
Time-dependent boundary conditions
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_1d_expression_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_1d_expression.py` .. raw:: html
1D problem - Using PDE class
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_heterogeneous_bcs_thumb.png :alt: :ref:`sphx_glr_examples_gallery_heterogeneous_bcs.py` .. raw:: html
Heterogeneous boundary conditions
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_storages_thumb.png :alt: :ref:`sphx_glr_examples_gallery_storages.py` .. raw:: html
Storage examples
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_brusselator_expression_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_brusselator_expression.py` .. raw:: html
Brusselator - Using the PDE class
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_heterogeneous_diffusion_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_heterogeneous_diffusion.py` .. raw:: html
Diffusion equation with spatial dependence
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_trajectory_io_thumb.png :alt: :ref:`sphx_glr_examples_gallery_trajectory_io.py` .. raw:: html
Writing and reading trajectory data
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_trackers_thumb.png :alt: :ref:`sphx_glr_examples_gallery_trackers.py` .. raw:: html
Using simulation trackers
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_schroedinger_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_schroedinger.py` .. raw:: html
Schrödinger's Equation
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_custom_class_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_custom_class.py` .. raw:: html
Kuramoto-Sivashinsky - Using custom class
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_coupled_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_coupled.py` .. raw:: html
Custom Class for coupled PDEs
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_1d_class_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_1d_class.py` .. raw:: html
1D problem - Using custom class
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_analyze_scalar_field_thumb.png :alt: :ref:`sphx_glr_examples_gallery_analyze_scalar_field.py` .. raw:: html
Visualizing a scalar field
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_custom_noise_thumb.png :alt: :ref:`sphx_glr_examples_gallery_custom_noise.py` .. raw:: html
Custom noise
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_custom_numba_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_custom_numba.py` .. raw:: html
Kuramoto-Sivashinsky - Compiled methods
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_solver_comparison_thumb.png :alt: :ref:`sphx_glr_examples_gallery_solver_comparison.py` .. raw:: html
Solver comparison
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_post_step_hook_thumb.png :alt: :ref:`sphx_glr_examples_gallery_post_step_hook.py` .. raw:: html
Post-step hook function
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_sir_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_sir.py` .. raw:: html
Custom PDE class: SIR model
.. raw:: html
.. only:: html .. image:: /examples_gallery/images/thumb/sphx_glr_pde_brusselator_class_thumb.png :alt: :ref:`sphx_glr_examples_gallery_pde_brusselator_class.py` .. raw:: html
Brusselator - Using custom class
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /examples_gallery/plot_vector_field /examples_gallery/plot_cylindrical_field /examples_gallery/laplace_eq_2d /examples_gallery/poisson_eq_1d /examples_gallery/simple /examples_gallery/pde_custom_expression /examples_gallery/spherical_grid /examples_gallery/cartesian_grid /examples_gallery/stochastic_simulation /examples_gallery/boundary_conditions /examples_gallery/time_dependent_bcs /examples_gallery/pde_1d_expression /examples_gallery/heterogeneous_bcs /examples_gallery/storages /examples_gallery/pde_brusselator_expression /examples_gallery/pde_heterogeneous_diffusion /examples_gallery/trajectory_io /examples_gallery/trackers /examples_gallery/pde_schroedinger /examples_gallery/pde_custom_class /examples_gallery/pde_coupled /examples_gallery/pde_1d_class /examples_gallery/analyze_scalar_field /examples_gallery/custom_noise /examples_gallery/pde_custom_numba /examples_gallery/solver_comparison /examples_gallery/post_step_hook /examples_gallery/pde_sir /examples_gallery/pde_brusselator_class .. 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_gallery_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: examples_gallery_jupyter.zip `