|
Peano
|
Functions | |
| run (str work_directory, int levels, arguments) | |
| Generate, build and run the benchmark with the given number of AMR levels. | |
| mesh_over_time (str run_directory) | |
| Number of leaf cells after each time step. | |
| final_solution (str run_directory, int volumes_per_axis) | |
| Last snapshot, injected piecewise constant onto the regular grid. | |
Variables | |
| HERE = os.path.dirname(os.path.abspath(__file__)) | |
| str | SOLVER_NAME = "EulerPointSource" |
| int | VOLUMES_PER_PATCH_AXIS = 9 |
| parser = argparse.ArgumentParser(description=__doc__.strip().split("\n")[0]) | |
| required | |
| True | |
| help | |
| type | |
| default | |
| float | |
| args = parser.parse_args() | |
| int | volumes_per_axis = args.patch_count * VOLUMES_PER_PATCH_AXIS |
| list | extra |
| work_directory | |
| exist_ok | |
| regular = run(args.work_directory, 0, extra) | |
| adaptive = run(args.work_directory, args.amr_levels, extra) | |
| int | start_cells = args.patch_count**2 |
| timeline = mesh_over_time(adaptive) | |
| int | previous = start_cells |
| last_printed = None | |
| int | coarsened = 0 |
| tuple | delta = (cells - previous) * VOLUMES_PER_PATCH_AXIS**2 |
| _ | |
| reference | |
| reference_cells | |
| time_stamp | |
| solution | |
| cells | |
| list | failures = [] |
| difference = np.abs(solution[unknown] - reference[unknown]) | |
| value_range = np.nanmax(reference[unknown]) - np.nanmin(reference[unknown]) | |
| maximum = np.nanmax(difference) | |
| rms = math.sqrt(np.nanmean(difference**2)) | |
| amr-study.final_solution | ( | str | run_directory, |
| int | volumes_per_axis ) |
Last snapshot, injected piecewise constant onto the regular grid.
Definition at line 112 of file amr-study.py.
| amr-study.mesh_over_time | ( | str | run_directory | ) |
Number of leaf cells after each time step.
Definition at line 88 of file amr-study.py.
References float.
| amr-study.run | ( | str | work_directory, |
| int | levels, | ||
| arguments ) |
Generate, build and run the benchmark with the given number of AMR levels.
| work_directory | str Directory of all runs. The run of the AMR levels lives in a directory of its own. |
| levels | int Number of AMR levels. |
| arguments | [str] Further arguments of point-source.py. |
Definition at line 38 of file amr-study.py.
|
protected |
Definition at line 207 of file amr-study.py.
Definition at line 184 of file amr-study.py.
| amr-study.args = parser.parse_args() |
Definition at line 171 of file amr-study.py.
| amr-study.cells |
Definition at line 208 of file amr-study.py.
| int amr-study.coarsened = 0 |
Definition at line 195 of file amr-study.py.
| amr-study.default |
Definition at line 153 of file amr-study.py.
| tuple amr-study.delta = (cells - previous) * VOLUMES_PER_PATCH_AXIS**2 |
Definition at line 197 of file amr-study.py.
Definition at line 224 of file amr-study.py.
| amr-study.exist_ok |
Definition at line 182 of file amr-study.py.
| list amr-study.extra |
Definition at line 174 of file amr-study.py.
| list amr-study.failures = [] |
Definition at line 209 of file amr-study.py.
| amr-study.float |
Definition at line 163 of file amr-study.py.
Referenced by mesh_over_time().
| amr-study.help |
Definition at line 148 of file amr-study.py.
| amr-study.HERE = os.path.dirname(os.path.abspath(__file__)) |
Definition at line 33 of file amr-study.py.
| amr-study.last_printed = None |
Definition at line 194 of file amr-study.py.
| amr-study.maximum = np.nanmax(difference) |
Definition at line 226 of file amr-study.py.
| amr-study.parser = argparse.ArgumentParser(description=__doc__.strip().split("\n")[0]) |
Definition at line 146 of file amr-study.py.
| amr-study.previous = start_cells |
Definition at line 193 of file amr-study.py.
| amr-study.reference |
Definition at line 207 of file amr-study.py.
| amr-study.reference_cells |
Definition at line 207 of file amr-study.py.
Definition at line 183 of file amr-study.py.
| amr-study.required |
Definition at line 148 of file amr-study.py.
| amr-study.rms = math.sqrt(np.nanmean(difference**2)) |
Definition at line 227 of file amr-study.py.
| amr-study.solution |
Definition at line 208 of file amr-study.py.
| str amr-study.SOLVER_NAME = "EulerPointSource" |
Definition at line 34 of file amr-study.py.
| int amr-study.start_cells = args.patch_count**2 |
Definition at line 186 of file amr-study.py.
| amr-study.time_stamp |
Definition at line 208 of file amr-study.py.
| amr-study.timeline = mesh_over_time(adaptive) |
Definition at line 187 of file amr-study.py.
| amr-study.True |
Definition at line 148 of file amr-study.py.
| amr-study.type |
Definition at line 152 of file amr-study.py.
Definition at line 225 of file amr-study.py.
| int amr-study.volumes_per_axis = args.patch_count * VOLUMES_PER_PATCH_AXIS |
Definition at line 173 of file amr-study.py.
| int amr-study.VOLUMES_PER_PATCH_AXIS = 9 |
Definition at line 35 of file amr-study.py.
| amr-study.work_directory |
Definition at line 182 of file amr-study.py.