Peano
Loading...
Searching...
No Matches
13_euler-with-amr.py File Reference

Go to the source code of this file.

Namespaces

namespace  13_euler-with-amr
 
namespace  _euler
 Create the PNG illustrations of the tutorial 10_euler.ipynb.
 

Functions

 13_euler-with-amr.create_solver (adaptive, dynamic=False, gradient=False)
 The tutorial's solver over a regular, an adaptive or a dynamically adaptive mesh.
 
 13_euler-with-amr.build_and_run (directory, adaptive=False, dynamic=False, gradient=False)
 Generate, compile and run the tutorial setup within directory.
 
 13_euler-with-amr.build_and_run_fd4 (directory, init_point_wisely)
 Generate, compile and run the fourth-order Finite Differences over the regular mesh within directory.
 
 13_euler-with-amr.read_snapshot (directory, snapshot, patch_file=PatchFile)
 Return the time stamp and all patches (offset, size, values) of a snapshot.
 
 13_euler-with-amr.number_of_snapshots (directory, patch_file=PatchFile)
 
 13_euler-with-amr.density_along_x_axis (directory, snapshot, patch_file=PatchFile)
 Return time stamp plus volume centres and densities along y=0, x>=0.
 
 13_euler-with-amr.plot_mesh (directory)
 Initial density plus the patch boundaries.
 
 13_euler-with-amr.plot_snapshots (directory)
 Density at three time stamps side by side.
 
 13_euler-with-amr.plot_profile (directory)
 Density along the positive x-axis at a few time stamps.
 
 13_euler-with-amr.plot_active_patches (directory)
 Highlight the patches which hold steep density gradients at the end.
 
 13_euler-with-amr.plot_adaptive_mesh (directory)
 Initial density on the adaptive mesh plus the patch boundaries.
 
 13_euler-with-amr.plot_adaptive_snapshots (directory)
 Density at three time stamps on the adaptive mesh plus patch boundaries.
 
 13_euler-with-amr.plot_profile_comparison (regular_directory, adaptive_directory)
 Density along the positive x-axis: regular against adaptive mesh.
 
 13_euler-with-amr.print_conservation (directory)
 Total mass and energy of the first and the last snapshot.
 
 13_euler-with-amr.plot_setup_task_graph ()
 Construct the setup task graph with the refinement criterion and draw it.
 
 13_euler-with-amr.patch_counts (directory)
 Time stamps and numbers of patches of all snapshots.
 
 13_euler-with-amr.plot_dynamic_patch_count (directory)
 Number of patches per snapshot of the dynamically adaptive run.
 
 13_euler-with-amr.plot_dynamic_mesh_change (directory)
 Density and patch boundaries right before the first mesh change and at the end.
 
 13_euler-with-amr.gradient_snapshots (directory)
 Snapshots for the comparison of the point-wise and the gradient-based criterion: t=0.1, 0.2 and 0.25.
 
 13_euler-with-amr.plot_gradient_profile_comparison (pointwise_directory, gradient_directory)
 Density along the positive x-axis: point-wise against gradient-based criterion.
 
 13_euler-with-amr.plot_gradient_patch_counts (pointwise_directory, gradient_directory)
 Number of patches per snapshot of both dynamically adaptive runs.
 
 13_euler-with-amr.plot_gradient_mesh (pointwise_directory, gradient_directory)
 Density and patch boundaries of both runs at t=0.2.
 
 13_euler-with-amr.create_gradient_pictures (dynamic_directory, gradient_directory, skip_run)
 Run the gradient-based criterion and compare it to the point-wise one.
 
 13_euler-with-amr.plot_fd4_explosion_time_step_sizes (directory)
 Time step sizes of the fourth-order Finite Differences for the point explosion.
 
 13_euler-with-amr.plot_fd4_snapshots (directory)
 Density of the Gaussian pulse at three time stamps side by side.
 
 13_euler-with-amr.plot_fd4_profile (directory)
 Density of the Gaussian pulse along the positive x-axis at a few time stamps.
 
 13_euler-with-amr.plot_mesh_adaptation_task_graph ()
 Construct the mesh adaptation task graph of the dynamically adaptive setup and draw it.
 

Variables

 13_euler-with-amr.Here = os.path.dirname(os.path.abspath(__file__))
 
 13_euler-with-amr.PeanoRoot = os.path.abspath(os.path.join(Here, "..", "..", ".."))
 
str 13_euler-with-amr.Flux
 
str 13_euler-with-amr.MaxEigenvalue
 
str 13_euler-with-amr.InitPointWisely
 
float 13_euler-with-amr.VolumeSize = 0.005
 
float 13_euler-with-amr.AdaptiveVolumeSize = 0.02
 
float 13_euler-with-amr.AdaptiveMinVolumeSize = 0.002
 
str 13_euler-with-amr.RefineErasePointwisely
 
str 13_euler-with-amr.DynamicRefineErasePointwisely
 
str 13_euler-with-amr.GradientRefinement
 
float 13_euler-with-amr.EndTime = 0.2
 
float 13_euler-with-amr.DynamicEndTime = 0.3
 
float 13_euler-with-amr.TimeInBetweenPlots = 0.01
 
str 13_euler-with-amr.PatchFile = "solution-EulerFV.peano-patch-file"
 
str 13_euler-with-amr.FD4InitPointWisely
 
str 13_euler-with-amr.FD4PatchFile = "solution-EulerFD4.peano-patch-file"
 
 13_euler-with-amr.parser
 
 13_euler-with-amr.default
 
 13_euler-with-amr.help
 
 13_euler-with-amr.action
 
 13_euler-with-amr.args = parser.parse_args()
 
 13_euler-with-amr.work_directory
 
 13_euler-with-amr.dynamic_directory = os.path.join(work_directory, "dynamic-mesh")
 
 13_euler-with-amr.gradient_directory = os.path.join(work_directory, "gradient-mesh")
 
 13_euler-with-amr.exist_ok
 
 13_euler-with-amr.adaptive
 
 13_euler-with-amr.True
 
 13_euler-with-amr.dynamic
 
 13_euler-with-amr.fd4_explosion_directory = os.path.join(work_directory, "fd4-explosion")
 
 13_euler-with-amr.fd4_pulse_directory = os.path.join(work_directory, "fd4-pulse")
 
 13_euler-with-amr.directory = os.path.join(work_directory, "regular-grid")
 
 13_euler-with-amr.adaptive_directory = os.path.join(work_directory, "adaptive-mesh")