Skip to content

Commit af523c1

Browse files
committed
added linkers
1 parent d2a7733 commit af523c1

8 files changed

Lines changed: 90 additions & 12 deletions

File tree

doc/sphinx/source/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ math_functions/index
7878
:maxdepth: 2
7979
:caption: Examples
8080
81-
examples/index
81+
examples/examples-doc/index
82+
8283
```
8384

8485
```{toctree}

examples/examples-doc/Elliptic/1D/Elliptic1D.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,21 @@ $$
2222
au(1) + b\frac{du(1)}{dx} = 2e
2323
$$
2424

25-
This corresponds to the call to robinBC2D of `robinBC2D(k, m, dx, a, b)`.
25+
This corresponds to the call to robinBC2D of `robinBC2D(k, m, dx, a, b)`.
26+
27+
---
28+
29+
This example is implemented in:
30+
- [MATLAB](../../../../matlab/Elliptic/1D/elliptic1D.m)
31+
- [C++](../../../../cpp/Elliptic/1D/elliptic1D.cpp)
32+
33+
Additional MATLAB variants of this example with different boundary conditions:
34+
- [Homogeneous Dirichlet](../../../../matlab/Elliptic/1D/elliptic1DHomogeneousDirichlet.m)
35+
- [Non-Homogeneous Dirichlet](../../../../matlab/Elliptic/1D/elliptic1DNonHomogeneousDirichlet.m)
36+
- [Left Dirichlet, Right Neumann](../../../../matlab/Elliptic/1D/elliptic1DLeftDirichletRightNeumann.m)
37+
- [Left Dirichlet, Right Robin](../../../../matlab/Elliptic/1D/elliptic1DLeftDirichletRightRobin.m)
38+
- [Left Neumann, Right Neumann](../../../../matlab/Elliptic/1D/elliptic1DLeftNeumannRightNeumann.m)
39+
- [Left Neumann, Right Robin](../../../../matlab/Elliptic/1D/elliptic1DLeftNeumannRightRobin.m)
40+
- [Left Robin, Right Robin](../../../../matlab/Elliptic/1D/elliptic1DLeftRobinRightRobin.m)
41+
- [Periodic Boundary Conditions](../../../../matlab/Elliptic/1D/elliptic1DPeriodicBC.m)
42+
- [Non-Periodic Boundary Conditions](../../../../matlab/Elliptic/1D/elliptic1DNonPeriodicBC.m)

examples/examples-doc/Hyperbolic/1D/Burgers1D.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ $$
1212
u(x,0) = e^{\frac{-x^2}{50}}
1313
$$
1414

15-
The wave is allowed to propagate across the domain while the area under the curve is calculated.
15+
The wave is allowed to propagate across the domain while the area under the curve is calculated.
16+
17+
---
18+
19+
This example is implemented in:
20+
- [MATLAB](../../../../matlab/Hyperbolic/1D/burgers1D.m)
21+
- [C++](../../../../cpp/Hyperbolic/1D/Burgers1D.cpp)

examples/examples-doc/Hyperbolic/1D/Hyperbolic1D.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@ $$
3636

3737
$$
3838
U^{n+1}_i = U^n_i - a \Delta t \mathbf{D} U^n_i
39-
$$
39+
$$
40+
41+
---
42+
43+
This example is implemented in:
44+
- [MATLAB](../../../../matlab/Hyperbolic/1D/hyperbolic1D.m)
45+
46+
Additional MATLAB variants:
47+
- [Upwind Scheme](../../../../matlab/Hyperbolic/1D/hyperbolic1D_upwind.m)
48+
- [Lax-Friedrichs Scheme](../../../../matlab/Hyperbolic/1D/hyperbolic1D_lax_friedrichs.m)

examples/examples-doc/Hyperbolic/1D/Transport1D.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ $$
66
\frac{\partial C}{\partial t} + v\frac{\partial C}{\partial x} = D\frac{\partial^2 C}{\partial x^2}
77
$$
88

9-
where $C$ is the concentration, $v$ is the pore-water flow velocity, and $D$ is the dispersion coefficient.
9+
where $C$ is the concentration, $v$ is the pore-water flow velocity, and $D$ is the dispersion coefficient.
10+
11+
---
12+
13+
This example is implemented in:
14+
- [C++](../../../../cpp/Hyperbolic/1D/transport1D.cpp)

examples/examples-doc/Hyperbolic/1D/Wave-1D.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,13 @@ $$
1414

1515
$$
1616
u'(x,0) = 0
17-
$$
17+
$$
18+
19+
---
20+
21+
This example is implemented in:
22+
- [MATLAB](../../../../matlab/Hyperbolic/1D/wave1D.m)
23+
24+
Additional MATLAB variants:
25+
- [Wave 1D Case 2](../../../../matlab/Hyperbolic/1D/wave1D_case2.m)
26+
- [Wave 1D with Time-Varying BC](../../../../matlab/Hyperbolic/1D/wave1DTimeVaryingBC.m)

examples/examples-doc/Schrodinger/1D/Schrodinger1D.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ $$
66
H \psi = E \psi
77
$$
88

9-
where $H$ is the Hamiltonian operator, $\psi$ is the wave function, and $E$ is the energy. The Hamiltonian includes the kinetic energy term represented by the Laplacian and a potential energy term.
9+
where $H$ is the Hamiltonian operator, $\psi$ is the wave function, and $E$ is the energy. The Hamiltonian includes the kinetic energy term represented by the Laplacian and a potential energy term.
10+
11+
---
12+
13+
This example is implemented in:
14+
- [C++](../../../../cpp/Schrodinger/schrodinger1D.cpp)

examples/examples-doc/index.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,38 @@ The MOLE library contains many examples written in OCTAVE/MATLAB and C++. These
66

77
```{toctree}
88
:maxdepth: 2
9-
:caption: Examples
9+
:caption: Elliptic Problems
1010
11-
README
12-
examples
13-
cpp/README
14-
matlab/compact_operators/README
11+
Elliptic/1D/Elliptic1D
12+
Elliptic/1D/Poisson1D
13+
Elliptic/2D/Elliptic2D
14+
Elliptic/2D/Elliptic2D-Case-2
15+
Elliptic/2D/Elliptic2D-Nodal-Curv
16+
Elliptic/2D/Elliptic2D-Nodal-Curv-Sinusoidal
17+
Elliptic/2D/Minimal-Poisson-2D
18+
Elliptic/3D/Elliptic3D
19+
```
20+
21+
```{toctree}
22+
:maxdepth: 2
23+
:caption: Hyperbolic Problems
24+
25+
Hyperbolic/1D/Wave-1D
26+
Hyperbolic/1D/Wave-1D-Case-2
27+
Hyperbolic/1D/Transport1D
28+
Hyperbolic/1D/Burgers1D
29+
Hyperbolic/1D/Hyperbolic1D
30+
Hyperbolic/1D/Hyperbolic1D-upwind
31+
Hyperbolic/1D/Hyperbolic1D-Lax-Friedrichs
32+
Hyperbolic/2D/Wave-2D
33+
Hyperbolic/2D/Wave-2D-Case-2
34+
```
35+
36+
```{toctree}
37+
:maxdepth: 2
38+
:caption: Schrödinger Problems
39+
40+
Schrodinger/1D/Schrodinger1D
1541
```
1642

1743
More examples will be added in the future.

0 commit comments

Comments
 (0)