Peano
static-limiting-swe Namespace Reference

Variables

 project
 
 parser = exahype2.ArgumentParser("ExaHyPE 2 - ADER-DG Limiting Testing Script")
 
 min_depth
 
 degrees_of_freedom
 
 args = parser.parse_args()
 
int dimensions = 2
 
int order = args.degrees_of_freedom - 1
 
float end_time = 1.0
 
float plot_interval = 0.0
 
list size = [2.0, 2.0, 2.0][0:dimensions]
 
list offset = [-1.0, -1.0, -1.0][0:dimensions]
 
float max_h = 1.1 * min(size) / (3.0**args.min_depth)
 
float min_h = max_h / (3.0**args.amr_levels)
 
string initial_conditions
 
string boundary_conditions
 
string flux
 
string ncp
 
string max_eval
 
string limiting_criterion
 
 aderdg_solver
 
 max_eigenvalue
 
 polynomials
 
 fv_solver
 
 limiter
 
 min_end_time
 
 max_end_time
 
 first_plot_time_stamp
 
 time_in_between_plots
 
 periodic_BC
 
 mode
 

Variable Documentation

◆ aderdg_solver

static-limiting-swe.aderdg_solver
Initial value:
1 = exahype2.solvers.aderdg.GlobalAdaptiveTimeStep(
2  name="ADERDGSolver",
3  order=order,
4  unknowns=4,
5  auxiliary_variables=0,
6  min_cell_h=min_h,
7  max_cell_h=max_h,
8  time_step_relaxation=0.9,
9 )

Definition at line 86 of file static-limiting-swe.py.

◆ args

static-limiting-swe.args = parser.parse_args()

Definition at line 15 of file static-limiting-swe.py.

◆ boundary_conditions

static-limiting-swe.boundary_conditions
Initial value:
1 = """
2  Qoutside[0] = Qinside[0];
3  Qoutside[1] = Qinside[1];
4  Qoutside[2] = Qinside[2];
5  Qoutside[3] = Qinside[3];
6 """

Definition at line 34 of file static-limiting-swe.py.

◆ degrees_of_freedom

static-limiting-swe.degrees_of_freedom

Definition at line 13 of file static-limiting-swe.py.

◆ dimensions

static-limiting-swe.dimensions = 2

Definition at line 17 of file static-limiting-swe.py.

◆ end_time

float static-limiting-swe.end_time = 1.0

Definition at line 19 of file static-limiting-swe.py.

◆ first_plot_time_stamp

static-limiting-swe.first_plot_time_stamp

Definition at line 142 of file static-limiting-swe.py.

◆ flux

static-limiting-swe.flux
Initial value:
1 = """
2  double ih = 1.0 / Q[0];
3 
4  F[0] = Q[1 + normal];
5  F[1] = Q[1 + normal] * Q[1] * ih;
6  F[2] = Q[1 + normal] * Q[2] * ih;
7  F[3] = 0.0;
8 """

Definition at line 41 of file static-limiting-swe.py.

◆ fv_solver

static-limiting-swe.fv_solver
Initial value:
1 = exahype2.solvers.fv.godunov.GlobalAdaptiveTimeStep(
2  name="FVSolver",
3  patch_size=2 * order + 1,
4  unknowns=4,
5  auxiliary_variables=0,
6  min_volume_h=min_h,
7  max_volume_h=max_h,
8  time_step_relaxation=0.9,
9 
10 )

Definition at line 107 of file static-limiting-swe.py.

◆ initial_conditions

static-limiting-swe.initial_conditions
Initial value:
1 = """
2  Q[0] = 4.0;
3  Q[1] = 0.0;
4  Q[2] = 0.0;
5  Q[3] = 2.0 - tarch::la::norm2(x);
6 """

Definition at line 27 of file static-limiting-swe.py.

◆ limiter

static-limiting-swe.limiter
Initial value:
1 = exahype2.solvers.limiting.StaticLimiting(
2  name="LimitingSolver",
3  regular_solver=aderdg_solver,
4  limiting_solver=fv_solver,
5  limiting_criterion_implementation=limiting_criterion,
6 )

