You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add available problems and their runtime parameters to the docs (#269)
this adds a script to the build process to generate the problem definitions.
This also fixes a bunch of docs errors and makes the solver pages more consistent
Copy file name to clipboardExpand all lines: docs/source/burgers_basics.rst
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,13 @@
1
+
*****************
1
2
Burgers' Equation
2
-
==================
3
+
*****************
3
4
4
-
Burgers' Equation is a nonlinear hyperbolic equation. It has the same form as the advection equation, except that the quantity being advected is the velocity itself.
5
+
Burgers' Equation is a nonlinear hyperbolic equation. It has the same
6
+
form as the advection equation, except that the quantity being
7
+
advected is the velocity itself.
5
8
6
9
``Inviscid Burgers``
7
-
--------------------------------
10
+
====================
8
11
9
12
A 2D inviscid Burgers' Equation has the following form:
10
13
@@ -29,14 +32,25 @@ The parameters for this solver are:
29
32
30
33
.. include:: burgers_defaults.inc
31
34
35
+
.. include:: burgers_problems.inc
36
+
37
+
Example
38
+
-------
32
39
33
40
.. image:: burgers.png
34
41
:align:center
35
42
36
-
The figure above is generated using ``burgers/problems/test.py``, which is used to test the validity of the solver. Bottom-left of the domain has a higher velocity than the top-right domain. With :math:`u_{i,j}=v_{i,j}`, the wave travels diagonally to the top-right with a constant velocity that is equal to the shock speed. ``burgers/problem/verify.py`` can be used to calculate the wave speed using outputs from ``test.py`` and compare to the theoretical shock speed.
43
+
The figure above is generated using ``burgers/problems/test.py``,
44
+
which is used to test the validity of the solver. Bottom-left of the
45
+
domain has a higher velocity than the top-right domain. With
46
+
:math:`u_{i,j}=v_{i,j}`, the wave travels diagonally to the top-right
47
+
with a constant velocity that is equal to the shock
48
+
speed. ``burgers/problem/verify.py`` can be used to calculate the wave
49
+
speed using outputs from ``test.py`` and compare to the theoretical
50
+
shock speed.
37
51
38
52
``Viscous Burgers``
39
-
--------------------------------
53
+
===================
40
54
41
55
A 2D viscous Burgers' Equation has the following form:
42
56
@@ -60,6 +74,10 @@ The parameters for this solver are:
0 commit comments