Peano
Loading...
Searching...
No Matches
point-source Namespace Reference

Functions

float available_memory_in_bytes ()
 Main memory that is available right now (MemAvailable in /proc/meminfo).
 pick_regular_grid (int dimensions, float budget_in_bytes, patch_sizes)
 Pick the finest regular start grid that fits into the budget.

Variables

 parser
 default
 help
 type
 float
 int
 choices
 action
 args = parser.parse_args()
dict BYTES_PER_VOLUME = {2: 160.0, 3: 240.0}
 Estimated memory footprint of one volume in bytes (per dimension count).
 patch_size = args.patch_size if args.patch_size is not None else 9
 k
float volume_size = 1.001 / (patch_size * 3**k)
 project
 solver
str PRESSURE
str AMBIENT_STATE
 amr_bounds
 numerical_scheme
 grid_construction
 plotter
 first_plot_time_stamp
 time_in_between_plots
 dimensions
 offset
 size
 min_end_time
 max_end_time
 periodic_BC
 compiler
 peano4_project
 make_clean_first

Function Documentation

◆ available_memory_in_bytes()

float point-source.available_memory_in_bytes ( )

Main memory that is available right now (MemAvailable in /proc/meminfo).

Definition at line 221 of file point-source.py.

References float.

◆ pick_regular_grid()

point-source.pick_regular_grid ( int dimensions,
float budget_in_bytes,
patch_sizes )

Pick the finest regular start grid that fits into the budget.

A regular grid over the unit cube consists of 3^k cells per axis, each hosting a patch of p volumes per axis. This yields p*3^k volumes per axis. The patch size p is free within a range, which makes the grid granularity much finer than the factor 3^d between subsequent k.

Returns
(patch_size, k)

Definition at line 232 of file point-source.py.

Variable Documentation

◆ action

point-source.action

Definition at line 187 of file point-source.py.

◆ AMBIENT_STATE

str point-source.AMBIENT_STATE
Initial value:
1= """
2 constexpr double gamma = 1.4;
3 Q[0] = 1.0;
4 for (int d=0; d<Dimensions; d++) {
5 Q[1+d] = 0.0;
6 }
7 Q[Dimensions+1] = 1.0 / (gamma - 1.0);
8"""

Definition at line 344 of file point-source.py.

◆ amr_bounds

point-source.amr_bounds
Initial value:
1= dict(
2 min_volume_size=volume_size,
3 max_volume_size=volume_size * 3**args.amr_levels,
4)

Definition at line 375 of file point-source.py.

◆ args

point-source.args = parser.parse_args()

Definition at line 209 of file point-source.py.

◆ BYTES_PER_VOLUME

dict point-source.BYTES_PER_VOLUME = {2: 160.0, 3: 240.0}

Estimated memory footprint of one volume in bytes (per dimension count).

Measured peak resident set size of the 2d run without AMR: 22 MB for 59k volumes, 102 MB for 0.53M volumes, 683 MB for 4.8M volumes, i.e. about 140 bytes per volume (patch data with halo, face data, tree), plus a margin. The 3d value is an estimate (five instead of four unknowns, larger halos).

Definition at line 218 of file point-source.py.

◆ choices

point-source.choices

Definition at line 183 of file point-source.py.

◆ compiler

point-source.compiler

Definition at line 412 of file point-source.py.

◆ default

point-source.default

Definition at line 115 of file point-source.py.

◆ dimensions

point-source.dimensions

Definition at line 398 of file point-source.py.

◆ first_plot_time_stamp

point-source.first_plot_time_stamp

Definition at line 392 of file point-source.py.

◆ float

point-source.float

Definition at line 165 of file point-source.py.

Referenced by available_memory_in_bytes().

◆ grid_construction

point-source.grid_construction

Definition at line 387 of file point-source.py.

◆ help

point-source.help

Definition at line 116 of file point-source.py.

◆ int

point-source.int

Definition at line 168 of file point-source.py.

◆ k

point-source.k

Definition at line 259 of file point-source.py.

◆ make_clean_first

point-source.make_clean_first

Definition at line 426 of file point-source.py.

◆ max_end_time

point-source.max_end_time

Definition at line 402 of file point-source.py.

◆ min_end_time

point-source.min_end_time

Definition at line 401 of file point-source.py.

◆ numerical_scheme

point-source.numerical_scheme

Definition at line 380 of file point-source.py.

◆ offset

point-source.offset

Definition at line 399 of file point-source.py.

◆ parser

point-source.parser
Initial value:
1= argparse.ArgumentParser(
2 description="Euler equations with a point source (narrow Gaussian volumetric source)"
3)

Definition at line 110 of file point-source.py.

◆ patch_size

int point-source.patch_size = args.patch_size if args.patch_size is not None else 9

Definition at line 259 of file point-source.py.

◆ peano4_project

point-source.peano4_project
Initial value:
1= project.generate_Peano4_project(
2 verbosity=peano4.api.LoggerVerbosity.TEXT
3 if args.verbosity == "text"
4 else peano4.api.LoggerVerbosity.VISUALISATION
5)

Definition at line 420 of file point-source.py.

◆ periodic_BC

point-source.periodic_BC

Definition at line 403 of file point-source.py.

◆ plotter

point-source.plotter

Definition at line 390 of file point-source.py.

◆ PRESSURE

str point-source.PRESSURE
Initial value:
1= """
2 constexpr double gamma = 1.4;
3 const double irho = 1.0 / Q[0];
4 double kineticEnergy = 0.0;
5 for (int d=0; d<Dimensions; d++) {
6 kineticEnergy += 0.5 * irho * Q[1+d] * Q[1+d];
7 }
8 const double p = (gamma - 1.0) * (Q[Dimensions+1] - kineticEnergy);
9"""

Definition at line 293 of file point-source.py.

◆ project

point-source.project
Initial value:
2 namespace=["benchmarks", "exahype2", "euler", "point_source"],
3 project_name="point-source",
4 directory=args.output_directory,
5 executable="point-source",
6)
ExaHyPE 2 project.
Definition Project.py:15

Definition at line 276 of file point-source.py.

◆ size

point-source.size

Definition at line 400 of file point-source.py.

◆ solver

point-source.solver
Initial value:
2 "EulerPointSource", {"rho": 1, "j": args.dimensions, "E": 1}
3)
Abstract base class for all ExaHyPE 2 solvers.
Definition Solver.py:17

Definition at line 283 of file point-source.py.

◆ time_in_between_plots

point-source.time_in_between_plots

Definition at line 393 of file point-source.py.

◆ type

point-source.type

Definition at line 120 of file point-source.py.

◆ volume_size

float point-source.volume_size = 1.001 / (patch_size * 3**k)

Definition at line 266 of file point-source.py.