Peano
static-limiting-tohoku Namespace Reference

Variables

 project
 
int dimensions = 2
 
int min_level = 4
 
int max_depth = 0
 
int order = 5
 
float end_time = 7000.0
 
float plot_interval = 500.0
 
list offset = [0.0, 1.2e6]
 
list size = [2.0e6, 2.0e6]
 
float max_h = 1.1 * min(size) / (3.0**min_level)
 
float min_h = max_h / (3.0**max_depth)
 
string initial_conditions
 
string boundary_conditions
 
string flux
 
string ncp
 
string max_eval
 
string limiting_criterion
 
 aderdg_solver
 
 polynomials
 
 riemann_solver_implementation
 
 fv_solver
 
 max_eigenvalue
 
 riemann_solver
 
 limiter
 
 build_mode = peano4.output.CompileMode.Release
 limiter._start_time_step_implementation += """ if(_solverState==SolverState::LimiterStatusSpreadingToNeighbours){ repositories::instanceOfADERDGSolver2.suspendSolversForOneGridSweep(); } """ More...
 
 min_end_time
 
 max_end_time
 
 first_plot_time_stamp
 
 time_in_between_plots
 
 periodic_BC
 
 make_clean_first
 

Variable Documentation

◆ aderdg_solver

static-limiting-tohoku.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  flux=flux, ncp=ncp,
10  eigenvalues=max_eval,
11  initial_conditions=initial_conditions,
12  boundary_conditions=boundary_conditions,
13 )

Definition at line 84 of file static-limiting-tohoku.py.

◆ boundary_conditions

static-limiting-tohoku.boundary_conditions
Initial value:
1 = """
2  initialCondition(
3  Qoutside, x, h, false
4  );
5 """

Definition at line 44 of file static-limiting-tohoku.py.

◆ build_mode

static-limiting-tohoku.build_mode = peano4.output.CompileMode.Release

limiter._start_time_step_implementation += """ if(_solverState==SolverState::LimiterStatusSpreadingToNeighbours){ repositories::instanceOfADERDGSolver2.suspendSolversForOneGridSweep(); } """

Definition at line 198 of file static-limiting-tohoku.py.

◆ dimensions

static-limiting-tohoku.dimensions = 2

Definition at line 11 of file static-limiting-tohoku.py.

◆ end_time

float static-limiting-tohoku.end_time = 7000.0

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

◆ first_plot_time_stamp

static-limiting-tohoku.first_plot_time_stamp

Definition at line 206 of file static-limiting-tohoku.py.

◆ flux

static-limiting-tohoku.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 50 of file static-limiting-tohoku.py.

◆ fv_solver

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

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

◆ initial_conditions

static-limiting-tohoku.initial_conditions
Initial value:
1 = """
2  static tarch::reader::TopologyParser topologyParser(
3  \"tohoku_gebco_ucsb3_2000m_hawaii_bath.nc\",
4  \"tohoku_gebco_ucsb3_2000m_hawaii_displ.nc\",
5  7000000,//DomainSize(0),
6  4000000,//DomainSize(1),
7  0.,//DomainOffset(0),
8  0.//DomainOffset(1)
9  );
10 
11  const double bathymetryBeforeEarthquake = topologyParser.sampleBathymetry(x(0), x(1));
12  const double displacement = topologyParser.sampleDisplacement(x(0), x(1));
13  const double bathymetryAfterEarthquake = bathymetryBeforeEarthquake + displacement;
14 
15  Q[0] = -1*std::min(bathymetryBeforeEarthquake, 0.0);
16  Q[1] = 0.0;
17  Q[2] = 0.0;
18  Q[3] = bathymetryAfterEarthquake;
19 """

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

◆ limiter

static-limiting-tohoku.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 169 of file static-limiting-tohoku.py.

◆ limiting_criterion

string static-limiting-tohoku.limiting_criterion
Initial value:
1 = """
2 if(x[0]<=0.5*DomainSize[0]){
3  return Q[0] > 100.0;
4 }
5 else{
6  return true;
7 }
8 """

Definition at line 75 of file static-limiting-tohoku.py.

◆ make_clean_first

static-limiting-tohoku.make_clean_first

Definition at line 218 of file static-limiting-tohoku.py.

◆ max_depth

int static-limiting-tohoku.max_depth = 0

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

◆ max_eigenvalue

static-limiting-tohoku.max_eigenvalue

Definition at line 157 of file static-limiting-tohoku.py.

◆ max_end_time

static-limiting-tohoku.max_end_time

Definition at line 205 of file static-limiting-tohoku.py.

◆ max_eval

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

Definition at line 66 of file static-limiting-tohoku.py.

◆ max_h

float static-limiting-tohoku.max_h = 1.1 * min(size) / (3.0**min_level)

Definition at line 21 of file static-limiting-tohoku.py.

◆ min_end_time

static-limiting-tohoku.min_end_time

Definition at line 204 of file static-limiting-tohoku.py.

◆ min_h

float static-limiting-tohoku.min_h = max_h / (3.0**max_depth)

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

◆ min_level

int static-limiting-tohoku.min_level = 4

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

◆ ncp

static-limiting-tohoku.ncp
Initial value:
1 = """
2  std::fill_n(BTimesDeltaQ, NumberOfUnknowns, 0.0);
3 
4  constexpr double grav = 9.81;
5  BTimesDeltaQ[normal+1] = grav * Q[0] * (deltaQ[0] + deltaQ[3]);
6 """

Definition at line 59 of file static-limiting-tohoku.py.

◆ offset

static-limiting-tohoku.offset = [0.0, 1.2e6]

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

◆ order

int static-limiting-tohoku.order = 5

Definition at line 14 of file static-limiting-tohoku.py.

◆ periodic_BC

static-limiting-tohoku.periodic_BC

Definition at line 208 of file static-limiting-tohoku.py.

◆ plot_interval

float static-limiting-tohoku.plot_interval = 500.0

Definition at line 16 of file static-limiting-tohoku.py.

◆ polynomials

static-limiting-tohoku.polynomials

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

◆ project

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

Definition at line 7 of file static-limiting-tohoku.py.

◆ riemann_solver

static-limiting-tohoku.riemann_solver

Definition at line 160 of file static-limiting-tohoku.py.

◆ riemann_solver_implementation

static-limiting-tohoku.riemann_solver_implementation

Definition at line 99 of file static-limiting-tohoku.py.

◆ size

static-limiting-tohoku.size = [2.0e6, 2.0e6]

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

◆ time_in_between_plots

static-limiting-tohoku.time_in_between_plots

Definition at line 207 of file static-limiting-tohoku.py.