Skip to content

Commit f0f089b

Browse files
committed
Merge branch 'polar-coords' of https://github.com/ssagynbayeva/pyro2 into polar-coords
2 parents c377f3b + a8f9b65 commit f0f089b

27 files changed

+81
-106
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ https://python-hydro.github.io/pyro2
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
@@ -178,18 +178,18 @@ that we describe here. Note: some problems write a report at the end
178178
of the simulation specifying the analysis routines that can be used
179179
with their data.
180180
181-
- `compare.py`: this takes two simulation output files as input and
182-
compares zone-by-zone for exact agreement. This is used as part of
183-
the regression testing.
181+
- `pyro/util/compare.py`: this takes two simulation output files as
182+
input and compares zone-by-zone for exact agreement. This is used as
183+
part of the regression testing.
184184
185185
usage: `./compare.py file1 file2`
186186
187-
- `plot.py`: this takes the an output file as input and plots the
187+
- `pyro/plot.py`: this takes the an output file as input and plots the
188188
data using the solver's dovis method.
189189
190190
usage: `./plot.py file`
191191
192-
- `analysis/`
192+
- `pyro/analysis/`
193193
194194
* `dam_compare.py`: this takes an output file from the
195195
shallow water dam break problem and plots a slice through the domain
@@ -251,15 +251,15 @@ with their data.
251251
252252
## Regression and unit testing
253253
254-
The `test.py` script will run several of the problems (as well as some
255-
stand-alone multigrid tests) and compare the solution to stored
254+
The `pyro/test.py` script will run several of the problems (as well as
255+
some stand-alone multigrid tests) and compare the solution to stored
256256
benchmarks (in each solver's `tests/` subdirectory). The return value
257257
of the script is the number of tests that failed.
258258
259259
Unit tests are controlled by pytest and can be run simply via
260260
261261
```
262-
pytest .
262+
pytest pyro
263263
```
264264
265265
## Acknowledgements

docs/source/advection_basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ disagreement is our numerical error. This is run as:
120120

121121
.. prompt:: bash
122122

123-
./pyro_sim.py advection smooth inputs.smooth
123+
pyro_sim.py advection smooth inputs.smooth
124124

125125

126126
.. raw:: html

docs/source/compressible_basics.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ Because it is one-dimensional, we run it in narrow domains in the x- or y-direct
102102

103103
.. prompt:: bash
104104

105-
./pyro_sim.py compressible sod inputs.sod.x
106-
./pyro_sim.py compressible sod inputs.sod.y
105+
pyro_sim.py compressible sod inputs.sod.x
106+
pyro_sim.py compressible sod inputs.sod.y
107107

108108
A simple script, ``sod_compare.py`` in ``analysis/`` will read a pyro output
109109
file and plot the solution over the exact Sod solution. Below we see
@@ -128,7 +128,7 @@ is run as:
128128

129129
.. prompt:: bash
130130

131-
./pyro_sim.py compressible sedov inputs.sedov
131+
pyro_sim.py compressible sedov inputs.sedov
132132

133133
The video below shows the output from a 128 x 128 grid with the energy
134134
put in a radius of 0.0125 surrounding the center of the domain. A
@@ -165,7 +165,7 @@ online by Pawel Artymowicz). It is run as:
165165

166166
.. prompt:: bash
167167

168-
./pyro_sim.py compressible quad inputs.quad
168+
pyro_sim.py compressible quad inputs.quad
169169

170170
.. image:: quad.png
171171
:align: center
@@ -181,7 +181,7 @@ escape the domain. It is run as:
181181

182182
.. prompt:: bash
183183

184-
./pyro_sim.py compressible rt inputs.rt
184+
pyro_sim.py compressible rt inputs.rt
185185

186186
.. raw:: html
187187

@@ -199,7 +199,7 @@ watches it buoyantly rise and roll up. This is run as:
199199

200200
.. prompt:: bash
201201

202-
./pyro_sim.py compressible bubble inputs.bubble
202+
pyro_sim.py compressible bubble inputs.bubble
203203

204204

205205
.. image:: bubble.png

docs/source/compressible_compare.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ The image below shows the KH problem initialized with McNally's test. It ran on
1212

1313
.. prompt:: bash
1414

