Peano
Loading...
Searching...
No Matches
solvers.aderdg.SingleSweep.SingleSweep Class Reference
Inheritance diagram for solvers.aderdg.SingleSweep.SingleSweep:
Collaboration diagram for solvers.aderdg.SingleSweep.SingleSweep:

Public Member Functions

 __init__ (self, name, order, unknowns, auxiliary_variables, min_cell_h, max_cell_h, plot_grid_properties=False, split_sweeps=False)
 create_data_structures (self)
 create_action_sets (self)
 get_user_action_set_includes (self)
Public Member Functions inherited from solvers.aderdg.ADERDG.ADERDG
 __init__ (self, name, order, unknowns, auxiliary_variables, min_cell_h, max_cell_h, plot_grid_properties=False)
 __str__ (self)
 create_readme_descriptor (self, domain_offset, domain_size)
 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.
 add_user_solver_includes (self, value)
 Add further includes to this property, if your solver requires some additional routines from other header files.
 get_name_of_global_instance (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.
 set_solver_constants (self, datastring)
 add_solver_constants (self, datastring)
 order (self)
 unknowns (self)
 auxiliary_variables (self)
 preprocess_reconstructed_patch (self)
 preprocess_reconstructed_patch (self, kernel)
 postprocess_updated_patch (self)
 postprocess_updated_patch (self, kernel)
 add_entries_to_text_replacement_dictionary (self, d)
 set_implementation (self, flux, ncp, eigenvalues, boundary_conditions, refinement_criterion, initial_conditions, source_term, material_parameters, point_source, additional_action_set_includes, additional_user_includes)
 If you pass in User_Defined, then the generator will create C++ stubs that you have to befill manually.
 add_kernel_optimisations (self, is_linear=False, polynomials=Polynomials.Gauss_Legendre, use_libxsmm=False, precision=False, predictor_computation_precisions=False, corrector_computation_precision=False, solution_persistent_storage_precision=False, precompute_picard_precision=False, precision_criterion_implementation=PDETerms.User_Defined_Implementation, riemann_solver_implementation=PDETerms.None_Implementation, architecture="noarch", initialise_patches=False)
 switch_storage_scheme (self, Storage cell_data_storage, Storage face_data_storage)
 By default, we hold all data on the heap using smart pointers.

Data Fields

tuple initialisation_sweep_guard
tuple first_iteration_after_initialisation_guard
Data Fields inherited from solvers.aderdg.ADERDG.ADERDG
str plot_description = ""
str plot_metadata = ""
 select_dofs_to_print = None
str user_action_set_includes = ""
str user_solver_includes = ""

Protected Member Functions

 _store_boundary_data_default_guard (self)
 _delete_face_data_default_guard (self)
 _restrict_face_data_default_guard (self)
 _interpolate_face_data_default_guard (self)
 _init_dictionary_with_default_parameters (self, d)
Protected Member Functions inherited from solvers.aderdg.ADERDG.ADERDG
 _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)
 _unknown_identifier (self)
 _get_default_includes (self)
 _generate_kernels (self, namespace, output, subdirectory, dimensions)

Protected Attributes

str _solver_template_file_class_name = "SingleSweep"
 _split_sweeps = split_sweeps
Protected Attributes inherited from solvers.aderdg.ADERDG.ADERDG
 _name = name
 _order = order
bool _use_var_shortcut = False
list _variable_names = []
list _variable_pos = [0]
 _unknowns = sum(unknowns.values())
 _auxiliary_variables = sum(auxiliary_variables.values())
 _min_cell_h = min_cell_h
 _max_cell_h = max_cell_h
bool _is_linear = False
 _polynomials = Polynomials.Gauss_Legendre
 _basis = GaussLegendreBasis(order + 1)
str _architecture = "noarch"
bool _use_libxsmm = False
bool _initialise_patches = False
list _predictor_computation_precisions = [PrecisionType["double"]]
 _corrector_computation_precision = PrecisionType["double"]
 _solution_persistent_storage_precision = PrecisionType["double"]
