Peano
Loading...
Searching...
No Matches
solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep Class Reference
Inheritance diagram for solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep:
Collaboration diagram for solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep:

Public Member Functions

 __init__ (self, name, patch_size, unknowns, auxiliary_variables, min_volume_h, max_volume_h, time_step_size, flux=PDETerms.User_Defined_Implementation, ncp=PDETerms.None_Implementation, eigenvalues=PDETerms.User_Defined_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, interpolate_linearly_in_time=True, overlap=1)
 time_step_size: Float This is the normalised time step size w.r.t.
 set_implementation (self, flux=None, ncp=None, eigenvalues=None, boundary_conditions=None, refinement_criterion=None, initial_conditions=None, source_term=None, memory_location=None, use_split_loop=False, 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.
 create_action_sets (self)
 The actual action sets all are created by the superclass.
 create_data_structures (self)

Protected Attributes

 _interpolate_linearly_in_time = interpolate_linearly_in_time
 _time_step_size = time_step_size
 _flux_implementation = PDETerms.None_Implementation
 _ncp_implementation = PDETerms.None_Implementation
 _eigenvalues_implementation = PDETerms.None_Implementation
 _source_term_implementation = PDETerms.None_Implementation
 _patch_size
 _unknowns
 _auxiliary_variables
 _compute_kernel_call
 _compute_kernel_call_stateless
 _abstract_solver_user_declarations = create_abstract_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, 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._pde_terms_without_state)
 _solver_user_declarations = create_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, 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._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()

Detailed Description

Definition at line 23 of file SubcyclingFixedTimeStep.py.

Constructor & Destructor Documentation

◆ __init__()

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep.__init__ ( self,
name,
patch_size,
unknowns,
auxiliary_variables,
min_volume_h,
max_volume_h,
time_step_size,
flux = PDETerms.User_Defined_Implementation,
ncp = PDETerms.None_Implementation,
eigenvalues = PDETerms.User_Defined_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,
interpolate_linearly_in_time = True,
overlap = 1 )

time_step_size: Float This is the normalised time step size w.r.t.

the coarsest admissible h value. If the code employs AMR on top of it and refines further, it will automatically downscale the time step size accordingly. So hand in a valid time step size w.r.t. to max_volume_h.

Definition at line 24 of file SubcyclingFixedTimeStep.py.

Member Function Documentation

◆ create_action_sets()

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep.create_action_sets ( self)

The actual action sets all are created by the superclass.

So nothing is to be done here. But we want to reset the actual updates and projection, and these only happen if we are allowed to update indeed.

Definition at line 147 of file SubcyclingFixedTimeStep.py.

References solvers.aderdg.ADERDG.ADERDG._action_set_AMR, solvers.fv.FV.FV._action_set_AMR, solvers.rkdg.RungeKuttaDG.RungeKuttaDG._action_set_AMR, solvers.fv.EnclaveTasking.EnclaveTasking._action_set_update_cell, solvers.fv.FV.FV._action_set_update_cell, solvers.fv.SingleSweep.SingleSweep._action_set_update_cell, solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._interpolate_linearly_in_time, solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking._interpolate_linearly_in_time, _interpolate_linearly_in_time, solvers.fv.FV.FV._max_volume_h, solvers.fv.FV.FV._min_volume_h, 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, solvers.elliptic.AMRMarker.AMRMarker._name, solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells._name, solvers.fv.EnclaveTasking.EnclaveTasking._name, solvers.fv.FV.FV._name, solvers.limiting.PosterioriLimiting.PosterioriLimiting._name, solvers.limiting.StaticLimiting.StaticLimiting._name, solvers.rkdg.RungeKuttaDG.RungeKuttaDG._name, solvers.rkdg.SeparateSweeps.SeparateSweeps._name, solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking._name, tarch::services::ServiceRepository::ServiceEntry._name, and create_action_sets().

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG.auxiliary_variables(), create_action_sets(), 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 call graph for this function:
Here is the caller graph for this function:

◆ create_data_structures()

