Peano
Loading...
Searching...
No Matches
solvers.limiting.StaticLimiting.StaticLimiting Class Reference
Inheritance diagram for solvers.limiting.StaticLimiting.StaticLimiting:
Collaboration diagram for solvers.limiting.StaticLimiting.StaticLimiting:

Public Member Functions

 __init__ (self, name, regular_solver, limiting_solver, limiting_criterion_implementation=PDETerms.User_Defined_Implementation)
 create_data_structures (self)
 This will serve as a face marker to communicate with neighbouring cells whether a given cell is troubled, is neighbouring a troubled cell, or is fine.
 create_action_sets (self)
 create_readme_descriptor (self, domain_offset, domain_size)
 get_user_action_set_includes (self)
 get_user_solver_includes (self)
 add_user_action_set_includes (self, value)
 Add further includes to this property, if your action sets require some additional routines from other header files.
 get_name_of_global_instance (self)
 __str__ (self)
 add_to_Peano4_datamodel (self, datamodel, verbose)
 add_use_data_statements_to_Peano4_solver_step (self, step)
 add_actions_to_init_grid (self, step)
 add_actions_to_create_grid (self, step, evaluate_refinement_criterion)
 add_actions_to_plot_solution (self, step, output_path)
 add_actions_to_perform_time_step (self, step)
 set_plot_description (self, description)
 add_implementation_files_to_project (self, namespace, output, dimensions, subdirectory="")
 The ExaHyPE2 project will call this operation when it sets up the overall environment.
 add_entries_to_text_replacement_dictionary (self, d)

Data Fields

str user_action_set_includes = ""
str user_solver_includes = ""
 plot_description = description

Protected Member Functions

 _store_cell_data_default_guard (self)
 _provide_cell_data_to_compute_kernels_default_guard (self)
 _provide_face_data_to_compute_kernels_default_guard (self)
 _load_cell_data_default_guard (self)
 _store_face_data_default_guard (self)
 _load_face_data_default_guard (self)
 _store_boundary_data_default_guard (self)
 _clear_face_data_default_guard (self)
 _interpolate_face_data_default_guard (self)
 _restrict_face_data_default_guard (self)
 _unknown_identifier (self)
 _get_default_includes (self)
 _generate_kernels (self, namespace, output, subdirectory, dimensions)
 _init_dictionary_with_default_parameters (self, d)

Protected Attributes

 _name = name
 _regular_solver = regular_solver
 _limiter_solver = limiting_solver
 _halo_size = int(limiting_solver._patch_overlap_old.dim[0] / 2)
str _solver_user_declarations = ""
str _solver_user_definitions = ""
str _start_time_step_implementation = ""
str _finish_time_step_implementation = ""
str _constructor_implementation = ""
 _physical_admissibility_criterion = limiting_criterion_implementation
 _cell_label = exahype2.grid.create_cell_label(self._name)
 _face_label = exahype2.grid.create_face_label(self._name)
 _action_set_save_new_cell_data
 _action_set_check_troubledness
 _action_set_spread_limiter_status
 _action_set_copy_convert_and_project_data

Detailed Description

Definition at line 20 of file StaticLimiting.py.

Constructor & Destructor Documentation

◆ __init__()

solvers.limiting.StaticLimiting.StaticLimiting.__init__ ( self,
name,
regular_solver,
limiting_solver,
limiting_criterion_implementation = PDETerms.User_Defined_Implementation )

Definition at line 22 of file StaticLimiting.py.

Member Function Documentation

◆ __str__()

solvers.limiting.StaticLimiting.StaticLimiting.__str__ ( self)

Definition at line 310 of file StaticLimiting.py.

◆ _clear_face_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._clear_face_data_default_guard ( self)
protected

Definition at line 266 of file StaticLimiting.py.

◆ _generate_kernels()

solvers.limiting.StaticLimiting.StaticLimiting._generate_kernels ( self,
namespace,
output,
subdirectory,
dimensions )
protected

Definition at line 345 of file StaticLimiting.py.

◆ _get_default_includes()

solvers.limiting.StaticLimiting.StaticLimiting._get_default_includes ( self)
protected

Definition at line 294 of file StaticLimiting.py.

◆ _init_dictionary_with_default_parameters()

◆ _interpolate_face_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._interpolate_face_data_default_guard ( self)
protected

Definition at line 276 of file StaticLimiting.py.

◆ _load_cell_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._load_cell_data_default_guard ( self)
protected

Definition at line 215 of file StaticLimiting.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG.add_actions_to_plot_solution().

Here is the caller graph for this function:

◆ _load_face_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._load_face_data_default_guard ( self)
protected

Definition at line 240 of file StaticLimiting.py.

◆ _provide_cell_data_to_compute_kernels_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._provide_cell_data_to_compute_kernels_default_guard ( self)
protected

◆ _provide_face_data_to_compute_kernels_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._provide_face_data_to_compute_kernels_default_guard ( self)
protected

Definition at line 205 of file StaticLimiting.py.

◆ _restrict_face_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._restrict_face_data_default_guard ( self)
protected

Definition at line 285 of file StaticLimiting.py.

