Skip to content

Commit fab5a64

Browse files
committed
add references
1 parent bbb76db commit fab5a64

8 files changed

Lines changed: 62 additions & 46 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'sphinx.ext.mathjax',
3737
'sphinx.ext.ifconfig',
3838
'sphinx.ext.viewcode',
39+
'sphinxcontrib.bibtex',
3940
'sphinx.ext.autosummary',
4041
'nbsphinx',
4142
'numpydoc',

docs/source/diffusion_basics.rst

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,7 @@ differencing (this makes the diffusion operator time-centered) and the
1414
implicit discretization forms a Helmholtz equation solved by the pyro
1515
multigrid class. The main parameters that affect this solver are:
1616

17-
+---------------------------------------------------------------------------+
18-
| ``[driver]`` |
19-
+===================+=======================================================+
20-
|``cfl`` | the "CFL" number for the diffusion equation. Since we |
21-
| | are doing an implicit discretization, this is the |
22-
| | multiple of the explicit timestep to take. |
23-
+-------------------+-------------------------------------------------------+
24-
25-
+---------------------------------------------------------------------------+
26-
| ``[diffusion]`` |
27-
+===================+=======================================================+
28-
|``k`` | the conductivity (constant) |
29-
+-------------------+-------------------------------------------------------+
30-
17+
.. include:: diffusion_defaults.inc
3118

3219
Examples
3320
--------

docs/source/incompressible_basics.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Here we implement a cell-centered approximate projection method for
1616
solving the incompressible equations. At the moment, only periodic BCs
1717
are supported.
1818

19+
The main parameters that affect this solver are:
20+
21+
.. include:: incompressible_defaults.inc
22+
1923
Examples
2024
--------
2125

docs/source/index.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ pyro: a python hydro code
3737
diffusion_basics
3838
incompressible_basics
3939
lowmach_basics
40-
particles_basics
4140
swe_basics
41+
particles_basics
4242

4343
.. toctree::
4444
:maxdepth: 1
@@ -56,10 +56,15 @@ pyro: a python hydro code
5656

5757
.. toctree::
5858
:maxdepth: 1
59-
:caption: Reference
59+
:caption: Software Reference
6060

6161
API <modules>
6262

63+
.. toctree::
64+
:caption: Bibliography
65+
66+
references
67+
6368

6469
Indices and tables
6570
==================

docs/source/lowmach_basics.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ with :math:`\nabla p_0 = \rho_0 g` and :math:`\beta_0 = p_0^{1/\gamma}`.
1717

1818
As with the incompressible solver, we implement a cell-centered approximate projection method.
1919

20+
The main parameters that affect this solver are:
21+
22+
.. include:: lm_atm_defaults.inc
23+
2024
Examples
2125
--------
2226

docs/source/references.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**********
2+
References
3+
**********
4+
5+
.. bibliography:: refs.bib
6+

docs/source/refs.bib

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@ARTICLE{colella:1990,
2+
author = {{Colella}, P.},
3+
title = "{Multidimensional upwind methods for hyperbolic conservation laws}",
4+
journal = {Journal of Computational Physics},
5+
keywords = {ADVECTION, BOUNDARY VALUE PROBLEMS, COMPUTATIONAL GRIDS, CONSERVATION LAWS, FINITE DIFFERENCE THEORY, HYPERBOLIC FUNCTIONS, ALGORITHMS, CAUCHY PROBLEM, PREDICTOR-CORRECTOR METHODS},
6+
year = 1990,
7+
month = mar,
8+
volume = 87,
9+
pages = {171-200},
10+
doi = {10.1016/0021-9991(90)90233-Q},
11+
adsurl = {http://adsabs.harvard.edu/abs/1990JCoPh..87..171C},
12+
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
13+
}
14+
15+
@ARTICLE{mccorquodalecolella,
16+
author = {{McCorquodale}, P. and {Colella}, P.},
17+
title = "{A high-order finite-volume method for conservation laws on
18+
locally refined grids}",
19+
journal = {Communication in Applied Mathematics and Computational Science},
20+
year = {2011},
21+
volume = {6},
22+
number = {1},
23+
pages = {1--25}
24+
}
25+
26+
@article{ZALESAK1979335,
27+
title = "Fully multidimensional flux-corrected transport algorithms for fluids",
28+
journal = "Journal of Computational Physics",
29+
volume = "31",
30+
number = "3",
31+
pages = "335 - 362",
32+
year = "1979",
33+
issn = "0021-9991",
34+
doi = "https://doi.org/10.1016/0021-9991(79)90051-2",
35+
url = "http://www.sciencedirect.com/science/article/pii/0021999179900512",
36+
author = "Steven T Zalesak",
37+
abstract = "The theory of flux-corrected transport (FCT) developed by Boris and Book [J. Comput. Phys. 11 (1973) 38; 18 (1975) 248; 20 (1976) 397] is placed in a simple, generalized format, and a new algorithm for implementing the critical flux limiting stage' in multidimensions without resort to time splitting is presented. The new flux limiting algorithm allows the use of FCT techniques in multidimensional fluid problems for which time splitting would produce unacceptable numerical results, such as those involving incompressible or nearly incompressible flow fields. The “clipping” problem associated with the original one dimensional flux limiter is also eliminated or alleviated. Test results and applications to a two dimensional fluid plasma problem are presented."
38+
}

docs/source/swe_basics.rst

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,7 @@ The implementation here has flattening at shocks and a choice of Riemann solvers
1818

1919
The main parameters that affect this solver are:
2020

21-
+-----------------------------------------------------------------------------+
22-
|``[driver]`` |
23-
+==================+==========================================================+
24-
|``cfl`` | the advective CFL number (what fraction of a zone can |
25-
| | we cross in a single timestep) |
26-
+------------------+----------------------------------------------------------+
27-
28-
+-------------------------------------------------------------------------------+
29-
|``[swe]`` |
30-
+====================+==========================================================+
31-
|``use_flattening`` | do we flatten the profiles at shocks? (0=no, 1=yes) |
32-
+--------------------+----------------------------------------------------------+
33-
|``z0`` | |
34-
+--------------------+ |
35-
|``z1`` | the parameters that affect the flattening algorithm |
36-
+--------------------+ |
37-
| ``delta`` | |
38-
+--------------------+----------------------------------------------------------+
39-
|``limiter`` | what type of limiting to use in reconstructing the |
40-
| | slopes. 0 means use an unlimited second-order centered |
41-
| | difference. 1 is the MC limiter, and 2 is the 4th-order |
42-
| | MC limiter |
43-
+--------------------+----------------------------------------------------------+
44-
|``riemann`` | which Riemann solver do we use? "HLLC" for the HLLC |
45-
| | solver, or "Roe" for the Roe fix |
46-
| | solver |
47-
+--------------------+----------------------------------------------------------+
48-
|``grav`` | the gravitational acceleration (must be > 0) |
49-
+--------------------+----------------------------------------------------------+
50-
21+
.. include:: swe_defaults.inc
5122

5223
Example problems
5324
----------------

0 commit comments

Comments
 (0)