◆ set_implementation()

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep.set_implementation ( self,
flux = None,
ncp = None,
eigenvalues = None,
boundary_conditions = None,
refinement_criterion = None,
initial_conditions = None,
source_term = None,
memory_location = None,
use_split_loop = False,
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 70 of file SubcyclingFixedTimeStep.py.

References solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._eigenvalues_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._eigenvalues_implementation, solvers.aderdg.ADERDG.ADERDG._eigenvalues_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._eigenvalues_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._eigenvalues_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._eigenvalues_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._eigenvalues_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._eigenvalues_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._eigenvalues_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._eigenvalues_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._eigenvalues_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking._eigenvalues_implementation, _eigenvalues_implementation, solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._flux_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._flux_implementation, solvers.aderdg.ADERDG.ADERDG._flux_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._flux_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._flux_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._flux_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._flux_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._flux_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._flux_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._flux_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._flux_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking._flux_implementation, _flux_implementation, solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._ncp_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._ncp_implementation, solvers.aderdg.ADERDG.ADERDG._ncp_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._ncp_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._ncp_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._ncp_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._ncp_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._ncp_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._ncp_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._ncp_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._ncp_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking._ncp_implementation, _ncp_implementation, solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._source_term_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._source_term_implementation, solvers.aderdg.ADERDG.ADERDG._source_term_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._source_term_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._source_term_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._source_term_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._source_term_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._source_term_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._source_term_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._source_term_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._source_term_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking._source_term_implementation, and _source_term_implementation.

Field Documentation

◆ _abstract_solver_user_declarations

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._abstract_solver_user_declarations = create_abstract_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _abstract_solver_user_definitions

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._abstract_solver_user_definitions = create_abstract_solver_definitions(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _auxiliary_variables

◆ _compute_kernel_call

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._compute_kernel_call
protected
Initial value:
= create_compute_Riemann_kernel_for_Rusanov_dsl(
self._flux_implementation,
self._ncp_implementation,
self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step = False,
solver_variant = SolverVariant.WithVirtualFunctions,
kernel_variant = KernelVariant.PatchWiseAoS
)

Definition at line 104 of file SubcyclingFixedTimeStep.py.

◆ _compute_kernel_call_stateless

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._compute_kernel_call_stateless
protected
Initial value:
= create_compute_Riemann_kernel_for_Rusanov_dsl(
self._flux_implementation,
self._ncp_implementation,
self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step = False,
solver_variant = SolverVariant.Stateless,
kernel_variant = KernelVariant.PatchWiseAoS
)

Definition at line 113 of file SubcyclingFixedTimeStep.py.

◆ _compute_new_time_step_size

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._compute_new_time_step_size = solver_code_snippets.create_compute_new_time_step_size()
protected

◆ _compute_time_step_size

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._compute_time_step_size = solver_code_snippets.create_compute_time_step_size()
protected

◆ _constructor_implementation

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._constructor_implementation = solver_code_snippets.create_abstract_solver_constructor_statements()
protected

◆ _eigenvalues_implementation

◆ _finish_time_step_implementation

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._finish_time_step_implementation = solver_code_snippets.create_finish_time_step_implementation()
protected

◆ _flux_implementation

◆ _interpolate_linearly_in_time

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._interpolate_linearly_in_time = interpolate_linearly_in_time
protected

◆ _ncp_implementation

◆ _patch_size

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._patch_size
protected

Definition at line 95 of file SubcyclingFixedTimeStep.py.

◆ _solver_user_declarations

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._solver_user_declarations = create_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _solver_user_definitions

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._solver_user_definitions = create_solver_definitions(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _source_term_implementation

◆ _start_time_step_implementation

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._start_time_step_implementation = solver_code_snippets.create_start_time_step_implementation()
protected

◆ _time_step_size

solvers.fv.rusanov.SubcyclingFixedTimeStep.SubcyclingFixedTimeStep._time_step_size = time_step_size
protected

Definition at line 54 of file SubcyclingFixedTimeStep.py.

◆ _unknowns


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