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

Variables

str initial_conditions
 
str boundary_conditions
 
str refinement_criterion
 
str analytical_solution
 
 parser = exahype2.ArgumentParser()
 
 min_depth
 
 degrees_of_freedom
 
 end_time
 
 args = parser.parse_args()
 
dict constants
 
list size = [4.0, 4.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
 
 error_measurement_implementation
 
 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

◆ analytical_solution

str oscillating-lake.analytical_solution
Initial value:
1= """
2 constexpr double a = 1.0;
3 constexpr double hZero = 0.1;
4 constexpr double eta = 0.5;
5
6 const double r = std::sqrt(std::pow(x[0], 2) + std::pow(x[1], 2));
7 const double omega = std::sqrt(2 * g * hZero) / a;
8
9 const double currentHeight = ((eta * hZero) / std::pow(a, 2)) * (2 * (x[0]) * std::cos(omega * t) + 2 * (x[1]) * std::sin(omega * t) - eta) - Q[Shortcuts::z];
10 // Again, only values h > 0 will be considered, the rest is assumed to be dry-state.
11 if (currentHeight > 0) {
12 solution[0] = ((eta * hZero) / std::pow(a, 2)) * (2 * (x[0]) * std::cos(omega * t) + 2 * (x[1]) * std::sin(omega * t) - eta) - Q[Shortcuts::z];
13 solution[1] = (-eta * omega * std::sin(omega * t)) * Q[Shortcuts::h];
14 solution[2] = (eta * omega * std::cos(omega * t)) * Q[Shortcuts::h];
15 } else {
16 solution[0] = 0.0;
17 solution[1] = 0.0;
18 solution[2] = 0.0;
19 }
20"""

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

◆ args

oscillating-lake.args = parser.parse_args()

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

◆ boundary_conditions

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

◆ const_type

oscillating-lake.const_type

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

◆ const_val

oscillating-lake.const_val

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

◆ constants

dict oscillating-lake.constants
Initial value:
1= {
2 "g": [9.81, "double"],
3 "hThreshold": [1e-5, "double"],
4}

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

◆ degrees_of_freedom

oscillating-lake.degrees_of_freedom

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

◆ dimensions

oscillating-lake.dimensions

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

◆ end_time

oscillating-lake.end_time

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

◆ error_measurement_implementation

oscillating-lake.error_measurement_implementation

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

◆ first_plot_time_stamp

oscillating-lake.first_plot_time_stamp

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

◆ fv_solver

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

◆ initial_conditions

oscillating-lake.initial_conditions

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

◆ make

oscillating-lake.make

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

◆ make_clean_first

oscillating-lake.make_clean_first

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

◆ max_end_time

oscillating-lake.max_end_time

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

◆ max_h

float oscillating-lake.max_h = 1.1 * min(size) / (3.0**args.min_depth)

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

◆ min_depth

oscillating-lake.min_depth

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

◆ min_end_time

oscillating-lake.min_end_time

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

◆ min_h

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

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

◆ mode

oscillating-lake.mode

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

◆ offset

oscillating-lake.offset

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

◆ parser

oscillating-lake.parser = exahype2.ArgumentParser()

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

◆ periodic_BC

oscillating-lake.periodic_BC

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

◆ project

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

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

◆ refinement_criterion

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

◆ riemann_solver

oscillating-lake.riemann_solver

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

◆ size

oscillating-lake.size = [4.0, 4.0]

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

◆ throw_away_data_after_build

oscillating-lake.throw_away_data_after_build

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

◆ time_in_between_plots

oscillating-lake.time_in_between_plots = 0.0

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

◆ True

oscillating-lake.True

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