15-
./pyro_sim.py compressible kh inputs.kh kh.vbulk=0
16-
./pyro_sim.py compressible_rk kh inputs.kh kh.vbulk=0
17-
./pyro_sim.py compressible_fv4 kh inputs.kh kh.vbulk=0
18-
./pyro_sim.py compressible_sdc kh inputs.kh kh.vbulk=0
15+
pyro_sim.py compressible kh inputs.kh kh.vbulk=0
16+
pyro_sim.py compressible_rk kh inputs.kh kh.vbulk=0
17+
pyro_sim.py compressible_fv4 kh inputs.kh kh.vbulk=0
18+
pyro_sim.py compressible_sdc kh inputs.kh kh.vbulk=0
1919

2020
.. image:: ./solver_comparisons/kh.png
2121
:align: center
@@ -30,10 +30,10 @@ The Sedov problem ran on a 128 x 128 grid, with gamma = 1.4, and until t = 0.1,
3030

3131
.. prompt:: bash
3232

33-
./pyro_sim.py compressible sedov inputs.sedov
34-
./pyro_sim.py compressible_rk sedov inputs.sedov
35-
./pyro_sim.py compressible_fv4 sedov inputs.sedov
36-
./pyro_sim.py compressible_sdc sedov inputs.sedov
33+
pyro_sim.py compressible sedov inputs.sedov
34+
pyro_sim.py compressible_rk sedov inputs.sedov
35+
pyro_sim.py compressible_fv4 sedov inputs.sedov
36+
pyro_sim.py compressible_sdc sedov inputs.sedov
3737

3838
.. image:: ./solver_comparisons/sedov.png
3939
:align: center
@@ -53,10 +53,10 @@ The quad problem ran on a 256 x 256 grid until t = 0.8, which can be run as:
5353

5454
.. prompt:: bash
5555

56-
./pyro_sim.py compressible quad inputs.quad
57-
./pyro_sim.py compressible_rk quad inputs.quad
58-
./pyro_sim.py compressible_fv4 quad inputs.quad
59-
./pyro_sim.py compressible_sdc quad inputs.quad
56+
pyro_sim.py compressible quad inputs.quad
57+
pyro_sim.py compressible_rk quad inputs.quad
58+
pyro_sim.py compressible_fv4 quad inputs.quad
59+
pyro_sim.py compressible_sdc quad inputs.quad
6060

6161
.. image:: ./solver_comparisons/quad.png
6262
:align: center
@@ -77,10 +77,10 @@ The bubble problem ran on a 128 x 256 grid until t = 3.0, which can be run as:
7777

7878
.. prompt:: bash
7979

80-
./pyro_sim.py compressible bubble inputs.bubble
81-
./pyro_sim.py compressible_rk bubble inputs.bubble
82-
./pyro_sim.py compressible_fv4 bubble inputs.bubble
83-
./pyro_sim.py compressible_sdc bubble inputs.bubble
80+
pyro_sim.py compressible bubble inputs.bubble
81+
pyro_sim.py compressible_rk bubble inputs.bubble
82+
pyro_sim.py compressible_fv4 bubble inputs.bubble
83+
pyro_sim.py compressible_sdc bubble inputs.bubble
8484

8585
.. image:: ./solver_comparisons/bubble.png
8686
:align: center
@@ -101,10 +101,10 @@ The Rayleigh-Taylor problem ran on a 64 x 192 grid until t = 3.0, which can be r
101101

102102
.. prompt:: bash
103103

104-
./pyro_sim.py compressible rt inputs.rt
105-
./pyro_sim.py compressible_rk rt inputs.rt
106-
./pyro_sim.py compressible_fv4 rt inputs.rt
107-
./pyro_sim.py compressible_sdc rt inputs.rt
104+
pyro_sim.py compressible rt inputs.rt
105+
pyro_sim.py compressible_rk rt inputs.rt
106+
pyro_sim.py compressible_fv4 rt inputs.rt
107+
pyro_sim.py compressible_sdc rt inputs.rt
108108

109109
.. image:: ./solver_comparisons/rt.png
110110
:align: center

