Skip to content

Commit c1a90b4

Browse files
author
Daniel Ruprecht
committed
updated README for Fig. 6; change parameters in plot_dispersion.py
1 parent 158d01d commit c1a90b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ How can I reproduce Figures from the publication?
2525
- Fig. 3 --> scripts/plot_dispersion.py with parameter nu=0.0 and nu=0.1
2626
- Fig. 4 --> example/run.py
2727
- Fig. 5 --> scripts/plot_ieuler_dispersion.py
28-
- Fig. 4 --> scripts/plot_dispersion.py with approx_symbol=True
28+
- Fig. 6 --> scripts/plot_dispersion.py with stencil=2 (also set nu=0.0 and dx=1.0)
2929
- Fig. 5 --> scripts/plot_dispersion.py with artificial_coarse=1 or 2
3030
- Fig. 6 --> example/run.py with artificial_coarse=2
3131
- Fig. 7 --> scripts/plot_svd_vs_waveno_different_G.py

scripts/plot_dispersion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def normalise(R, T, target):
5959
U_speed = 1.0
6060

6161
# diffusivity parameter
62-
nu = 0.1
62+
nu = 0.0
6363

6464
# select coarse integrator:
6565
# 0 = normal backward Euler method
@@ -74,7 +74,7 @@ def normalise(R, T, target):
7474
# stencil = 0 : exact symbol, no approximation of spatial derivative
7575
# stencil = 1 : first order upwind (only fur nu=0)
7676
# stencil = 2 : second order centred (only for nu=0)
77-
stencil = 0
77+
stencil = 2
7878

7979
ncoarse = 1
8080
nfine = 10

0 commit comments

Comments
 (0)