Peano
Loading...
Searching...
No Matches
point-explosion Namespace Reference

Variables

str initial_conditions
str boundary_conditions
str refinement_criterion
 parser = exahype2.ArgumentParser("ExaHyPE 2 Euler Point Explosion Argument Parser")
 min_depth
 degrees_of_freedom
 args = parser.parse_args()
list size = [1.0, 1.0, 1.0]
float max_h = 1.1 * min(size) / (3.0**args.min_depth)
float min_h = max_h * 3.0 ** (-args.amr_levels)
 riemann_solver
 max_eigenvalue
 flux
 project
float time_in_between_plots = 0.0
 dimensions
 offset
 min_end_time
 max_end_time
 first_plot_time_stamp
 periodic_BC
 mode
 make
 True
 make_clean_first
 throw_away_data_after_build

Variable Documentation

◆ args

point-explosion.args = parser.parse_args()

Definition at line 58 of file point-explosion.py.

◆ boundary_conditions

point-explosion.boundary_conditions
Initial value:
1= """
2 // Reflective boundary conditions
3 Qoutside[Shortcuts::rho] = Qinside[Shortcuts::rho];
4 Qoutside[Shortcuts::rhoU + 0] = -Qinside[Shortcuts::rhoU + 0];
5 Qoutside[Shortcuts::rhoU + 1] = -Qinside[Shortcuts::rhoU + 1];
6#if DIMENSIONS == 3
7 Qoutside[Shortcuts::rhoU + 2] = -Qinside[Shortcuts::rhoU + 2];
8#endif
9 Qoutside[Shortcuts::rhoE] = Qinside[Shortcuts::rhoE];
10"""

Definition at line 24 of file point-explosion.py.

◆ degrees_of_freedom

point-explosion.degrees_of_freedom

Definition at line 56 of file point-explosion.py.

◆ dimensions

point-explosion.dimensions

Definition at line 101 of file point-explosion.py.

◆ first_plot_time_stamp

point-explosion.first_plot_time_stamp

Definition at line 106 of file point-explosion.py.

◆ flux

point-explosion.flux

Definition at line 81 of file point-explosion.py.

◆ initial_conditions

point-explosion.initial_conditions
Initial value:
1= """
2 Q[Shortcuts::rho] = 1.0;
3 Q[Shortcuts::rhoU + 0] = 0.0;
4 Q[Shortcuts::rhoU + 1] = 0.0;
5#if DIMENSIONS == 2
6 Q[Shortcuts::rhoE] = ((std::sqrt(std::pow(0.5 - x(0), 2) + std::pow(0.5 - x(1), 2)) < 0.2) ? (1.0) : (1.01));
7#else
8 Q[Shortcuts::rhoU + 2] = 0.0;
9 Q[Shortcuts::rhoE] = ((std::sqrt(std::pow(0.5 - x(0), 2) + std::pow(0.5 - x(1), 2) + std::pow(0.5 - x(2), 2)) < 0.2) ? (1.0) : (1.01));
10#endif
11"""

Definition at line 12 of file point-explosion.py.

◆ make

point-explosion.make

Definition at line 125 of file point-explosion.py.

◆ make_clean_first

point-explosion.make_clean_first

Definition at line 125 of file point-explosion.py.

◆ max_eigenvalue

point-explosion.max_eigenvalue

Definition at line 80 of file point-explosion.py.

◆ max_end_time

point-explosion.max_end_time

Definition at line 105 of file point-explosion.py.

◆ max_h

float point-explosion.max_h = 1.1 * min(size) / (3.0**args.min_depth)

Definition at line 61 of file point-explosion.py.

◆ min_depth

point-explosion.min_depth

Definition at line 55 of file point-explosion.py.

◆ min_end_time

point-explosion.min_end_time

Definition at line 104 of file point-explosion.py.

◆ min_h

float point-explosion.min_h = max_h * 3.0 ** (-args.amr_levels)

Definition at line 62 of file point-explosion.py.

◆ mode

point-explosion.mode

Definition at line 119 of file point-explosion.py.

◆ offset

point-explosion.offset

Definition at line 103 of file point-explosion.py.

◆ parser

point-explosion.parser = exahype2.ArgumentParser("ExaHyPE 2 Euler Point Explosion Argument Parser")

Definition at line 53 of file point-explosion.py.

◆ periodic_BC

point-explosion.periodic_BC

Definition at line 108 of file point-explosion.py.

◆ project

point-explosion.project
Initial value:
1= exahype2.Project(
2 namespace=["applications", "exahype2", "euler"],
3 project_name="PointExplosion",
4 directory=".",
5 executable="Euler",
6)

Definition at line 86 of file point-explosion.py.

◆ refinement_criterion

point-explosion.refinement_criterion
Initial value:
1= """
2 auto result = ::exahype2::RefinementCommand::Keep;
3
4#if DIMENSIONS == 3
5 tarch::la::Vector<DIMENSIONS, double> circleCentre = {0.5, 0.5, 0.5};
6#else
7 tarch::la::Vector<DIMENSIONS, double> circleCentre = {0.5, 0.5};
8#endif
9
10 if (tarch::la::equals(t, 0.0)) {
11 if (tarch::la::norm2(x - circleCentre) < 0.1) {
12 result = ::exahype2::RefinementCommand::Refine;
13 }
14 }
15
16 return result;
17"""

Definition at line 35 of file point-explosion.py.

◆ riemann_solver

point-explosion.riemann_solver
Initial value:
1= exahype2.solvers.fv.godunov.GlobalAdaptiveTimeStep(
2 name="FVSolver",
3 patch_size=args.degrees_of_freedom,
4 unknowns={"rho": 1, "rhoU": args.dimensions, "rhoE": 1},
5 auxiliary_variables=0,
6 min_volume_h=min_h,
7 max_volume_h=max_h,
8 time_step_relaxation=0.5,
9 use_enclave_tasking=args.enclave_tasking,
10 number_of_enclave_tasks=args.ntasks,
11)

Definition at line 64 of file point-explosion.py.

◆ size

point-explosion.size = [1.0, 1.0, 1.0]

Definition at line 60 of file point-explosion.py.

◆ throw_away_data_after_build

point-explosion.throw_away_data_after_build

Definition at line 125 of file point-explosion.py.

◆ time_in_between_plots

point-explosion.time_in_between_plots = 0.0

Definition at line 95 of file point-explosion.py.

◆ True

point-explosion.True

Definition at line 125 of file point-explosion.py.