Peano
Loading...
Searching...
No Matches
smooth-convergence-test Namespace Reference

Variables

dict CFL_CONSTANTS
 CFL constants per numerical scheme.
 parser
 choices
 default
 help
 type
 int
 float
 action
 args = parser.parse_args()
 is_finite_volume = args.scheme in ["fv", "fv-optimistic"]
 verbosity
 plot_interval = args.plot_interval if args.plot_interval is not None else args.end_time
 compilers = peano4.api.taskgraph.compiler
dict task_graph_compiler
 project
 solver = exahype2.api.Solver("EulerSmooth", {"rho": 1, "j": args.dimensions, "E": 1})
str PRESSURE
str EXACT_SOLUTION
dict cfl_constant = CFL_CONSTANTS[args.scheme]
dict scheme_class
 numerical_scheme
 patch_size
 grid_construction
 volume_size
 plotter
 first_plot_time_stamp
 time_in_between_plots
 plotter_precision
 rk_order
 time_step_size
 dimensions
 offset
 size
 min_end_time
 max_end_time
 periodic_BC
 compiler
 peano4_project
 make_clean_first
 number_of_parallel_builds

Variable Documentation

◆ action

smooth-convergence-test.action

Definition at line 102 of file smooth-convergence-test.py.

◆ args

smooth-convergence-test.args = parser.parse_args()

Definition at line 134 of file smooth-convergence-test.py.

◆ cfl_constant

smooth-convergence-test.cfl_constant = CFL_CONSTANTS[args.scheme]

Definition at line 232 of file smooth-convergence-test.py.

◆ CFL_CONSTANTS

dict smooth-convergence-test.CFL_CONSTANTS
Initial value:
1= {
2 "fv": 0.9,
3 "fv-optimistic": 0.9,
4 "rk1fd4": 0.5,
5 "rk2fd4": 0.5,
6 "rk3fd4": 0.5,
7 "rk4fd4": 0.5,
8}

CFL constants per numerical scheme.

They are hard-coded as they are a property of the scheme, not of the benchmark: 0.9 is the default of the Finite Volume schemes, 0.5 the conservative default of the fourth-order Finite Differences.

Definition at line 25 of file smooth-convergence-test.py.

◆ choices

smooth-convergence-test.choices

Definition at line 39 of file smooth-convergence-test.py.

◆ compiler

smooth-convergence-test.compiler

Definition at line 283 of file smooth-convergence-test.py.

◆ compilers

Definition at line 143 of file smooth-convergence-test.py.

◆ default

smooth-convergence-test.default

Definition at line 40 of file smooth-convergence-test.py.

◆ dimensions

smooth-convergence-test.dimensions

Definition at line 272 of file smooth-convergence-test.py.

◆ EXACT_SOLUTION

str smooth-convergence-test.EXACT_SOLUTION
Initial value:
1= """
2 constexpr double gamma = 1.4;
3 constexpr double p = 1.0;
4 constexpr double u = 1.0;
5 constexpr double domainLeft = -0.1;
6 constexpr double domainWidth = 0.2;
7 const double rho = 1.0 + 0.2 * std::sin(2.0 * M_PI * (x(0) - u * t - domainLeft) / domainWidth);
8 Q[0] = rho;
9 Q[1] = rho * u;
10 for (int d=1; d<Dimensions; d++) {
11 Q[1+d] = 0.0;
12 }
13 Q[Dimensions+1] = p / (gamma - 1.0) + 0.5 * rho * u * u;
14"""

Definition at line 208 of file smooth-convergence-test.py.

◆ first_plot_time_stamp

smooth-convergence-test.first_plot_time_stamp

Definition at line 248 of file smooth-convergence-test.py.

◆ float

smooth-convergence-test.float

Definition at line 86 of file smooth-convergence-test.py.

◆ grid_construction

smooth-convergence-test.grid_construction

Definition at line 241 of file smooth-convergence-test.py.

◆ help

smooth-convergence-test.help

Definition at line 41 of file smooth-convergence-test.py.

◆ int

smooth-convergence-test.int

