Peano
tohoku-tsunami 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 = [7e6, 4e6]
 
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

tohoku-tsunami.args = parser.parse_args()

Definition at line 51 of file tohoku-tsunami.py.

◆ boundary_conditions

tohoku-tsunami.boundary_conditions
Initial value:
1 = """
2  for (int i = 0; i < NumberOfUnknowns + NumberOfAuxiliaryVariables; i++) {
3  Qoutside[i] = Qinside[i];
4  }
5 """

Definition at line 32 of file tohoku-tsunami.py.

◆ const_type

tohoku-tsunami.const_type

Definition at line 120 of file tohoku-tsunami.py.

◆ const_val

tohoku-tsunami.const_val

Definition at line 120 of file tohoku-tsunami.py.

◆ constants

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

Definition at line 53 of file tohoku-tsunami.py.

◆ dimensions

tohoku-tsunami.dimensions

Definition at line 103 of file tohoku-tsunami.py.

◆ end_time

tohoku-tsunami.end_time

Definition at line 49 of file tohoku-tsunami.py.

◆ first_plot_time_stamp

tohoku-tsunami.first_plot_time_stamp

Definition at line 108 of file tohoku-tsunami.py.

◆ fv_solver

tohoku-tsunami.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  use_enclave_tasking=args.enclave_tasking,
10  number_of_enclave_tasks=args.ntasks,
11 )

Definition at line 62 of file tohoku-tsunami.py.

◆ initial_conditions

tohoku-tsunami.initial_conditions
Initial value:
1 = """
2  static tarch::reader::NetCDFFieldParser fieldParser(
3  \"tohoku_gebco_ucsb3_2000m_hawaii_bath.nc\",
4  \"tohoku_gebco_ucsb3_2000m_hawaii_displ.nc\",
5  DomainSize(0),
6  DomainSize(1),
7  DomainOffset(0),
8  DomainOffset(1)
9  );
10 
11  const double bathymetryBeforeEarthquake = fieldParser.sampleTopology(x(0), x(1));
12  const double displacement = fieldParser.sampleDisplacement(x(0), x(1));
13  const double bathymetryAfterEarthquake = bathymetryBeforeEarthquake + displacement;
14 
15  Q[Shortcuts::h] = -std::min(bathymetryBeforeEarthquake, 0.0);
16  Q[Shortcuts::hu] = 0.0;
17  Q[Shortcuts::hv] = 0.0;
18  Q[Shortcuts::z] = bathymetryAfterEarthquake;
19 """

Definition at line 12 of file tohoku-tsunami.py.

◆ make

tohoku-tsunami.make

Definition at line 126 of file tohoku-tsunami.py.

◆ make_clean_first

tohoku-tsunami.make_clean_first

Definition at line 126 of file tohoku-tsunami.py.

◆ max_end_time

tohoku-tsunami.max_end_time

Definition at line 107 of file tohoku-tsunami.py.

◆ max_h

tuple tohoku-tsunami.max_h = (1.1 * min(size) / (3.0**args.min_depth))

Definition at line 59 of file tohoku-tsunami.py.

◆ min_depth

tohoku-tsunami.min_depth

Definition at line 48 of file tohoku-tsunami.py.

◆ min_end_time

tohoku-tsunami.min_end_time

Definition at line 106 of file tohoku-tsunami.py.

◆ min_h

tuple tohoku-tsunami.min_h = max_h * 3.0 ** (-args.amr_levels)

Definition at line 60 of file tohoku-tsunami.py.

◆ mode

tohoku-tsunami.mode

Definition at line 117 of file tohoku-tsunami.py.

◆ offset

tohoku-tsunami.offset

Definition at line 105 of file tohoku-tsunami.py.

◆ parser

tohoku-tsunami.parser = exahype2.ArgumentParser()

Definition at line 46 of file tohoku-tsunami.py.

◆ periodic_BC

tohoku-tsunami.periodic_BC

Definition at line 110 of file tohoku-tsunami.py.

◆ project

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

Definition at line 88 of file tohoku-tsunami.py.

◆ refinement_criterion

tohoku-tsunami.refinement_criterion
Initial value:
1 = """
2  auto result = ::exahype2::RefinementCommand::Keep;
3  if (x(0) <= 2e6 and x(1) >= 2e6) {
4  result = ::exahype2::RefinementCommand::Refine;
5  }
6  return result;
7 """

Definition at line 38 of file tohoku-tsunami.py.

◆ riemann_solver

tohoku-tsunami.riemann_solver

Definition at line 78 of file tohoku-tsunami.py.

◆ size

tohoku-tsunami.size = [7e6, 4e6]

Definition at line 58 of file tohoku-tsunami.py.

◆ throw_away_data_after_build

tohoku-tsunami.throw_away_data_after_build

Definition at line 126 of file tohoku-tsunami.py.

◆ time_in_between_plots

tohoku-tsunami.time_in_between_plots = 0.0

Definition at line 97 of file tohoku-tsunami.py.

◆ True

tohoku-tsunami.True

Definition at line 126 of file tohoku-tsunami.py.