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

Go to the source code of this file.

Namespaces

namespace  convergence-study
namespace  convergence
 -study

Functions

 convergence-study.patch_size_of (volumes_per_axis)
 The patch size does not influence the solution.
 convergence-study.exact_solution (x, t, component)
 Component 0, ..., 3 of the scalar field: sin(2 pi x + m pi/4) transported along the characteristics.
 convergence-study.name_of (study, volumes_per_axis)
 convergence-study.build_and_run (study, volumes_per_axis, threads, work_directory)
 Generate, compile and run gauge-wave-with-scalar-field.py.
 convergence-study.measure_error (directory, volumes_per_axis)
 Maximum error of the four scalar fields along y=z=0.5 in the last snapshot.
 convergence-study.estimated_order (coarse, fine)
 Order from two meshes whose volume sizes differ by a factor of three.
 convergence-study.plot (results, studies, output_file)
 convergence-study.table (results, studies, meshes)
 convergence-study.check_orders (results, studies, meshes)
 The studies whose order between the two finest meshes is outside the expected range.

Variables

 convergence-study.Here = os.path.dirname(os.path.abspath(__file__))
 convergence-study.PeanoRoot = os.path.abspath(os.path.join(Here, "..", "..", ".."))
float convergence-study.EndTime = 0.1
float convergence-study.Amplitude = 0.1
str convergence-study.PatchFile = "solution-ScalarField.peano-patch-file"
list convergence-study.Meshes = [9, 27, 81]
 Number of volumes per axis.
list convergence-study.Studies
 The scheme of both solvers, and the couplings that are studied for it.
dict convergence-study.ExpectedOrders
 Minimum estimated order between the two finest meshes.
dict convergence-study.MaximumOrders = {("rk4fd4", "outer-multiplicative"): 1.6}
 Orders which the couplings must not exceed (they would indicate that the exact solution is wrong).
 convergence-study.parser
 convergence-study.required
 convergence-study.True
 convergence-study.help
 convergence-study.default
 convergence-study.nargs
 convergence-study.type
 convergence-study.int
 convergence-study.args = parser.parse_args()
list convergence-study.studies = [tuple(s.split(":")) for s in args.studies]
 convergence-study.meshes = sorted(args.meshes)
 convergence-study.work_directory = os.path.abspath(args.work_directory)
 convergence-study.exist_ok
 convergence-study.results_file = os.path.join(work_directory, "results.json")
dict convergence-study.results = {}
 convergence-study.f
 convergence-study.indent
 convergence-study.output_directory
 convergence-study.markdown = table(results, studies, meshes)
 convergence-study.failures = check_orders(results, studies, meshes)