Peano
Loading...
Searching...
No Matches
three-mounds-channel Namespace Reference

Variables

str initial_conditions
 
str boundary_conditions
 
str refinement_criterion
 
 parser = exahype2.ArgumentParser()
 
 min_depth
 
 degrees_of_freedom
 
 end_time
 
 args = parser.parse_args()
 
dict constants
 
list size = [30.0, 30.0]
 
float max_h = 1.1 * min(size) / (3.0**args.min_depth)
 
float 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 48 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] = 0.0;
4 Qoutside[Shortcuts::hv] = 0.0;
5 Qoutside[Shortcuts::z] = Qinside[Shortcuts::z];
6"""

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

◆ const_type

three-mounds-channel.const_type

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

◆ const_val

three-mounds-channel.const_val

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

◆ constants

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

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

◆ degrees_of_freedom

three-mounds-channel.degrees_of_freedom

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

◆ dimensions

three-mounds-channel.dimensions

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

◆ end_time

three-mounds-channel.end_time

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

◆ first_plot_time_stamp

three-mounds-channel.first_plot_time_stamp

Definition at line 102 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=0.5,
9)

Definition at line 59 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 InitialWaterHeightDam = 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) - 28.0) * (x(0) - 28.0) + (x(1) - 15.0) * (x(1) - 15.0));
11
12 Q[Shortcuts::h] = x[0] <= 5.0 ? InitialWaterHeightDam : 0.0;
13 Q[Shortcuts::z] = std::max({0.0, m1, m2, m3});
14"""

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

◆ make

three-mounds-channel.make

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

◆ make_clean_first

three-mounds-channel.make_clean_first

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

◆ max_end_time

three-mounds-channel.max_end_time

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

◆ max_h

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

Definition at line 56 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 100 of file three-mounds-channel.py.

◆ min_h

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

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

◆ mode

three-mounds-channel.mode

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

◆ offset

three-mounds-channel.offset

Definition at line 99 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 104 of file three-mounds-channel.py.

◆ project

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

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

◆ refinement_criterion

three-mounds-channel.refinement_criterion
Initial value:
1= """
2 auto result = ::exahype2::RefinementCommand::Keep;
3
4 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));
5 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));
6 const double m3 = 1.0 - 0.28 * std::sqrt((x(0) - 28.0) * (x(0) - 28.0) + (x(1) - 15.0) * (x(1) - 15.0));
7
8 if (m1 > 0.0 or m2 > 0.0 or m3 > 0.0) {
9 result = ::exahype2::RefinementCommand::Refine;
10 }
11
12 return result;
13"""

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

◆ riemann_solver

three-mounds-channel.riemann_solver

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

◆ size

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

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

◆ throw_away_data_after_build

three-mounds-channel.throw_away_data_after_build

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

◆ time_in_between_plots

three-mounds-channel.time_in_between_plots = 0.0

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

◆ True

three-mounds-channel.True

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