Skip to content

Commit 5315369

Browse files
authored
Minor docs improvements (#172)
* Add full citations for papers referenced in incompressible examples * Fix some broken links in the README * Lots of spelling fixes from codespell
1 parent cc7d883 commit 5315369

34 files changed

Lines changed: 111 additions & 67 deletions

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ https://python-hydro.github.io/pyro2
8383
```python
8484
import matplotlib.pyplot
8585
print matplotlib.pyplot.get_backend()
86-
```
86+
```
8787
8888
- If you want to run the unit tests, you need to have `pytest` installed.
8989
9090
- Finally, you can run a quick test of the advection solver:
9191
9292
```
93-
pyro-sim.py advection smooth inputs.smooth
93+
pyro_sim.py advection smooth inputs.smooth
9494
```
9595
9696
you should see a graphing window pop up with a smooth pulse
@@ -102,13 +102,13 @@ https://python-hydro.github.io/pyro2
102102
The main data structures that describe the grid and the data the lives
103103
on the grid are described in a jupyter notebook:
104104
105-
https://github.com/python-hydro/pyro2/blob/main/mesh/mesh-examples.ipynb
105+
https://github.com/python-hydro/pyro2/blob/main/pyro/mesh/mesh-examples.ipynb
106106
107107
108108
Many of the methods here rely on multigrid. The multigrid solver is
109109
demonstrated in the juputer notebook:
110110
111-
https://github.com/python-hydro/pyro2/blob/main/multigrid/multigrid-examples.ipynb
111+
https://github.com/python-hydro/pyro2/blob/main/pyro/multigrid/multigrid-examples.ipynb
112112
113113
114114
## Solvers
@@ -136,16 +136,16 @@ pyro provides the following solvers (all in 2-d):
136136
137137
- `compressible`: a second-order unsplit solver for the Euler
138138
equations of compressible hydrodynamics. This uses characteristic
139-
tracing and corner coupling for the prediction of the interface
140-
states and a 2-shock or HLLC approximate Riemann solver.
139+
tracing and corner coupling for the prediction of the interface
140+
states and a 2-shock or HLLC approximate Riemann solver.
141141
142142
- `compressible_fv4`: a fourth-order accurate finite-volume compressible
143143
hydro solver that uses RK4 time integration. This is built from the
144144
method of McCourquodale and Colella (2011).
145145
146146
- `compressible_rk`: a second-order unsplit solver for Euler
147147
equations that uses Runge-Kutta integration instead of
148-
characteristic tracing.
148+
characteristic tracing.
149149
150150
- `compressible_sdc`: a fourth-order compressible solver,
151151
using spectral-deferred correction (SDC) for the time integration.

docs/source/_defaults.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
+----------------------------------+----------------+----------------------------------------------------+
3636
| option | value | description |
3737
+==================================+================+====================================================+
38-
| xmin | ``0.0`` | domain minumum x-coordinate |
38+
| xmin | ``0.0`` | domain minimum x-coordinate |
3939
+----------------------------------+----------------+----------------------------------------------------+
4040
| xmax | ``1.0`` | domain maximum x-coordinate |
4141
+----------------------------------+----------------+----------------------------------------------------+

docs/source/ack.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Bell, and Andy Nonaka.
3737
History
3838
=======
3939

40-
The original pyro code was written in 2003-4 to help developmer
40+
The original pyro code was written in 2003-4 to help developer
4141
Zingale understand these methods for himself. It was originally written
4242
using the Numeric array package and handwritten C extensions for the
4343
compute-intensive kernels. It was ported to numarray when that

docs/source/advection_basics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ compressible hydrodynamics. Chapter 4 of the notes summarizes the
1111
numerical methods for advection that we implement in pyro.
1212

1313
pyro has several solvers for linear advection, which solve the equation
14-
with different spatial and temporal intergration schemes.
14+
with different spatial and temporal integration schemes.
1515

1616
``advection`` solver
1717
--------------------
@@ -58,7 +58,7 @@ velocity field. This is used to implement the slotted disk problem
5858
from :cite:`ZALESAK1979335`. The basic method is similar to the
5959
algorithm used by the main ``advection`` solver.
6060

61-
The paramters for this solver are:
61+
The parameters for this solver are:
6262

6363
.. include:: advection_nonuniform_defaults.inc
6464

docs/source/advection_rk_defaults.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
+----------------------------------+----------------+----------------------------------------------------+
1010
| limiter | ``2`` | limiter (0 = none, 1 = 2nd order, 2 = 4th order) |
1111
+----------------------------------+----------------+----------------------------------------------------+
12-
| temporal_method | ``RK4`` | integration method (see mesh/integrators/.py) |
12+
| temporal_method | ``RK4`` | integration method (see mesh/integrators.py) |
1313
+----------------------------------+----------------+----------------------------------------------------+
1414

1515
* section: [driver]

docs/source/advection_weno_defaults.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
+----------------------------------+----------------+----------------------------------------------------+
1313
| weno_order | ``3`` | k in WENO scheme |
1414
+----------------------------------+----------------+----------------------------------------------------+
15-
| temporal_method | ``RK4`` | integration method (see mesh/integrators/.py) |
15+
| temporal_method | ``RK4`` | integration method (see mesh/integrators.py) |
1616
+----------------------------------+----------------+----------------------------------------------------+
1717

1818
* section: [driver]

docs/source/analysis.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ with their data.
2626
resolutions (one a factor of N-times, (default is 2 times or ``N=2``) finer
2727
than the other). It coarsens the finer data and then computes the
2828
norm of the difference. The default variable being compared is
29-
density, ``var_name=density`` by default. but it takes arbitary variable name as input.
29+
density, but a different variable can be selected with the
30+
``var_name`` argument.
3031
This is used to test the convergence of solvers.
3132

3233
usage: ``./convergence.py fine_file coarse_file var_name N``
@@ -47,7 +48,7 @@ with their data.
4748
when there is no analytical solutions.
4849

4950
usage: ``./convergence_plot.py files* -o out -n order -r resolution``
50-
51+
5152
* ``dam_compare.py``: this takes an output file from the
5253
shallow water dam break problem and plots a slice through the domain
5354
together with the analytic solution (calculated in the script).
@@ -83,7 +84,7 @@ with their data.
8384

8485
* ``smooth_error.py``: this takes an output file from the advection
8586
solver's smooth problem and compares to the analytic solution,
86-
outputing the L2 norm of the error.
87+
outputting the L2 norm of the error.
8788

8889
usage: ``./smooth_error.py file``
8990

docs/source/compressible_defaults.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
+----------------------------------+----------------+----------------------------------------------------+
1212
| delta | ``0.33`` | flattening delta parameter |
1313
+----------------------------------+----------------+----------------------------------------------------+
14-
| cvisc | ``0.1`` | artifical viscosity coefficient |
14+
| cvisc | ``0.1`` | artificial viscosity coefficient |
1515
+----------------------------------+----------------+----------------------------------------------------+
1616
| limiter | ``2`` | limiter (0 = none, 1 = 2nd order, 2 = 4th order) |
1717
+----------------------------------+----------------+----------------------------------------------------+

docs/source/compressible_fv4_defaults.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
+----------------------------------+----------------+----------------------------------------------------+
1212
| delta | ``0.33`` | flattening delta parameter |
1313
+----------------------------------+----------------+----------------------------------------------------+
14-
| cvisc | ``0.1`` | artifical viscosity coefficient |
14+
| cvisc | ``0.1`` | artificial viscosity coefficient |
1515
+----------------------------------+----------------+----------------------------------------------------+
1616
| limiter | ``2`` | limiter (0 = none, 1 = 2nd order, 2 = 4th order) |
1717
+----------------------------------+----------------+----------------------------------------------------+

docs/source/compressible_react_defaults.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
+----------------------------------+----------------+----------------------------------------------------+
1212
| delta | ``0.33`` | flattening delta parameter |
1313
+----------------------------------+----------------+----------------------------------------------------+
14-
| cvisc | ``0.1`` | artifical viscosity coefficient |
14+
| cvisc | ``0.1`` | artificial viscosity coefficient |
1515
+----------------------------------+----------------+----------------------------------------------------+
1616
| limiter | ``2`` | limiter (0 = none, 1 = 2nd order, 2 = 4th order) |
1717
+----------------------------------+----------------+----------------------------------------------------+

0 commit comments

Comments
 (0)