bool _precompute_picard_precision = False
bool _use_half_precision = False
 _plot_grid_properties = plot_grid_properties
str _solver_constants = ""
str _compute_time_step_size = "#error Not yet defined"
str _compute_new_time_step_size = "#error Not yet defined"
 _flux_implementation = PDETerms.None_Implementation
 _ncp_implementation = PDETerms.None_Implementation
 _source_term_implementation = PDETerms.None_Implementation
 _point_sources_implementation = PDETerms.None_Implementation
 _eigenvalues_implementation = PDETerms.None_Implementation
 _material_param_implementation = PDETerms.None_Implementation
 _refinement_criterion_implementation = PDETerms.None_Implementation
 _initial_conditions_implementation = PDETerms.None_Implementation
 _boundary_conditions_implementation = PDETerms.None_Implementation
 _precision_criterion_implementation = PDETerms.None_Implementation
 _riemann_solver_implementation = PDETerms.None_Implementation
int _number_of_point_sources = 0
str _abstract_solver_user_declarations = ""
str _abstract_solver_user_definitions = ""
str _solver_user_declarations = ""
str _solver_user_definitions = ""
str _start_time_step_implementation = ""
str _finish_time_step_implementation = ""
str _constructor_implementation = ""
str _destructor_implementation = ""
list _cflAder
float _cflSafetyFactor = 0.0
 _action_set_postprocess_solution = None
str _preprocess_reconstructed_patch = ""
str _postprocess_updated_patch = ""
int _number_of_face_projections = 1
 _current_time_step
 _previous_time_step
 _rhs_estimates_projection
 _flux_estimates_projection
 _cell_data_storage = Storage.CallStack:
 _face_data_storage = Storage.CallStack:
 _cell_label = exahype2.grid.create_cell_label(self._name)
 _face_label = exahype2.grid.create_face_label(self._name)
 _action_set_update_face_label = exahype2.grid.UpdateFaceLabel(self._name)
 _action_set_update_cell_label = exahype2.grid.UpdateCellLabel(self._name)
 _action_set_initial_conditions
 _action_set_initial_conditions_for_grid_construction
 _action_set_handle_boundary
 _action_set_couple_resolution_transitions_and_handle_dynamic_mesh_refinement
 _action_set_correction
 _action_set_prediction
 _action_set_prediction_on_hanging_cells
 _action_set_AMR
 _action_set_AMR_commit_without_further_analysis
 _action_set_AMR_throughout_grid_construction

Detailed Description

Definition at line 6 of file SingleSweep.py.

Constructor & Destructor Documentation

◆ __init__()

solvers.aderdg.SingleSweep.SingleSweep.__init__ ( self,
name,
order,
unknowns,
auxiliary_variables,
min_cell_h,
max_cell_h,
plot_grid_properties = False,
split_sweeps = False )

Definition at line 7 of file SingleSweep.py.

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ _delete_face_data_default_guard()

solvers.aderdg.SingleSweep.SingleSweep._delete_face_data_default_guard ( self)
protected

Reimplemented from solvers.aderdg.ADERDG.ADERDG.

Definition at line 167 of file SingleSweep.py.

References _delete_face_data_default_guard(), exahype2.api.Solver.Solver.get_name_of_global_instance(), and solvers.aderdg.ADERDG.ADERDG.get_name_of_global_instance().

Referenced by _delete_face_data_default_guard().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _init_dictionary_with_default_parameters()

◆ _interpolate_face_data_default_guard()

solvers.aderdg.SingleSweep.SingleSweep._interpolate_face_data_default_guard ( self)
protected

Reimplemented from solvers.aderdg.ADERDG.ADERDG.

Definition at line 181 of file SingleSweep.py.