Definition at line 126 of file static-limiting-swe.py.

◆ limiting_criterion

string static-limiting-swe.limiting_criterion
Initial value:
1 = """
2 bool isBoundaryCell = (
3  x[0] + 1.00 < 0.5 * h[0] or
4  x[1] + 1.00 < 0.5 * h[1] or
5  x[0] - 1.00 > -0.5 * h[0] or
6  x[1] - 1.00 > -0.5 * h[1]
7 );
8 return !isBoundaryCell;
9 """

Definition at line 76 of file static-limiting-swe.py.

◆ max_eigenvalue

static-limiting-swe.max_eigenvalue

Definition at line 98 of file static-limiting-swe.py.

◆ max_end_time

static-limiting-swe.max_end_time

Definition at line 141 of file static-limiting-swe.py.

◆ max_eval

string static-limiting-swe.max_eval
Initial value:
1 = """
2  constexpr double grav = 9.81;
3 
4  double u = Q[1 + normal] / Q[0];
5  double c = std::sqrt(grav * Q[0]);
6 
7  return std::max(std::abs(u + c), std::abs(u - c));
8 """

Definition at line 67 of file static-limiting-swe.py.

◆ max_h

float static-limiting-swe.max_h = 1.1 * min(size) / (3.0**args.min_depth)

Definition at line 24 of file static-limiting-swe.py.

◆ min_depth

static-limiting-swe.min_depth

Definition at line 12 of file static-limiting-swe.py.

◆ min_end_time

static-limiting-swe.min_end_time

Definition at line 140 of file static-limiting-swe.py.

◆ min_h

float static-limiting-swe.min_h = max_h / (3.0**args.amr_levels)

Definition at line 25 of file static-limiting-swe.py.

◆ mode

static-limiting-swe.mode

Definition at line 148 of file static-limiting-swe.py.

◆ ncp

static-limiting-swe.ncp
Initial value:
1 = """
2  constexpr double grav = 9.81;
3 
4  BTimesDeltaQ[0] = 0.0;
5  switch (normal) {
6  case 0:
7  BTimesDeltaQ[1] = grav * Q[0] * (deltaQ[0] + deltaQ[3]);
8  BTimesDeltaQ[2] = 0.0;
9  break;
10  case 1:
11  BTimesDeltaQ[1] = 0.0;
12  BTimesDeltaQ[2] = grav * Q[0] * (deltaQ[0] + deltaQ[3]);
13  break;
14  }
15  BTimesDeltaQ[3] = 0.0;
16 """

Definition at line 50 of file static-limiting-swe.py.

◆ offset

static-limiting-swe.offset = [-1.0, -1.0, -1.0][0:dimensions]

Definition at line 23 of file static-limiting-swe.py.

◆ order

int static-limiting-swe.order = args.degrees_of_freedom - 1

Definition at line 18 of file static-limiting-swe.py.

◆ parser

static-limiting-swe.parser = exahype2.ArgumentParser("ExaHyPE 2 - ADER-DG Limiting Testing Script")

Definition at line 10 of file static-limiting-swe.py.

◆ periodic_BC

static-limiting-swe.periodic_BC

Definition at line 144 of file static-limiting-swe.py.

◆ plot_interval

float static-limiting-swe.plot_interval = 0.0

Definition at line 20 of file static-limiting-swe.py.

◆ polynomials

static-limiting-swe.polynomials

Definition at line 103 of file static-limiting-swe.py.

◆ project

static-limiting-swe.project
Initial value:
1 = exahype2.Project(
2  ["tests", "exahype2", "aderdg"], ".", executable="ADERDG-Limiting"
3 )

Definition at line 6 of file static-limiting-swe.py.

◆ size

static-limiting-swe.size = [2.0, 2.0, 2.0][0:dimensions]

Definition at line 22 of file static-limiting-swe.py.

◆ time_in_between_plots

static-limiting-swe.time_in_between_plots

Definition at line 143 of file static-limiting-swe.py.