Loading [MathJax]/extensions/tex2jax.js
Peano
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
three-mounds-channel Namespace Reference

Variables

str initial_conditions
 
str boundary_conditions
 
str refinement_criterion
 
 parser = SWEArgumentParser()
 
 end_time
 
 width
 
 args = parser.parse_args()
 
tuple max_h = (1.1 * min(args.width) / (3.0**args.min_depth))
 
tuple min_h = max_h * 3.0 ** (-args.amr_levels)
 
 patch_size
 
dict unknowns = {"h": 1, "hu": 1, "hv": 1}
 
dict auxiliary_variables = {"b": 1}
 
 riemann_solver
 
 plot_description
 
 project
 
float time_in_between_plots = 0.0
 
 dimensions
 
 size
 
 offset
 
 min_end_time
 
 max_end_time
 
 first_plot_time_stamp
 
 periodic_BC
 
str strategy = f"toolbox::loadbalancing::strategies::{args.load_balancing_strategy}"
 
 assume_periodic_boundary_conditions
 
tuple configuration
 
 mode
 
 make
 
 True
 
 make_clean_first
 
 throw_away_data_after_build
 

Variable Documentation

◆ args

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

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

◆ assume_periodic_boundary_conditions

three-mounds-channel.assume_periodic_boundary_conditions
Initial value:
1= any([
2 args.periodic_boundary_conditions_x,
3 args.periodic_boundary_conditions_y,
4 ])

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

◆ auxiliary_variables

dict three-mounds-channel.auxiliary_variables = {"b": 1}

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

◆ boundary_conditions

str three-mounds-channel.boundary_conditions
Initial value:
1= """
2 using s = VariableShortcuts;
3 Qoutside[s::h] = Qinside[s::h];
4 Qoutside[s::hu] = -Qinside[s::hu];
5 Qoutside[s::hv] = -Qinside[s::hv];
6 Qoutside[s::b] = Qinside[s::b];
7"""

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

◆ configuration

tuple three-mounds-channel.configuration
Initial value:
1= (
2 f"new ::exahype2::LoadBalancingConfiguration("
3 f"{args.load_balancing_quality},"
4 f"0,"
5 f"{'true' if assume_periodic_boundary_conditions else 'false'},"
6 f"{args.trees},"
7 f"{args.trees})"
8 )

Definition at line 116 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 47 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.

◆ initial_conditions

str 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 using s = VariableShortcuts;
13 Q[s::h] = x[0] <= 5.0 ? INITIAL_WATER_HEIGHT_DAM : 0.0;
14 Q[s::b] = std::max({0.0, m1, m2, m3});
15"""

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

◆ make

three-mounds-channel.make

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

◆ make_clean_first

three-mounds-channel.make_clean_first

Definition at line 134 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

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

Definition at line 52 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

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

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

◆ mode

three-mounds-channel.mode

Definition at line 128 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 = SWEArgumentParser()

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

◆ patch_size

three-mounds-channel.patch_size

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

◆ periodic_BC

three-mounds-channel.periodic_BC

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

◆ plot_description

three-mounds-channel.plot_description

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

◆ project

three-mounds-channel.project
Initial value:
2 namespace=["applications", "exahype2", "swe"],
3 project_name="ThreeMoundsChannel",
4 directory=".",
5 executable=f"ThreeMoundsChannel.{args.build_mode}",
6)
ExaHyPE 2 project.
Definition Project.py:14

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

◆ refinement_criterion

str 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 37 of file three-mounds-channel.py.

◆ riemann_solver

three-mounds-channel.riemann_solver
Initial value:
2 name="HLLEM" + str(args.patch_size),
3 patch_size=args.patch_size,
4 unknowns=unknowns,
5 auxiliary_variables=auxiliary_variables,
6 min_volume_h=min_h,
7 max_volume_h=max_h,
8 time_step_relaxation=args.time_step_relaxation,
9 pde_terms_without_state=args.stateless,
10 initial_conditions=re.sub(r'\bx\b', 'volumeCentre', initial_conditions),
11 boundary_conditions=boundary_conditions,
12 refinement_criterion=re.sub(r'\bx\b', 'volumeCentre', refinement_criterion),
13 riemann_solver="return applications::exahype2::swe::hllem(QR, QL, FR, FL, LR, LL, xR, xL, h, t, dt, normal, APDQ, AMDQ);",
14)

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

◆ size

three-mounds-channel.size

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

◆ strategy

str three-mounds-channel.strategy = f"toolbox::loadbalancing::strategies::{args.load_balancing_strategy}"

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

◆ throw_away_data_after_build

three-mounds-channel.throw_away_data_after_build

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

◆ unknowns

dict three-mounds-channel.unknowns = {"h": 1, "hu": 1, "hv": 1}

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

◆ width

three-mounds-channel.width

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