Peano
Loading...
Searching...
No Matches
521_gauge-wave.py File Reference

Go to the source code of this file.

Namespaces

namespace  521_gauge-wave
 
namespace  _gauge
 -wave
 

Functions

 521_gauge-wave.exact_lapse (x, t)
 Lapse of the gauge wave, i.e.
 
 521_gauge-wave.build_and_run (volumes_per_axis, patch_size, directory, peano_installation)
 Generate, compile and run the tutorial setup within directory.
 
 521_gauge-wave.probe (directory, point, output_file)
 Probe all snapshots at one point and return (time stamps, lapse)
 
 521_gauge-wave.wave_profile (directory, volumes_per_axis)
 Probe the lapse in the centre of each volume along the line y=z=0.5.
 
 521_gauge-wave.plot_mesh (directory, volumes_per_axis, patch_size)
 Initial lapse along the x-axis with volumes and patches.
 
 521_gauge-wave.plot_profile (directory, volumes_per_axis)
 Lapse along the x-axis for three snapshots.
 
 521_gauge-wave.plot_probe (directory)
 Lapse at the centre of the domain over time.
 
 521_gauge-wave.errors_over_time (directory, volumes_per_axis)
 Maximum and L2 error of the lapse along the x-axis for all snapshots.
 
 521_gauge-wave.plot_convergence (results)
 Maximum error over volume size for several points in time.
 
 521_gauge-wave.order (coarse_error, fine_error)
 Estimated convergence order from two meshes whose volume sizes differ by a factor of three.
 
 521_gauge-wave.directory_of (volumes_per_axis, patch_size)
 

Variables

 521_gauge-wave.Here = os.path.dirname(os.path.abspath(__file__))
 
 521_gauge-wave.PeanoRoot = os.path.abspath(os.path.join(Here, "..", "..", "..", ".."))
 
float 521_gauge-wave.EndTime = 1.0
 
str 521_gauge-wave.PatchFile = "solution-CCZ4.peano-patch-file"
 
float 521_gauge-wave.Amplitude = 0.1
 
dict 521_gauge-wave.MaxVolumeSizes = {9: 0.12, 27: 0.04, 81: 0.013}
 Maximum volume sizes handed to the grid construction, indexed by the number of volumes per axis that they yield.
 
list 521_gauge-wave.Configurations
 (volumes per axis, patch size) pairs of the convergence study.
 
tuple 521_gauge-wave.Reference = (27, 9)
 The configuration of the tutorial itself.
 
 521_gauge-wave.parser
 
 521_gauge-wave.default
 
 521_gauge-wave.help
 
 521_gauge-wave.args = parser.parse_args()
 
 521_gauge-wave.work_directory
 
dict 521_gauge-wave.results = {}
 
 521_gauge-wave.directory = directory_of(volumes_per_axis, patch_size)
 
 521_gauge-wave.runtime
 
 521_gauge-wave.t
 
 521_gauge-wave.max_errors
 
 521_gauge-wave.l2_errors
 
 521_gauge-wave.reference_directory = directory_of(*Reference)
 
 521_gauge-wave.key
 
dict 521_gauge-wave.coarser = results.get((volumes_per_axis // 3, patch_size))
 
 521_gauge-wave.order_max = float("nan")
 
 521_gauge-wave.order_l2 = order(coarser["L2 errors"][-1], values["L2 errors"][-1])
 
list 521_gauge-wave.errors