◆ _store_boundary_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._store_boundary_data_default_guard ( self)
protected

Definition at line 255 of file StaticLimiting.py.

◆ _store_cell_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._store_cell_data_default_guard ( self)
protected

◆ _store_face_data_default_guard()

solvers.limiting.StaticLimiting.StaticLimiting._store_face_data_default_guard ( self)
protected

Definition at line 230 of file StaticLimiting.py.

◆ _unknown_identifier()

solvers.limiting.StaticLimiting.StaticLimiting._unknown_identifier ( self)
protected

◆ add_actions_to_create_grid()

solvers.limiting.StaticLimiting.StaticLimiting.add_actions_to_create_grid ( self,
step,
evaluate_refinement_criterion )

Definition at line 330 of file StaticLimiting.py.

◆ add_actions_to_init_grid()

solvers.limiting.StaticLimiting.StaticLimiting.add_actions_to_init_grid ( self,
step )

Definition at line 326 of file StaticLimiting.py.

◆ add_actions_to_perform_time_step()

solvers.limiting.StaticLimiting.StaticLimiting.add_actions_to_perform_time_step ( self,
step )

Definition at line 337 of file StaticLimiting.py.

◆ add_actions_to_plot_solution()

solvers.limiting.StaticLimiting.StaticLimiting.add_actions_to_plot_solution ( self,
step,
output_path )

Definition at line 333 of file StaticLimiting.py.

◆ add_entries_to_text_replacement_dictionary()

solvers.limiting.StaticLimiting.StaticLimiting.add_entries_to_text_replacement_dictionary ( self,
d )

◆ add_implementation_files_to_project()

solvers.limiting.StaticLimiting.StaticLimiting.add_implementation_files_to_project ( self,
namespace,
output,
dimensions,
subdirectory = "" )

The ExaHyPE2 project will call this operation when it sets up the overall environment.

This routine is typically not invoked by a user.

output: peano4.api.output.Output

Definition at line 375 of file StaticLimiting.py.

◆ add_to_Peano4_datamodel()

solvers.limiting.StaticLimiting.StaticLimiting.add_to_Peano4_datamodel ( self,
datamodel,
verbose )

Definition at line 318 of file StaticLimiting.py.

◆ add_use_data_statements_to_Peano4_solver_step()

solvers.limiting.StaticLimiting.StaticLimiting.add_use_data_statements_to_Peano4_solver_step ( self,
step )

Definition at line 322 of file StaticLimiting.py.

◆ add_user_action_set_includes()

solvers.limiting.StaticLimiting.StaticLimiting.add_user_action_set_includes ( self,
value )

Add further includes to this property, if your action sets require some additional routines from other header files.

Definition at line 178 of file StaticLimiting.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG.set_implementation().

Here is the caller graph for this function:

◆ create_action_sets()

◆ create_data_structures()

solvers.limiting.StaticLimiting.StaticLimiting.create_data_structures ( self)

This will serve as a face marker to communicate with neighbouring cells whether a given cell is troubled, is neighbouring a troubled cell, or is fine.

Cells that are troubled or neighbouring a troubled cell must rollback their solution to the previous one and perform one timestep using a more robust FV scheme. Therefore these and their neighbours must convert the DG representation of their previous solution to an FV representation and project it to their faces so that these can be exchanged with their neighbours.

