|
| | __init__ (self, name, rk_order, polynomials, unknowns, auxiliary_variables, min_cell_h, max_cell_h, time_step_relaxation, flux=PDETerms.User_Defined_Implementation, eigenvalues=PDETerms.User_Defined_Implementation, ncp=PDETerms.None_Implementation, point_source=PDETerms.None_Implementation, boundary_conditions=PDETerms.User_Defined_Implementation, refinement_criterion=PDETerms.Empty_Implementation, initial_conditions=PDETerms.User_Defined_Implementation, source_term=PDETerms.None_Implementation, plot_grid_properties=False, pde_terms_without_state=False) |
| | Construct RKDG solver with adaptive global time step and enclave tasking.
|
| | set_implementation (self, flux=None, ncp=None, eigenvalues=None, boundary_conditions=None, refinement_criterion=None, initial_conditions=None, source_term=None, point_source=None, 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.
|
| | user_action_set_includes (self) |
|
| | _time_step_relaxation = time_step_relaxation |
| bool | _compute_eigenvalue = True |
| str | _kernel_namespace = "rusanov" |
| | _volumetric_compute_kernel_call = create_volumetric_solver_call_dsl(self._basis, SolverVariant.WithVirtualFunctions) |
| | _volumetric_compute_kernel_call_stateless = create_volumetric_solver_call_dsl(self._basis, SolverVariant.Stateless) |
| | _Riemann_compute_kernel_call = create_Riemann_solver_call_dsl(self._basis, FaceProjections.Solution) |
| | _fused_volumetric_compute_kernel_call_stateless_cpu = create_volumetric_solver_call_dsl(self._basis, SolverVariant.Stateless) |
| | _fused_volumetric_compute_kernel_call_stateless_gpu = create_volumetric_solver_call_dsl(self._basis, SolverVariant.Accelerator) |
| | _add_solver_contributions_call = create_add_solver_contributions_call(self._basis) |
| | _multiply_with_inverted_mass_matrix_call = create_multiply_with_inverted_mass_matrix_call(self._basis) |
| | _unknowns |
| | _auxiliary_variables |
| | _abstract_solver_user_declarations = create_abstract_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._point_sources_implementation, pde_terms_without_state=self._pde_terms_without_state) |
| | _abstract_solver_user_definitions = create_abstract_solver_definitions( self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._point_sources_implementation, pde_terms_without_state=self._pde_terms_without_state) |
| | _solver_user_declarations = create_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._point_sources_implementation, pde_terms_without_state=self._pde_terms_without_state) |
| | _solver_user_definitions = create_solver_definitions( self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._point_sources_implementation, pde_terms_without_state=self._pde_terms_without_state) |
| | _compute_time_step_size = solver_code_snippets.create_compute_time_step_size() |
| | _compute_new_time_step_size = solver_code_snippets.create_compute_new_time_step_size() |
| | _start_time_step_implementation = solver_code_snippets.create_start_time_step_implementation() |
| | _finish_time_step_implementation = solver_code_snippets.create_finish_time_step_implementation() |
| | _constructor_implementation = solver_code_snippets.create_abstract_solver_constructor_statements() |
RKDG solver with global adaptive time step.
Please consult GlobalAdaptiveTimeStep for more documentation. This version is basically the same with the "only" exception being that we employ enclave tasking here.
Definition at line 26 of file GlobalAdaptiveTimeStepWithEnclaveTasking.py.
| solvers.rkdg.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking.set_implementation |
( |
| self, |
|
|
| flux = None, |
|
|
| ncp = None, |
|
|
| eigenvalues = None, |
|
|
| boundary_conditions = None, |
|
|
| refinement_criterion = None, |
|
|
| initial_conditions = None, |
|
|
| source_term = None, |
|
|
| point_source = None, |
|
|
| 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.
If you pass in None_Implementation, it will create nop, i.e., no implementation or defaults. Any other string is copied 1:1 into the implementation. If you pass in None, then the set value so far won't be overwritten.
Please note that not all options are supported by all solvers.
This routine should be the very last invoked by the constructor.
Definition at line 102 of file GlobalAdaptiveTimeStepWithEnclaveTasking.py.
References solvers.aderdg.ADERDG.ADERDG._basis, solvers.rkdg.RungeKuttaDG.RungeKuttaDG._basis, solvers.fv.FV.FV._kernel_namespace, solvers.rkdg.RungeKuttaDG.RungeKuttaDG._kernel_namespace, solvers.rkdg.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._kernel_namespace, _kernel_namespace, and set_implementation().
Referenced by set_implementation().