References _interpolate_face_data_default_guard(), api.solvers.Solver.Solver._name, api.Tree.Tree._name, dastgen2.attributes.Attribute.Attribute._name, dastgen2.attributes.BooleanArray.BooleanArray._name, dastgen2.attributes.Enumeration.Enumeration._name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling._name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling._name, exagrype.api.FOSOSolver.FOSOSolver._name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling._name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling._name, exahype2.api.AuxiliaryVariables.AuxiliaryVariables._name, exahype2.api.dslhype.SyntaxTree.Construction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromDotProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromExisting._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromFunction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromMatrixVectorProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromOperation._name, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._name, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._name, exahype2.api.Solver.Solver._name, mghype::matrixfree::solvers::Solver._name, peano4.api.dastgen2.Peano4DoubleArray.Peano4DoubleArray._name, peano4.api.dastgen2.Peano4IntegerArray.Peano4IntegerArray._name, peano4.api.dastgen2.Peano4SmartPointerDoubleArray.Peano4SmartPointerDoubleArray._name, peano4::RunMultipleSteps._name, solvers.aderdg.ADERDG.ADERDG._name, solvers.api.Solver.Solver._name, tarch::services::ServiceRepository::ServiceEntry._name, exahype2.api.Solver.Solver.get_name_of_global_instance(), and solvers.aderdg.ADERDG.ADERDG.get_name_of_global_instance().

Referenced by _interpolate_face_data_default_guard().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _restrict_face_data_default_guard()

solvers.aderdg.SingleSweep.SingleSweep._restrict_face_data_default_guard ( self)
protected

Reimplemented from solvers.aderdg.ADERDG.ADERDG.

Definition at line 174 of file SingleSweep.py.

References api.solvers.Solver.Solver._name, api.Tree.Tree._name, dastgen2.attributes.Attribute.Attribute._name, dastgen2.attributes.BooleanArray.BooleanArray._name, dastgen2.attributes.Enumeration.Enumeration._name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling._name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling._name, exagrype.api.FOSOSolver.FOSOSolver._name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling._name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling._name, exahype2.api.AuxiliaryVariables.AuxiliaryVariables._name, exahype2.api.dslhype.SyntaxTree.Construction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromDotProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromExisting._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromFunction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromMatrixVectorProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromOperation._name, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._name, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._name, exahype2.api.Solver.Solver._name, mghype::matrixfree::solvers::Solver._name, peano4.api.dastgen2.Peano4DoubleArray.Peano4DoubleArray._name, peano4.api.dastgen2.Peano4IntegerArray.Peano4IntegerArray._name, peano4.api.dastgen2.Peano4SmartPointerDoubleArray.Peano4SmartPointerDoubleArray._name, peano4::RunMultipleSteps._name, solvers.aderdg.ADERDG.ADERDG._name, solvers.api.Solver.Solver._name, tarch::services::ServiceRepository::ServiceEntry._name, _restrict_face_data_default_guard(), exahype2.api.Solver.Solver.get_name_of_global_instance(), and solvers.aderdg.ADERDG.ADERDG.get_name_of_global_instance().

Referenced by _restrict_face_data_default_guard().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _store_boundary_data_default_guard()

solvers.aderdg.SingleSweep.SingleSweep._store_boundary_data_default_guard ( self)
protected

Reimplemented from solvers.aderdg.ADERDG.ADERDG.

Definition at line 160 of file SingleSweep.py.

References _store_boundary_data_default_guard(), exahype2.api.Solver.Solver.get_name_of_global_instance(), and solvers.aderdg.ADERDG.ADERDG.get_name_of_global_instance().

Referenced by _store_boundary_data_default_guard().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_action_sets()

solvers.aderdg.SingleSweep.SingleSweep.create_action_sets ( self)

Reimplemented from solvers.aderdg.ADERDG.ADERDG.

Definition at line 121 of file SingleSweep.py.

