Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
run: pip install .

- name: Run tests with pytest
run: pytest -v --cov=pyro --nbval --ignore=docs --ignore=./pyro/multigrid/variable_coeff_elliptic.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations
run: pytest -v --cov=pyro --nbval --ignore=docs --ignore=./pyro/multigrid/derive_analytic_solutions.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations
3 changes: 1 addition & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ pyro: a python hydro code
burgers_basics
compressible_basics
compressible_compare
multigrid_basics
multigrid-examples.ipynb
multigrid
diffusion_basics
incompressible_basics
lowmach_basics
Expand Down
1 change: 1 addition & 0 deletions docs/source/multigrid-constant-coefficients.ipynb
1 change: 0 additions & 1 deletion docs/source/multigrid-examples.ipynb

This file was deleted.

1 change: 1 addition & 0 deletions docs/source/multigrid-general-linear.ipynb
1 change: 1 addition & 0 deletions docs/source/multigrid-variable-coeff.ipynb
10 changes: 10 additions & 0 deletions docs/source/multigrid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Multigrid Solvers
=================

.. toctree::

multigrid_basics
multigrid-constant-coefficients
multigrid-variable-coeff
multigrid-general-linear
multigrid_exercises
26 changes: 4 additions & 22 deletions docs/source/multigrid_basics.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Multigrid solvers
=================
Multigrid Class Overview
========================

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

Examples
--------
Simple Examples
---------------

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


Exercises
---------

Explorations
^^^^^^^^^^^^

* Try doing just smoothing, no multigrid. Show that it still converges
second order if you use enough iterations, but that the amount of
time needed to get a solution is much greater.

Extensions
^^^^^^^^^^

* Implement inhomogeneous dirichlet boundary conditions

* Add a different bottom solver to the multigrid algorithm

* Make the multigrid solver work for non-square domains
18 changes: 18 additions & 0 deletions docs/source/multigrid_exercises.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Exercises
=========

Explorations
------------

* Try doing just smoothing, no multigrid. Show that it still converges
second order if you use enough iterations, but that the amount of
time needed to get a solution is much greater.

Extensions
----------

* Add a different bottom solver to the multigrid algorithm

* Make the multigrid solver work for non-square domains

* Implement the full-multigrid algorithm instead of just V-cycles
Loading