|
Peano
|
Go to the source code of this file.
Namespaces | |
| namespace | 10_euler |
| namespace | _euler |
| Create the PNG illustrations of the tutorial 10_euler.ipynb. | |
Functions | |
| 10_euler.exact_density (x, t) | |
| Density of the entropy wave advected with u=1 over [-0.1,0.1]. | |
| 10_euler.build_and_run (volume_size, directory) | |
| Generate, compile and run the tutorial setup within directory. | |
| 10_euler.read_probe (directory) | |
| Return arrays time, density from the probe's csv file. | |
| 10_euler.density_along_x_axis (directory, snapshot) | |
| Return time stamp plus volume centres and densities along y=0. | |
| 10_euler.plot_mesh (directory) | |
| Initial density plus patch boundaries and the volumes of one patch. | |
| 10_euler.plot_advection (directory) | |
| Density along y=0 at a few time stamps against the exact solution. | |
| 10_euler.plot_probe (directory) | |
| Probe at the origin over time against the exact sine. | |
| 10_euler.plot_convergence (directories) | |
| Probe error over time for several volume sizes. | |
Variables | |
| 10_euler.Here = os.path.dirname(os.path.abspath(__file__)) | |
| 10_euler.PeanoRoot = os.path.abspath(os.path.join(Here, "..", "..", "..")) | |
| str | 10_euler.Flux |
| str | 10_euler.MaxEigenvalue |
| str | 10_euler.InitPointWisely |
| float | 10_euler.EndTime = 0.2 |
| float | 10_euler.TimeInBetweenPlots = 0.005 |
| str | 10_euler.PatchFile = "solution-EulerFV.peano-patch-file" |
| 10_euler.parser | |
| 10_euler.default | |
| 10_euler.help | |
| 10_euler.args = parser.parse_args() | |
| 10_euler.work_directory = args.work_directory or tempfile.mkdtemp(prefix="10_euler-") | |
| list | 10_euler.runs = [] |
| 10_euler.directory = os.path.join(work_directory, "volume-size-{}".format(volume_size)) | |
| 10_euler.exist_ok | |