Definition at line 73 of file StaticLimiting.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG.auxiliary_variables(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.postprocess_updated_cell_after_final_linear_combination(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.postprocess_updated_cell_after_Runge_Kutta_step(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.set_implementation(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.switch_storage_scheme(), and solvers.rkdg.RungeKuttaDG.RungeKuttaDG.unknowns().

Here is the caller graph for this function:

◆ create_readme_descriptor()

solvers.limiting.StaticLimiting.StaticLimiting.create_readme_descriptor ( self,
domain_offset,
domain_size )

Definition at line 167 of file StaticLimiting.py.

◆ get_name_of_global_instance()

◆ get_user_action_set_includes()

solvers.limiting.StaticLimiting.StaticLimiting.get_user_action_set_includes ( self)

Definition at line 172 of file StaticLimiting.py.

◆ get_user_solver_includes()

solvers.limiting.StaticLimiting.StaticLimiting.get_user_solver_includes ( self)

Definition at line 175 of file StaticLimiting.py.

◆ set_plot_description()

solvers.limiting.StaticLimiting.StaticLimiting.set_plot_description ( self,
description )

Definition at line 342 of file StaticLimiting.py.

Field Documentation

◆ _action_set_check_troubledness

solvers.limiting.StaticLimiting.StaticLimiting._action_set_check_troubledness
protected
Initial value:
= VerifyTroubledness(self, use_PAC=True,
guard = ("not marker.willBeRefined() and not marker.hasBeenRefined() and" +
" repositories::" + self.get_name_of_global_instance() + ".getSolverState()==" + self._name + "::SolverState::GridInitialisation"
))

Definition at line 116 of file StaticLimiting.py.

◆ _action_set_copy_convert_and_project_data

solvers.limiting.StaticLimiting.StaticLimiting._action_set_copy_convert_and_project_data
protected
Initial value:
= CopyAndConvertPatch(self,
regularToLimiterGuard = ("not marker.willBeRefined() and not marker.hasBeenRefined()"
+ " and repositories::" + self.get_name_of_global_instance() + ".getSolverState()==" + self._name + "::SolverState::TimeStep"
+ " and fineGridCell" + self._name + "CellLabel.getTroubled_Marker()<=celldata::" + self._name + "CellLabel::Troubled_Marker::REGULAR_TO_LIMITER"
+ " and " + "repositories::" + self.get_name_of_global_instance() + ".isFirstGridSweepOfTimeStep()"),
limiterToRegularGuard = ( "not marker.willBeRefined() and not marker.hasBeenRefined()"
+ " and " + "repositories::" + self.get_name_of_global_instance() + ".isLastGridSweepOfTimeStep()"
+ " and fineGridCell" + self._name + "CellLabel.getTroubled_Marker()==celldata::" + self._name + "CellLabel::Troubled_Marker::LIMITER_TO_REGULAR")
)

Definition at line 126 of file StaticLimiting.py.

◆ _action_set_save_new_cell_data

solvers.limiting.StaticLimiting.StaticLimiting._action_set_save_new_cell_data
protected
Initial value:
= SaveNewCellData(self,
guard = ("not marker.willBeRefined() and not marker.hasBeenRefined()"
+ " and repositories::" + self.get_name_of_global_instance() + ".getSolverState()==" + self._name + "::SolverState::TimeStep"
+ " and " + "repositories::" + self.get_name_of_global_instance() + ".isFirstGridSweepOfTimeStep()"),
transmit_cell_timestamps=True
)

Definition at line 109 of file StaticLimiting.py.

◆ _action_set_spread_limiter_status

solvers.limiting.StaticLimiting.StaticLimiting._action_set_spread_limiter_status
protected
Initial value:
= SpreadLimiterStatus(self,
guard = ("not marker.willBeRefined() and not marker.hasBeenRefined() and" +
" repositories::" + self.get_name_of_global_instance() + ".getSolverState()==" + self._name + "::SolverState::LimiterStatusSpreadingToNeighbours"
))

Definition at line 121 of file StaticLimiting.py.

◆ _cell_label

solvers.limiting.StaticLimiting.StaticLimiting._cell_label = exahype2.grid.create_cell_label(self._name)
protected

◆ _constructor_implementation

str solvers.limiting.StaticLimiting.StaticLimiting._constructor_implementation = ""
protected

◆ _face_label

solvers.limiting.StaticLimiting.StaticLimiting._face_label = exahype2.grid.create_face_label(self._name)
protected

◆ _finish_time_step_implementation

str solvers.limiting.StaticLimiting.StaticLimiting._finish_time_step_implementation = ""
protected

◆ _halo_size

solvers.limiting.StaticLimiting.StaticLimiting._halo_size = int(limiting_solver._patch_overlap_old.dim[0] / 2)
protected

Definition at line 35 of file StaticLimiting.py.

◆ _limiter_solver

solvers.limiting.StaticLimiting.StaticLimiting._limiter_solver = limiting_solver
protected

Definition at line 33 of file StaticLimiting.py.

◆ _name

solvers.limiting.StaticLimiting.StaticLimiting._name = name
protected

Definition at line 29 of file StaticLimiting.py.

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG.__str__(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._load_cell_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._load_face_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._provide_cell_data_to_compute_kernels_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._provide_face_data_to_compute_kernels_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._store_cell_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._store_face_data_default_guard(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._unknown_identifier(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.add_actions_to_plot_solution(), solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.add_entries_to_text_replacement_dictionary(), solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.create_action_sets(), solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking.create_action_sets(), solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep.create_action_sets(), solvers.fv.rusanov.SubcyclingFixedTimeStepWithEnclaveTasking.SubcyclingFixedTimeStepWithEnclaveTasking.create_action_sets(), solvers.rkdg.SeparateSweeps.SeparateSweeps.create_action_sets(), and solvers.rkdg.RungeKuttaDG.RungeKuttaDG.get_name_of_global_instance().

◆ _physical_admissibility_criterion

solvers.limiting.StaticLimiting.StaticLimiting._physical_admissibility_criterion = limiting_criterion_implementation
protected

Definition at line 57 of file StaticLimiting.py.

◆ _regular_solver

solvers.limiting.StaticLimiting.StaticLimiting._regular_solver = regular_solver
protected

Definition at line 32 of file StaticLimiting.py.

◆ _solver_user_declarations

str solvers.limiting.StaticLimiting.StaticLimiting._solver_user_declarations = ""
protected

◆ _solver_user_definitions

str solvers.limiting.StaticLimiting.StaticLimiting._solver_user_definitions = ""
protected

◆ _start_time_step_implementation

str solvers.limiting.StaticLimiting.StaticLimiting._start_time_step_implementation = ""
protected

◆ plot_description

solvers.limiting.StaticLimiting.StaticLimiting.plot_description = description

◆ user_action_set_includes

◆ user_solver_includes


The documentation for this class was generated from the following file: