Peano
Loading...
Searching...
No Matches
amr-study.py File Reference

Go to the source code of this file.

Namespaces

namespace  amr-study
namespace  amr
 -study

Functions

 amr-study.run (str work_directory, int levels, arguments)
 Generate, build and run the benchmark with the given number of AMR levels.
 amr-study.mesh_over_time (str run_directory)
 Number of leaf cells after each time step.
 amr-study.final_solution (str run_directory, int volumes_per_axis)
 Last snapshot, injected piecewise constant onto the regular grid.

Variables

 amr-study.HERE = os.path.dirname(os.path.abspath(__file__))
str amr-study.SOLVER_NAME = "EulerPointSource"
int amr-study.VOLUMES_PER_PATCH_AXIS = 9
 amr-study.parser = argparse.ArgumentParser(description=__doc__.strip().split("\n")[0])
 amr-study.required
 amr-study.True
 amr-study.help
 amr-study.type
 amr-study.default
 amr-study.float
 amr-study.args = parser.parse_args()
int amr-study.volumes_per_axis = args.patch_count * VOLUMES_PER_PATCH_AXIS
list amr-study.extra
 amr-study.work_directory
 amr-study.exist_ok
 amr-study.regular = run(args.work_directory, 0, extra)
 amr-study.adaptive = run(args.work_directory, args.amr_levels, extra)
int amr-study.start_cells = args.patch_count**2
 amr-study.timeline = mesh_over_time(adaptive)
int amr-study.previous = start_cells
 amr-study.last_printed = None
int amr-study.coarsened = 0
tuple amr-study.delta = (cells - previous) * VOLUMES_PER_PATCH_AXIS**2
 amr-study._
 amr-study.reference
 amr-study.reference_cells
 amr-study.time_stamp
 amr-study.solution
 amr-study.cells
list amr-study.failures = []
 amr-study.difference = np.abs(solution[unknown] - reference[unknown])
 amr-study.value_range = np.nanmax(reference[unknown]) - np.nanmin(reference[unknown])
 amr-study.maximum = np.nanmax(difference)
 amr-study.rms = math.sqrt(np.nanmean(difference**2))