Skip to content

Commit e220287

Browse files
authored
clean up the multigrid docs (#158)
This spreads them out across several notebooks and also cleans up the display.
1 parent 115a86d commit e220287

14 files changed

Lines changed: 2776 additions & 1714 deletions

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
run: pip install .
4545

4646
- name: Run tests with pytest
47-
run: pytest -v --cov=pyro --nbval --ignore=docs --ignore=./pyro/multigrid/variable_coeff_elliptic.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations
47+
run: pytest -v --cov=pyro --nbval --ignore=docs --ignore=./pyro/multigrid/derive_analytic_solutions.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations

docs/source/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ pyro: a python hydro code
3333
burgers_basics
3434
compressible_basics
3535
compressible_compare
36-
multigrid_basics
37-
multigrid-examples.ipynb
36+
multigrid
3837
diffusion_basics
3938
incompressible_basics
4039
lowmach_basics
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../pyro/multigrid/multigrid-constant-coefficients.ipynb

docs/source/multigrid-examples.ipynb

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../pyro/multigrid/multigrid-general-linear.ipynb
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../pyro/multigrid/multigrid-variable-coeff.ipynb

docs/source/multigrid.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Multigrid Solvers
2+
=================
3+
4+
.. toctree::
5+
6+
multigrid_basics
7+
multigrid-constant-coefficients
8+
multigrid-variable-coeff
9+
multigrid-general-linear
10+
multigrid_exercises

docs/source/multigrid_basics.rst

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Multigrid solvers
2-
=================
1+
Multigrid Class Overview
2+
========================
33

44
pyro solves elliptic problems (like Laplace's equation or Poisson's
55
equation) through multigrid. This accelerates the convergence of
@@ -30,8 +30,8 @@ there is no time-dependence in pure elliptic problems. Instead, there
3030
are a few scripts in the multigrid/ subdirectory that demonstrate its
3131
use.
3232

33-
Examples
34-
--------
33+
Simple Examples
34+
---------------
3535

3636
multigrid test
3737
^^^^^^^^^^^^^^
@@ -123,21 +123,3 @@ results are shown below:
123123
Left is the original u velocity, middle is the modified field after adding the gradient of the scalar, and right is the recovered field.
124124

125125

126-
Exercises
127-
---------
128-
129-
Explorations
130-
^^^^^^^^^^^^
131-
132-
* Try doing just smoothing, no multigrid. Show that it still converges
133-
second order if you use enough iterations, but that the amount of
134-
time needed to get a solution is much greater.
135-
136-
Extensions
137-
^^^^^^^^^^
138-
139-
* Implement inhomogeneous dirichlet boundary conditions
140-
141-
* Add a different bottom solver to the multigrid algorithm
142-
143-
* Make the multigrid solver work for non-square domains
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Exercises
2+
=========
3+
4+
Explorations
5+
------------
6+
7+
* Try doing just smoothing, no multigrid. Show that it still converges
8+
second order if you use enough iterations, but that the amount of
9+
time needed to get a solution is much greater.
10+
11+
Extensions
12+
----------
13+
14+
* Add a different bottom solver to the multigrid algorithm
15+
16+
* Make the multigrid solver work for non-square domains
17+
18+
* Implement the full-multigrid algorithm instead of just V-cycles
File renamed without changes.

0 commit comments

Comments
 (0)