docs/source/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
#
2020
import os
2121
import sys
22-
23-
import sphinx_rtd_theme
2422
from importlib.metadata import version as importlib_version
23+
2524
sys.path.insert(0, os.path.abspath('../../'))
2625

2726

@@ -46,6 +45,7 @@
4645
'sphinx.ext.graphviz',
4746
'sphinx_copybutton',
4847
'sphinx-prompt',
48+
'sphinx_rtd_theme',
4949
'IPython.sphinxext.ipython_console_highlighting',
5050
'sphinx.ext.githubpages']
5151

@@ -72,7 +72,7 @@
7272

7373
# General information about the project.
7474
project = 'pyro'
75-
copyright = '2022, pyro development team'
75+
copyright = '2023, pyro development team'
7676
author = 'pyro development team'
7777

7878
html_logo = "logo.gif"
@@ -111,7 +111,6 @@
111111
# a list of builtin themes.
112112
#
113113
html_theme = 'sphinx_rtd_theme'
114-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
115114

116115
# Theme options are theme-specific and customize the look and feel of a theme
117116
# further. For a list of options available for each theme, see the

docs/source/diffusion_basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ compare our solver to the analytic solution. This is run as:
2929

3030
.. prompt:: bash
3131

32-
./pyro_sim.py diffusion gaussian inputs.gaussian
32+
pyro_sim.py diffusion gaussian inputs.gaussian
3333

3434
.. image:: gauss_diffusion.png
3535
:align: center

docs/source/incompressible_basics.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ number of papers, for example, Bell, Colella, & Glaz (1989) and Martin
3434

3535
.. prompt:: bash
3636

37-
./pyro_sim.py incompressible shear inputs.shear
37+
pyro_sim.py incompressible shear inputs.shear
3838

3939

4040
.. image:: shear.png
@@ -57,9 +57,9 @@ shown below are run as:
5757

5858
.. prompt:: bash
5959

60-
./pyro_sim.py incompressible converge inputs.converge.32 vis.dovis=0
61-
./pyro_sim.py incompressible converge inputs.converge.64 vis.dovis=0
62-
./pyro_sim.py incompressible converge inputs.converge.128 vis.dovis=0
60+
pyro_sim.py incompressible converge inputs.converge.32 vis.dovis=0
61+
pyro_sim.py incompressible converge inputs.converge.64 vis.dovis=0
62+
pyro_sim.py incompressible converge inputs.converge.128 vis.dovis=0
6363

6464
The error is measured by comparing with the analytic solution using
6565
the routine ``incomp_converge_error.py`` in ``analysis/``.

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Run the advection solver to quickly test if things are setup correctly:
4444

4545
.. prompt:: bash
4646

47-
./pyro_sim.py advection smooth inputs.smooth
47+
pyro_sim.py advection smooth inputs.smooth
4848

4949
You should see a plot window pop up with a smooth pulse advecting
5050
diagonally through the periodic domain.

docs/source/lowmach_basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ rises. This is run as:
3333

3434
.. prompt:: bash
3535

36-
./pyro_sim.py lm_atm bubble inputs.bubble
36+
pyro_sim.py lm_atm bubble inputs.bubble
3737

docs/source/multigrid_basics.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ A basic multigrid test is run as (using a path relative to the root of the
4141

4242
.. prompt:: bash
4343

44-
./examples/multigrid/mg_test_simple.py
44+
./pyro/multigrid/examples/mg_test_simple.py
4545

4646
The ``mg_test_simple.py`` script solves a Poisson equation with a
4747
known analytic solution. This particular example comes from the text
@@ -86,7 +86,7 @@ You can run this example locally by running the ``mg_vis.py`` script:
8686

8787
.. prompt:: bash
8888

89-
./examples/multigrid/mg_vis.py
89+
./pyro/multigrid/examples/mg_vis.py
9090

9191
projection
9292
^^^^^^^^^^
@@ -96,7 +96,7 @@ field. This is run as:
9696

9797
.. prompt:: bash
9898

99-
./examples/multigrid/project_periodic.py
99+
./pyro/multigrid/examples/project_periodic.py
100100

101101
Given a vector field, :math:`U`, we can decompose it into a divergence free part, :math:`U_d`, and the gradient of a scalar, :math:`\phi`:
102102

0 commit comments

Comments
 (0)