Peano
Loading...
Searching...
No Matches
oscillating-lake Namespace Reference

Variables

str initial_conditions
 
str boundary_conditions
 
str refinement_criterion
 
 parser = SWEArgumentParser()
 
 end_time
 
 width
 
 offset
 
 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
 
 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

oscillating-lake.args = parser.parse_args()

Definition at line 47 of file oscillating-lake.py.

◆ assume_periodic_boundary_conditions

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

Definition at line 109 of file oscillating-lake.py.

◆ auxiliary_variables

dict oscillating-lake.auxiliary_variables = {"b": 1}

Definition at line 54 of file oscillating-lake.py.

◆ boundary_conditions

str oscillating-lake.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 27 of file oscillating-lake.py.

◆ configuration

tuple oscillating-lake.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 113 of file oscillating-lake.py.

◆ dimensions

oscillating-lake.dimensions

Definition at line 94 of file oscillating-lake.py.

◆ end_time

oscillating-lake.end_time

Definition at line 43 of file oscillating-lake.py.

◆ first_plot_time_stamp

oscillating-lake.first_plot_time_stamp

Definition at line 99 of file oscillating-lake.py.

◆ initial_conditions

str oscillating-lake.initial_conditions
Initial value:
1= """
2 const double omega = sqrt(0.2 * GRAV);
3
4 using s = VariableShortcuts;
5
6 Q[s::b] = 0.1 * (std::pow(x[0], 2) + std::pow(x[1], 2));
7 Q[s::h] = std::fmax(0.0, 0.05 * (2 * x[0] * std::cos(omega * 0) + 2 * x[1] * std::sin(omega * 0)) + 0.075 - Q[s::b]);
8 Q[s::hu] = 0.5 * omega * std::sin(omega * 0) * Q[s::h];
9 Q[s::hv] = 0.5 * omega * std::cos(omega * 0) * Q[s::h];
10
11 //Q[s::h] = 0.025 * (1.0 - std::sqrt((x(0) * x(0)) + (x(1) * x(1))));
12 //Q[s::b] = -0.2 * (1.0 - std::sqrt((x(0) * x(0)) + (x(1) * x(1)))) - 0.1;
13"""

Definition at line 13 of file oscillating-lake.py.

◆ make

oscillating-lake.make

Definition at line 131 of file oscillating-lake.py.

◆ make_clean_first

oscillating-lake.make_clean_first

Definition at line 131 of file oscillating-lake.py.

◆ max_end_time

oscillating-lake.max_end_time

Definition at line 98 of file oscillating-lake.py.

◆ max_h

tuple oscillating-lake.max_h = (1.1 * min(args.width) / (3.0**args.min_depth))

Definition at line 49 of file oscillating-lake.py.

◆ min_end_time

oscillating-lake.min_end_time

Definition at line 97 of file oscillating-lake.py.

◆ min_h

tuple oscillating-lake.min_h = max_h * 3.0 ** (-args.amr_levels)

Definition at line 50 of file oscillating-lake.py.

◆ mode

oscillating-lake.mode

Definition at line 125 of file oscillating-lake.py.

◆ offset

oscillating-lake.offset

Definition at line 45 of file oscillating-lake.py.

◆ parser

oscillating-lake.parser = SWEArgumentParser()

Definition at line 41 of file oscillating-lake.py.

◆ patch_size

oscillating-lake.patch_size

Definition at line 51 of file oscillating-lake.py.

◆ periodic_BC

oscillating-lake.periodic_BC

Definition at line 101 of file oscillating-lake.py.

◆ plot_description

oscillating-lake.plot_description

Definition at line 70 of file oscillating-lake.py.

◆ project

oscillating-lake.project
Initial value:
1= exahype2.Project(
2 namespace=["applications", "exahype2", "swe"],
3 project_name="OscillatingLake",
4 directory=".",
5 executable=f"OscillatingLake.{args.build_mode}",
6)

Definition at line 79 of file oscillating-lake.py.

◆ refinement_criterion

str oscillating-lake.refinement_criterion
Initial value:
1= """
2 return std::sqrt((x(0) * x(0)) + (x(1) * x(1))) <= 1.0
3 ? ::exahype2::RefinementCommand::Refine
4 : ::exahype2::RefinementCommand::Keep;
5"""

Definition at line 35 of file oscillating-lake.py.

◆ riemann_solver

oscillating-lake.riemann_solver
Initial value:
1= exahype2.solvers.fv.riemann.GlobalAdaptiveTimeStep(
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 56 of file oscillating-lake.py.

◆ size

oscillating-lake.size

Definition at line 95 of file oscillating-lake.py.

◆ strategy

str oscillating-lake.strategy = f"toolbox::loadbalancing::strategies::{args.load_balancing_strategy}"

Definition at line 108 of file oscillating-lake.py.

◆ throw_away_data_after_build

oscillating-lake.throw_away_data_after_build

Definition at line 131 of file oscillating-lake.py.

◆ time_in_between_plots

oscillating-lake.time_in_between_plots = 0.0

Definition at line 88 of file oscillating-lake.py.

◆ True

oscillating-lake.True

Definition at line 131 of file oscillating-lake.py.

◆ unknowns

dict oscillating-lake.unknowns = {"h": 1, "hu": 1, "hv": 1}

Definition at line 53 of file oscillating-lake.py.

◆ width

oscillating-lake.width

Definition at line 44 of file oscillating-lake.py.