Peano
three-mounds-channel Namespace Reference

Variables

string initial_conditions
 
string boundary_conditions
 
string refinement_criterion
 
 parser = exahype2.ArgumentParser()
 
 min_depth
 
 end_time
 
 args = parser.parse_args()
 
dictionary constants
 
list size = [75.0, 30.0]
 
tuple max_h = (1.1 * min(size) / (3.0**args.min_depth))
 
tuple min_h = max_h * 3.0 ** (-args.amr_levels)
 
 fv_solver
 
 riemann_solver
 
 project
 
float time_in_between_plots = 0.0
 
 dimensions
 
 offset
 
 min_end_time
 
 max_end_time
 
 first_plot_time_stamp
 
 periodic_BC
 
 mode
 
 const_val
 
 const_type
 
 make
 
 True
 
 make_clean_first
 
 throw_away_data_after_build
 

Variable Documentation

◆ args

three-mounds-channel.args = parser.parse_args()

Definition at line 47 of file three-mounds-channel.py.

◆ boundary_conditions

three-mounds-channel.boundary_conditions
Initial value:
1 = """
2  Qoutside[Shortcuts::h] = Qinside[Shortcuts::h];
3  Qoutside[Shortcuts::hu] = -Qinside[Shortcuts::hu];
4  Qoutside[Shortcuts::hv] = -Qinside[Shortcuts::hv];
5  Qoutside[Shortcuts::z] = Qinside[Shortcuts::z];
6 """

Definition at line 27 of file three-mounds-channel.py.

◆ const_type

three-mounds-channel.const_type

Definition at line 109 of file three-mounds-channel.py.

◆ const_val

three-mounds-channel.const_val

Definition at line 109 of file three-mounds-channel.py.

◆ constants

dictionary three-mounds-channel.constants
Initial value:
1 = {
2  "g": [9.81, "double"],
3  "hThreshold": [1e-5, "double"],
4 }

Definition at line 49 of file three-mounds-channel.py.

◆ dimensions

three-mounds-channel.dimensions

Definition at line 92 of file three-mounds-channel.py.

◆ end_time

three-mounds-channel.end_time

Definition at line 45 of file three-mounds-channel.py.

◆ first_plot_time_stamp

three-mounds-channel.first_plot_time_stamp

Definition at line 97 of file three-mounds-channel.py.

◆ fv_solver

three-mounds-channel.fv_solver
Initial value:
1 = exahype2.solvers.fv.godunov.GlobalAdaptiveTimeStep(
2  name="FVSolver",
3  patch_size=args.degrees_of_freedom,
4  unknowns={"h": 1, "hu": 1, "hv": 1},
5  auxiliary_variables={"z": 1},
6  min_volume_h=min_h,
7  max_volume_h=max_h,
8  time_step_relaxation=args.time_step_relaxation,
9 )

Definition at line 58 of file three-mounds-channel.py.

◆ initial_conditions

three-mounds-channel.initial_conditions
Initial value:
1 = """
2  for (int i = 0; i < NumberOfUnknowns + NumberOfAuxiliaryVariables; i++) {
3  Q[i] = 0.0;
4  }
5 
6  constexpr double INITIAL_WATER_HEIGHT_DAM = 0.9;
7 
8  const double m1 = 1.0 - 0.10 * std::sqrt((x(0) - 15.0) * (x(0) - 15.0) + (x(1) - 22.5) * (x(1) - 22.5));
9  const double m2 = 1.0 - 0.10 * std::sqrt((x(0) - 15.0) * (x(0) - 15.0) + (x(1) - 7.50) * (x(1) - 7.50));
10  const double m3 = 1.0 - 0.28 * std::sqrt((x(0) - 30.0) * (x(0) - 30.0) + (x(1) - 15.0) * (x(1) - 15.0));
11 
12  Q[Shortcuts::h] = x[0] <= 5.0 ? INITIAL_WATER_HEIGHT_DAM : 0.0;
13  Q[Shortcuts::z] = std::max({0.0, m1, m2, m3});
14 """

Definition at line 12 of file three-mounds-channel.py.

◆ make

three-mounds-channel.make

Definition at line 114 of file three-mounds-channel.py.

◆ make_clean_first

three-mounds-channel.make_clean_first

Definition at line 114 of file three-mounds-channel.py.

◆ max_end_time

three-mounds-channel.max_end_time

Definition at line 96 of file three-mounds-channel.py.

◆ max_h

tuple three-mounds-channel.max_h = (1.1 * min(size) / (3.0**args.min_depth))

Definition at line 55 of file three-mounds-channel.py.

◆ min_depth

three-mounds-channel.min_depth

Definition at line 44 of file three-mounds-channel.py.

◆ min_end_time

three-mounds-channel.min_end_time

Definition at line 95 of file three-mounds-channel.py.

◆ min_h

tuple three-mounds-channel.min_h = max_h * 3.0 ** (-args.amr_levels)

Definition at line 56 of file three-mounds-channel.py.

◆ mode

three-mounds-channel.mode

Definition at line 106 of file three-mounds-channel.py.

◆ offset

three-mounds-channel.offset

Definition at line 94 of file three-mounds-channel.py.

◆ parser

three-mounds-channel.parser = exahype2.ArgumentParser()

Definition at line 42 of file three-mounds-channel.py.

◆ periodic_BC

three-mounds-channel.periodic_BC

Definition at line 99 of file three-mounds-channel.py.

◆ project

three-mounds-channel.project
Initial value:
1 = exahype2.Project(
2  namespace=["applications", "exahype2", "swe"],
3  project_name="ThreeMoundsChannel",
4  directory=".",
5  executable="ExaHyPE-ShallowWater",
6 )

Definition at line 77 of file three-mounds-channel.py.

◆ refinement_criterion

three-mounds-channel.refinement_criterion
Initial value:
1 = """
2  auto result = ::exahype2::RefinementCommand::Keep;
3  if (x(0) >= 20.0 && x(0) <= 50.0) {
4  result = ::exahype2::RefinementCommand::Refine;
5  }
6  return result;
7 """

Definition at line 34 of file three-mounds-channel.py.

◆ riemann_solver

three-mounds-channel.riemann_solver

Definition at line 72 of file three-mounds-channel.py.

◆ size

three-mounds-channel.size = [75.0, 30.0]

Definition at line 54 of file three-mounds-channel.py.

◆ throw_away_data_after_build

three-mounds-channel.throw_away_data_after_build

Definition at line 114 of file three-mounds-channel.py.

◆ time_in_between_plots

three-mounds-channel.time_in_between_plots = 0.0

Definition at line 86 of file three-mounds-channel.py.

◆ True

three-mounds-channel.True

Definition at line 114 of file three-mounds-channel.py.