|
Peano
|
Functions | |
| build_and_run (directory, init=InitPointWisely, with_logo=False, first_unknown="h", flux=Flux, max_eigenvalue=MaxEigenvalue, nonconservative_product=None) | |
| Generate, compile and run the tutorial setup within directory. | |
| plot_snapshots (directory, prefix, label="water height h", with_early=False) | |
| First unknown at the start, half way through and at the end. | |
| plot_sea_floor (directory, prefix) | |
| Sea floor b, which does not change over time. | |
Variables | |
| Here = os.path.dirname(os.path.abspath(__file__)) | |
| PeanoRoot = os.path.abspath(os.path.join(Here, "..", "..", "..")) | |
| str | Flux |
| str | MaxEigenvalue |
| str | InitPointWisely |
| str | InitPointWiselyWithLogo |
| str | FluxEta |
| str | MaxEigenvalueEta |
| str | NonconservativeProductEta |
| str | InitPointWiselyEta |
| Bathymetry = os.path.join(Here, "..", "bathymetry") | |
| str | PatchFile = "solution-SWE.peano-patch-file" |
| parser | |
| default | |
| help | |
| args = parser.parse_args() | |
| work_directory = args.work_directory or tempfile.mkdtemp(prefix="11_tsunami-") | |
| flat = os.path.join(work_directory, "flat") | |
| bathymetry = os.path.join(work_directory, "bathymetry") | |
| with_logo | |
| ncp = os.path.join(work_directory, "ncp") | |
| first_unknown | |
| flux | |
| max_eigenvalue | |
| nonconservative_product | |
| label | |
| with_early | |
| 11_tsunami.build_and_run | ( | directory, | |
init = InitPointWisely, |
|||
with_logo = False, |
|||
first_unknown = "h", |
|||
flux = Flux, |
|||
max_eigenvalue = MaxEigenvalue, |
|||
nonconservative_product = None |
|||
| ) |
Generate, compile and run the tutorial setup within directory.
with_logo adds the depth map DurhamLogo from Bathymetry to the build. first_unknown is the name of the first unknown, i.e. h or eta.
Definition at line 120 of file 11_tsunami.py.
| 11_tsunami.plot_sea_floor | ( | directory, | |
| prefix | |||
| ) |
Sea floor b, which does not change over time.
Definition at line 220 of file 11_tsunami.py.
References tarch.plotter.api.notebook.plot_snapshot().

| 11_tsunami.plot_snapshots | ( | directory, | |
| prefix, | |||
label = "water height h", |
|||
with_early = False |
|||
| ) |
First unknown at the start, half way through and at the end.
with_early adds the snapshot at a quarter of the simulated time.
Definition at line 190 of file 11_tsunami.py.
References tarch.plotter.api.notebook.plot_snapshot(), and tarch.plotter.api.notebook.read_snapshots().

| 11_tsunami.args = parser.parse_args() |
Definition at line 239 of file 11_tsunami.py.
| 11_tsunami.Bathymetry = os.path.join(Here, "..", "bathymetry") |
Definition at line 115 of file 11_tsunami.py.
| 11_tsunami.bathymetry = os.path.join(work_directory, "bathymetry") |
Definition at line 247 of file 11_tsunami.py.
| 11_tsunami.default |
Definition at line 236 of file 11_tsunami.py.
| 11_tsunami.first_unknown |
Definition at line 257 of file 11_tsunami.py.
| 11_tsunami.flat = os.path.join(work_directory, "flat") |
Definition at line 243 of file 11_tsunami.py.
| str 11_tsunami.Flux |
Definition at line 43 of file 11_tsunami.py.
| 11_tsunami.flux |
Definition at line 258 of file 11_tsunami.py.
| str 11_tsunami.FluxEta |
Definition at line 78 of file 11_tsunami.py.
| 11_tsunami.help |
Definition at line 237 of file 11_tsunami.py.
| 11_tsunami.Here = os.path.dirname(os.path.abspath(__file__)) |
Definition at line 29 of file 11_tsunami.py.
| str 11_tsunami.InitPointWisely |
Definition at line 60 of file 11_tsunami.py.
| str 11_tsunami.InitPointWiselyEta |
Definition at line 104 of file 11_tsunami.py.
| 11_tsunami.InitPointWiselyWithLogo |
Definition at line 67 of file 11_tsunami.py.
| 11_tsunami.label |
Definition at line 263 of file 11_tsunami.py.
| 11_tsunami.max_eigenvalue |
Definition at line 259 of file 11_tsunami.py.
| str 11_tsunami.MaxEigenvalue |
Definition at line 53 of file 11_tsunami.py.
| str 11_tsunami.MaxEigenvalueEta |
Definition at line 88 of file 11_tsunami.py.
| 11_tsunami.ncp = os.path.join(work_directory, "ncp") |
Definition at line 252 of file 11_tsunami.py.
| 11_tsunami.nonconservative_product |
Definition at line 260 of file 11_tsunami.py.
| str 11_tsunami.NonconservativeProductEta |
Definition at line 95 of file 11_tsunami.py.
| 11_tsunami.parser |
Definition at line 231 of file 11_tsunami.py.
| str 11_tsunami.PatchFile = "solution-SWE.peano-patch-file" |
Definition at line 117 of file 11_tsunami.py.
| 11_tsunami.PeanoRoot = os.path.abspath(os.path.join(Here, "..", "..", "..")) |
Definition at line 30 of file 11_tsunami.py.
| 11_tsunami.with_early |
Definition at line 263 of file 11_tsunami.py.
| 11_tsunami.with_logo |
Definition at line 248 of file 11_tsunami.py.
| 11_tsunami.work_directory = args.work_directory or tempfile.mkdtemp(prefix="11_tsunami-") |
Definition at line 241 of file 11_tsunami.py.