|
Peano
|
Functions | |
| exact_density (x, t) | |
| snap (offset, size) | |
| Snap a patch's offset and size onto the regular mesh over the domain. | |
| errors (run_directory) | |
| Return (time stamp, grid cells per axis, max error, rms error) of the last snapshot of a run. | |
Variables | |
| float | DOMAIN_OFFSET = -0.1 |
| float | DOMAIN_WIDTH = 0.2 |
| float | VELOCITY = 1.0 |
| parser = argparse.ArgumentParser(description=__doc__.strip().split("\n")[0]) | |
| nargs | |
| help | |
| type | |
| default | |
| args = parser.parse_args() | |
| previous = None | |
| time_stamp | |
| cells | |
| max_error | |
| rms_error | |
| list | orders = ["", ""] |
| ratio = cells / previous[0] | |
| list | last_order = "" else math.nan |
| compute-errors.errors | ( | run_directory | ) |
Return (time stamp, grid cells per axis, max error, rms error) of the last snapshot of a run.
Definition at line 46 of file compute-errors.py.
References exact_density(), and snap().

| compute-errors.exact_density | ( | x, | |
| t ) |
Definition at line 33 of file compute-errors.py.
Referenced by errors().

| compute-errors.snap | ( | offset, | |
| size ) |
Snap a patch's offset and size onto the regular mesh over the domain.
Definition at line 39 of file compute-errors.py.
Referenced by errors().

| compute-errors.args = parser.parse_args() |
Definition at line 97 of file compute-errors.py.
| compute-errors.cells |
Definition at line 104 of file compute-errors.py.
| compute-errors.default |
Definition at line 94 of file compute-errors.py.
| float compute-errors.DOMAIN_OFFSET = -0.1 |
Definition at line 28 of file compute-errors.py.
| float compute-errors.DOMAIN_WIDTH = 0.2 |
Definition at line 29 of file compute-errors.py.
| compute-errors.help |
Definition at line 89 of file compute-errors.py.
| list compute-errors.last_order = "" else math.nan |
Definition at line 116 of file compute-errors.py.
| compute-errors.max_error |
Definition at line 104 of file compute-errors.py.
| compute-errors.nargs |
Definition at line 89 of file compute-errors.py.
| list compute-errors.orders = ["", ""] |
Definition at line 105 of file compute-errors.py.
| compute-errors.parser = argparse.ArgumentParser(description=__doc__.strip().split("\n")[0]) |
Definition at line 87 of file compute-errors.py.
| tuple compute-errors.previous = None |
Definition at line 102 of file compute-errors.py.
Definition at line 107 of file compute-errors.py.
| compute-errors.rms_error |
Definition at line 104 of file compute-errors.py.
| compute-errors.time_stamp |
Definition at line 104 of file compute-errors.py.
| compute-errors.type |
Definition at line 93 of file compute-errors.py.
| float compute-errors.VELOCITY = 1.0 |
Definition at line 30 of file compute-errors.py.