Definition at line 83 of file smooth-convergence-test.py.

◆ is_finite_volume

smooth-convergence-test.is_finite_volume = args.scheme in ["fv", "fv-optimistic"]

Definition at line 136 of file smooth-convergence-test.py.

◆ make_clean_first

smooth-convergence-test.make_clean_first

Definition at line 303 of file smooth-convergence-test.py.

◆ max_end_time

smooth-convergence-test.max_end_time

Definition at line 276 of file smooth-convergence-test.py.

◆ min_end_time

smooth-convergence-test.min_end_time

Definition at line 275 of file smooth-convergence-test.py.

◆ number_of_parallel_builds

smooth-convergence-test.number_of_parallel_builds

Definition at line 304 of file smooth-convergence-test.py.

◆ numerical_scheme

smooth-convergence-test.numerical_scheme

Definition at line 238 of file smooth-convergence-test.py.

◆ offset

smooth-convergence-test.offset

Definition at line 273 of file smooth-convergence-test.py.

◆ parser

smooth-convergence-test.parser
Initial value:
1= argparse.ArgumentParser(
2 description="ExaHyPE 2 smooth convergence test (Euler entropy wave)"
3)

Definition at line 34 of file smooth-convergence-test.py.

◆ patch_size

smooth-convergence-test.patch_size

Definition at line 239 of file smooth-convergence-test.py.

◆ peano4_project

smooth-convergence-test.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 293 of file smooth-convergence-test.py.

◆ periodic_BC

smooth-convergence-test.periodic_BC

Definition at line 277 of file smooth-convergence-test.py.

◆ plot_interval

smooth-convergence-test.plot_interval = args.plot_interval if args.plot_interval is not None else args.end_time

Definition at line 141 of file smooth-convergence-test.py.

◆ plotter

smooth-convergence-test.plotter

Definition at line 246 of file smooth-convergence-test.py.

◆ plotter_precision

smooth-convergence-test.plotter_precision

Definition at line 250 of file smooth-convergence-test.py.

◆ PRESSURE

str smooth-convergence-test.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 169 of file smooth-convergence-test.py.

◆ project

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

Definition at line 152 of file smooth-convergence-test.py.

◆ rk_order

smooth-convergence-test.rk_order

Definition at line 256 of file smooth-convergence-test.py.

◆ scheme_class

dict smooth-convergence-test.scheme_class
Initial value:
1= {
4 }[args.scheme]
Finite Volumes with a Rusanov Riemann solver and explicit Euler time stepping, realised over a block-...
Finite Volumes with a Rusanov Riemann solver and optimistic explicit Euler time stepping,...

Definition at line 234 of file smooth-convergence-test.py.

◆ size

smooth-convergence-test.size

Definition at line 274 of file smooth-convergence-test.py.

◆ solver

smooth-convergence-test.solver = exahype2.api.Solver("EulerSmooth", {"rho": 1, "j": args.dimensions, "E": 1})

Definition at line 159 of file smooth-convergence-test.py.

◆ task_graph_compiler

dict smooth-convergence-test.task_graph_compiler
Initial value:
1= {
2 "sequential": compilers.Sequential.translate,
3 "fusion": compilers.FuseSteps.translate,
4 "producer-consumer": compilers.CellTaskProducerConsumer.translate_with_sequential,
5 "producer-consumer-fusion": compilers.CellTaskProducerConsumer.translate_with_fusion,
6}[args.compiler]

Definition at line 144 of file smooth-convergence-test.py.

◆ time_in_between_plots

smooth-convergence-test.time_in_between_plots

Definition at line 249 of file smooth-convergence-test.py.

◆ time_step_size

smooth-convergence-test.time_step_size

Definition at line 257 of file smooth-convergence-test.py.

◆ type

smooth-convergence-test.type

Definition at line 60 of file smooth-convergence-test.py.

◆ verbosity

smooth-convergence-test.verbosity

Definition at line 140 of file smooth-convergence-test.py.

◆ volume_size

smooth-convergence-test.volume_size

Definition at line 242 of file smooth-convergence-test.py.