Peano
Loading...
Searching...
No Matches
tohoku-tsunami Namespace Reference

Variables

str initial_conditions
str boundary_conditions
str is_physically_admissible
 parser = exahype2.ArgumentParser()
 min_depth
 end_time
 degrees_of_freedom
 args = parser.parse_args()
dict constants
list size = [4e6, 4e6]
float max_h = 1.1 * min(size) / (3.0**args.min_depth)
float min_h = max_h * 3.0 ** (-args.amr_levels)
int dg_order = args.degrees_of_freedom - 1
 aderdg_solver
 flux
 ncp
 max_eigenvalue
 riemann_solver
 fv_solver
 limiter_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

◆ aderdg_solver

tohoku-tsunami.aderdg_solver
Initial value:
1= exahype2.solvers.aderdg.GlobalAdaptiveTimeStep(
2 name="ADERDGSolver",
3 order=dg_order,
4 unknowns={"h": 1, "hu": 1, "hv": 1, "z": 1},
5 auxiliary_variables=0,
6 min_cell_h=min_h,
7 max_cell_h=max_h,
8 time_step_relaxation=0.9,
9)

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

◆ args

tohoku-tsunami.args = parser.parse_args()

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

◆ boundary_conditions

tohoku-tsunami.boundary_conditions
Initial value:
1= """
2 Qoutside[0] = Qinside[0];
3 Qoutside[1] = 0.0;
4 Qoutside[2] = 0.0;
5 Qoutside[3] = Qinside[3];
6"""

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

◆ const_type

tohoku-tsunami.const_type

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

◆ const_val

tohoku-tsunami.const_val

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

◆ constants

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

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

◆ degrees_of_freedom

tohoku-tsunami.degrees_of_freedom

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

◆ dg_order

int tohoku-tsunami.dg_order = args.degrees_of_freedom - 1

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

◆ dimensions

tohoku-tsunami.dimensions

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

◆ end_time

tohoku-tsunami.end_time

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

◆ first_plot_time_stamp

tohoku-tsunami.first_plot_time_stamp

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

◆ flux

tohoku-tsunami.flux

Definition at line 78 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=dg_order * 2 + 1,
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.9,
9)

Definition at line 123 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 7000000.0,
6 4000000.0,
7 0.0,
8 0.0
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 13 of file tohoku-tsunami.py.

◆ is_physically_admissible

str tohoku-tsunami.is_physically_admissible
Initial value:
1= """
2 if (tarch::la::smallerEquals(Q[0], 1000.0)) {
3 return false;
4 }
5 return true;
6"""

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

◆ limiter_solver

tohoku-tsunami.limiter_solver
Initial value:
1= exahype2.solvers.limiting.StaticLimiting(
2 name="LimiterSolver",
3 regular_solver=aderdg_solver,
4 limiting_solver=fv_solver,
5 physical_admissibility_criterion=is_physically_admissible,
6)

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

◆ make

tohoku-tsunami.make

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

◆ make_clean_first

tohoku-tsunami.make_clean_first

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

◆ max_eigenvalue

tohoku-tsunami.max_eigenvalue

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

◆ max_end_time

tohoku-tsunami.max_end_time

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

◆ max_h

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

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

◆ min_depth

tohoku-tsunami.min_depth

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

◆ min_end_time

tohoku-tsunami.min_end_time

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

◆ min_h

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

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

◆ mode

tohoku-tsunami.mode

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

◆ ncp

tohoku-tsunami.ncp

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

◆ offset

tohoku-tsunami.offset

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

◆ parser

tohoku-tsunami.parser = exahype2.ArgumentParser()

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

◆ periodic_BC

tohoku-tsunami.periodic_BC

Definition at line 178 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 153 of file tohoku-tsunami.py.

◆ riemann_solver

tohoku-tsunami.riemann_solver

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

◆ size

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

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

◆ throw_away_data_after_build

tohoku-tsunami.throw_away_data_after_build

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

◆ time_in_between_plots

tohoku-tsunami.time_in_between_plots = 0.0

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

◆ True

tohoku-tsunami.True

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