Skip to content

Commit

Permalink
Split spatial convergence studies and update figures. (#1154)
Browse files Browse the repository at this point in the history
Co-authored-by: Ann Almgren <[email protected]>
  • Loading branch information
AMLattanzi and asalmgren authored Jul 6, 2023
1 parent 8d8f4ca commit 1891820
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions Docs/sphinx_doc/Verification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,41 @@ second through sixth order, including the WENO 3rd and 5th order stencils. In a
the time step was held fixed at :math:`\Delta t = 0.0000078125` to ensure that the spatial error dominates
the temporal error.

The second study, shown on the right below, tests the temporal accuracy by first setting :math:`\Delta t = 0.0005`
and :math:`\Delta x = 1/8`, then reducing both :math:`\Delta t` and :math:`\Delta x` by a factor of two, keeping
the ratio of :math:`\Delta t` to :math:`\Delta x` constant. These tests were run with the 6th order accurate
spatial stencil so that the temporal error dominated the spatial error. Here we recover the expected 3rd order
accuracy of the RK3 scheme.

.. |aconv| image:: figures/conv_plot_spatial.png
:width: 300

.. |bconv| image:: figures/conv_plot_temporal.png
.. |bconv| image:: figures/conv_plot_spatial_WENO.png
:width: 300

.. _fig:convergence
.. _fig:convergence_spatial
.. table:: Convergence studies of spatial and temporal error
.. table:: Convergence studies of spatial error

+-----------------------------------------------------+------------------------------------------------------+
| |aconv| | |bconv| |
+-----------------------------------------------------+------------------------------------------------------+
| Spatial convergence study | Temporal convergence study |
| Spatial convergence study (centered/upwind) | Temporal convergence study (WENO) |
+-----------------------------------------------------+------------------------------------------------------+

The second study tests the temporal accuracy by first setting :math:`\Delta t = 0.0005`
and :math:`\Delta x = 1/8`, then reducing both :math:`\Delta t` and :math:`\Delta x` by a factor of two, keeping
the ratio of :math:`\Delta t` to :math:`\Delta x` constant. These tests were run with the 6th order accurate
spatial stencil so that the temporal error dominated the spatial error. Here we recover the expected 3rd order
accuracy of the RK3 scheme.

.. |tconv| image:: figures/conv_plot_temporal.png
:width: 300

.. _fig:convergence_temporal
.. table:: Convergence studies of temporal error

+-----------------------------------------------------+
| |tconv| |
+-----------------------------------------------------+
| Temporal convergence study |
+-----------------------------------------------------+


Nonlinear Density Current
---------------------------
Expand Down
Binary file modified Docs/sphinx_doc/figures/conv_plot_spatial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Docs/sphinx_doc/figures/conv_plot_temporal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1891820

Please sign in to comment.