:orphan:
Inner Products
==============
Numerical solutions to differential equations frequently make use
of the **weak formulation**. That is, we take the inner product
of each PDE with some test function. There are many different ways to
evaluate inner products numerically; i.e. trapezoidal rule, midpoint
rule, or higher-order approximations. A simple method for evaluating
inner products on a numerical grid is to apply the midpoint rule;
which is used by the *discretize* package.
Here, we demonstrate how to approximate various classes of inner
products numerically. If this is known, the user will be capable
of properly discretizing any term in a problem specific PDE.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /tutorials/inner_products/images/thumb/sphx_glr_1_basic_thumb.png
:alt:
:ref:`sphx_glr_tutorials_inner_products_1_basic.py`
.. raw:: html
Basic Inner Products
.. raw:: html
.. only:: html
.. image:: /tutorials/inner_products/images/thumb/sphx_glr_2_physical_properties_thumb.png
:alt:
:ref:`sphx_glr_tutorials_inner_products_2_physical_properties.py`
.. raw:: html
Constitutive Relations
.. raw:: html
.. only:: html
.. image:: /tutorials/inner_products/images/thumb/sphx_glr_3_calculus_thumb.png
:alt:
:ref:`sphx_glr_tutorials_inner_products_3_calculus.py`
.. raw:: html
Differential Operators
.. raw:: html
.. only:: html
.. image:: /tutorials/inner_products/images/thumb/sphx_glr_4_advanced_thumb.png
:alt:
:ref:`sphx_glr_tutorials_inner_products_4_advanced.py`
.. raw:: html
Advanced Examples
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/tutorials/inner_products/1_basic
/tutorials/inner_products/2_physical_properties
/tutorials/inner_products/3_calculus
/tutorials/inner_products/4_advanced
.. 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: inner_products_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: inner_products_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery `_