Peano
Loading...
Searching...
No Matches
chile-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]
list offset = [3e6, 0.0]
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
 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

chile-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 84 of file chile-tsunami.py.

◆ args

chile-tsunami.args = parser.parse_args()

Definition at line 71 of file chile-tsunami.py.

◆ boundary_conditions

chile-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 chile-tsunami.py.

◆ const_type

chile-tsunami.const_type

Definition at line 211 of file chile-tsunami.py.

◆ const_val

chile-tsunami.const_val

Definition at line 211 of file chile-tsunami.py.

◆ constants

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

Definition at line 73 of file chile-tsunami.py.

◆ degrees_of_freedom

chile-tsunami.degrees_of_freedom

Definition at line 69 of file chile-tsunami.py.

◆ dg_order

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

Definition at line 82 of file chile-tsunami.py.

◆ dimensions

chile-tsunami.dimensions

Definition at line 190 of file chile-tsunami.py.

◆ end_time

chile-tsunami.end_time

Definition at line 68 of file chile-tsunami.py.

◆ first_plot_time_stamp

chile-tsunami.first_plot_time_stamp

Definition at line 195 of file chile-tsunami.py.

◆ flux

chile-tsunami.flux

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

◆ fv_solver

chile-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 142 of file chile-tsunami.py.

◆ initial_conditions

chile-tsunami.initial_conditions
Initial value:
1= """
2 static tarch::reader::NetCDFFieldParser fieldParser(
3 \"chile_gebco_usgs_2000m_bath.nc\",
4 \"chile_gebco_usgs_2000m_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 chile-tsunami.py.

◆ is_physically_admissible

str chile-tsunami.is_physically_admissible
Initial value:
1= """
2 bool isAdmissible = Q[0] > 100.0;
3
4 tarch::la::Vector<DIMENSIONS, double> bblPos = {3050000., 400000.};
5 isAdmissible &= tarch::la::norm2(x-bblPos) > 5000.;
6
7 tarch::la::Vector<DIMENSIONS, double> blPos = {3050000., 940000.};
8 isAdmissible &= tarch::la::norm2(x-blPos) > 5000.;
9
10 tarch::la::Vector<DIMENSIONS, double> mPos = {5350000., 2320000.};
11 isAdmissible &= tarch::la::norm2(x-mPos) > 25000.;
12
13 tarch::la::Vector<DIMENSIONS, double> tlPos = {3790000., 3360000.};
14 isAdmissible &= tarch::la::norm2(x-tlPos) > 5000.;
15
16 tarch::la::Vector<DIMENSIONS, double> ttlPos = {3665000., 3410000.};
17 isAdmissible &= tarch::la::norm2(x-ttlPos) > 50000.;
18
19 // Juan Fernández Islands
20 tarch::la::Vector<DIMENSIONS, double> jfiPos = {5960000., 1040000.};
21 isAdmissible &= tarch::la::norm2(x-jfiPos) > 10000.;
22
23 return isAdmissible;
24"""

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

◆ limiter_solver

chile-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 165 of file chile-tsunami.py.

◆ make

chile-tsunami.make

Definition at line 214 of file chile-tsunami.py.

◆ make_clean_first

chile-tsunami.make_clean_first

Definition at line 214 of file chile-tsunami.py.

◆ max_eigenvalue

chile-tsunami.max_eigenvalue

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

◆ max_end_time

chile-tsunami.max_end_time

Definition at line 194 of file chile-tsunami.py.

◆ max_h

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

Definition at line 80 of file chile-tsunami.py.

◆ min_depth

chile-tsunami.min_depth

Definition at line 67 of file chile-tsunami.py.

◆ min_end_time

chile-tsunami.min_end_time

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

◆ min_h

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

Definition at line 81 of file chile-tsunami.py.

◆ mode

chile-tsunami.mode

Definition at line 207 of file chile-tsunami.py.

◆ ncp

chile-tsunami.ncp

Definition at line 104 of file chile-tsunami.py.

◆ offset

chile-tsunami.offset = [3e6, 0.0]

Definition at line 79 of file chile-tsunami.py.

◆ parser

chile-tsunami.parser = exahype2.ArgumentParser()

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

◆ periodic_BC

chile-tsunami.periodic_BC

Definition at line 197 of file chile-tsunami.py.

◆ project

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

Definition at line 172 of file chile-tsunami.py.

◆ riemann_solver

chile-tsunami.riemann_solver

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

◆ size

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

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

◆ throw_away_data_after_build

chile-tsunami.throw_away_data_after_build

Definition at line 214 of file chile-tsunami.py.

◆ time_in_between_plots

chile-tsunami.time_in_between_plots = 0.0

Definition at line 184 of file chile-tsunami.py.

◆ True

chile-tsunami.True

Definition at line 214 of file chile-tsunami.py.