References solvers.aderdg.ADERDG.ADERDG._action_set_correction, solvers.aderdg.ADERDG.ADERDG._action_set_prediction, solvers.aderdg.ADERDG.ADERDG._action_set_prediction_on_hanging_cells, api.solvers.Solver.Solver._name, api.Tree.Tree._name, dastgen2.attributes.Attribute.Attribute._name, dastgen2.attributes.BooleanArray.BooleanArray._name, dastgen2.attributes.Enumeration.Enumeration._name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling._name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling._name, exagrype.api.FOSOSolver.FOSOSolver._name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling._name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling._name, exahype2.api.AuxiliaryVariables.AuxiliaryVariables._name, exahype2.api.dslhype.SyntaxTree.Construction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromDotProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromExisting._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromFunction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromMatrixVectorProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromOperation._name, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._name, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._name, exahype2.api.Solver.Solver._name, mghype::matrixfree::solvers::Solver._name, peano4.api.dastgen2.Peano4DoubleArray.Peano4DoubleArray._name, peano4.api.dastgen2.Peano4IntegerArray.Peano4IntegerArray._name, peano4.api.dastgen2.Peano4SmartPointerDoubleArray.Peano4SmartPointerDoubleArray._name, peano4::RunMultipleSteps._name, solvers.aderdg.ADERDG.ADERDG._name, solvers.api.Solver.Solver._name, tarch::services::ServiceRepository::ServiceEntry._name, solvers.aderdg.ADERDG.ADERDG._store_cell_data_default_guard(), create_action_sets(), exahype2.api.Solver.Solver.get_name_of_global_instance(), and solvers.aderdg.ADERDG.ADERDG.get_name_of_global_instance().

Referenced by solvers.fv.FV.FV.auxiliary_variables(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.auxiliary_variables(), solvers.elliptic.AMRMarker.AMRMarker.couple_with_FV_solver(), create_action_sets(), solvers.fv.FV.FV.interpolation(), solvers.fv.FV.FV.overlap(), solvers.fv.FV.FV.patch_size(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.postprocess_updated_cell(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.postprocess_updated_cell_after_final_linear_combination(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.postprocess_updated_cell_after_Runge_Kutta_step(), solvers.fv.FV.FV.postprocess_updated_patch(), solvers.fv.FV.FV.preprocess_reconstructed_patch(), solvers.fv.FV.FV.restriction(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.set_implementation(), solvers.fv.FV.FV.switch_storage_scheme(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.switch_storage_scheme(), solvers.fv.FV.FV.unknowns(), and solvers.rkdg.RungeKuttaDG.RungeKuttaDG.unknowns().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_data_structures()

◆ get_user_action_set_includes()

solvers.aderdg.SingleSweep.SingleSweep.get_user_action_set_includes ( self)

Reimplemented from solvers.aderdg.ADERDG.ADERDG.

Definition at line 153 of file SingleSweep.py.

References get_user_action_set_includes().

Referenced by get_user_action_set_includes().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _solver_template_file_class_name

str solvers.aderdg.SingleSweep.SingleSweep._solver_template_file_class_name = "SingleSweep"
protected

◆ _split_sweeps

solvers.aderdg.SingleSweep.SingleSweep._split_sweeps = split_sweeps
protected

Definition at line 33 of file SingleSweep.py.

Referenced by _init_dictionary_with_default_parameters().

◆ first_iteration_after_initialisation_guard

tuple solvers.aderdg.SingleSweep.SingleSweep.first_iteration_after_initialisation_guard
Initial value:
= (
"("
+ "repositories::"
+ self.get_name_of_global_instance()
+ ".getSolverState()=="
+ self._name
+ "::SolverState::InitialPrediction or "
+ "(repositories::"
+ self.get_name_of_global_instance()
+ ".getSolverState()=="
+ self._name
+ "::SolverState::Plotting"
+ " and repositories::"
+ self.get_name_of_global_instance()
+ ".getMinTimeStamp()==0.))"
)

Definition at line 50 of file SingleSweep.py.

◆ initialisation_sweep_guard

tuple solvers.aderdg.SingleSweep.SingleSweep.initialisation_sweep_guard
Initial value:
= (
"("
+ "repositories::"
+ self.get_name_of_global_instance()
+ ".getSolverState()=="
+ self._name
+ "::SolverState::GridInitialisation"
+ ")"
)

Definition at line 41 of file SingleSweep.py.


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