Peano
Loading...
Searching...
No Matches
exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler Class Reference

Finite Volumes with a Rusanov Riemann solver and optimistic explicit Euler time stepping, realised over a block-structured mesh. More...

Inheritance diagram for exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler:
Collaboration diagram for exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler:

Public Member Functions

 __init__ (self, Solver solver, int patch_size, int overlap=1, float cfl_constant=0.9, float damp_time_step_size=0.95, bool spawn_optimistic_calculations_as_task=True, float min_volume_size=None, float max_volume_size=None)
 The constructor memorises the attributes.
str kernel_function_name (self)
 Name of the generated time step kernel.
str max_eigenvalue_kernel_function_name (self)
 Name of the generated kernel which determines the maximum eigenvalue over the whole patch.
Solver.MeshAdaptation create_default_mesh_adaptation (self)
 The Finite Volume schemes adapt the mesh and balance the load through exahype2.api.fv.AdaptMeshAndBalanceLoad by default.
 construct_output (self, exahype2_project, peano_project, time_step, add_global_tasks=True)
 Has to be implemented by subclass.
Public Member Functions inherited from exahype2.api.Solver.Solver.NumericalScheme
 __init__ (self, "Solver" solver)
 wrap_task_graph_in_load_balancing_and_amr_tasks (self, time_step)
 Embed the time step's task graph into the global load balancing and AMR tasks.

Data Fields

 min_volume_size = min_volume_size
 max_volume_size = max_volume_size
 patch_size = patch_size
 Optimistic branch: insert the patch interior once the shell is updated.
 halo_size = overlap
 overlap = overlap
 Optimistic branch: insert the patch interior once the shell is updated.
 kernel_namespace = None
 max_eigenvalue_kernel_call = None
 cfl_constant = cfl_constant
 Both branches: derive the next time step size from the reduced eigenvalue.
 damp_time_step_size = damp_time_step_size
 Both branches: spawn the next time step's patch interior update.
 spawn_optimistic_calculations_as_task = spawn_optimistic_calculations_as_task

Private Member Functions

 __create_data_structures (self)
 Create the mesh data structures (a Finite Volume patch per cell, plus the face-based overlap patches used to reconstruct its halo) this numerical scheme requires.
 __add_data_to_repository (self, peano_project)
 Consult page_exahype_programmers_guide_new_solver for some information how this routine fits to the typical workflow when we introduce a new solver.
 __create_time_step_functions (self, output_directory)
 Calling this function is delayed until all PDE term information is provided.
 __construct_kernel_call (self, Target target, bool stateless, str function_name=None)
 This function constructs the calls to the compute kernels based on the application PDE terms and the version chosen.

Additional Inherited Members

Static Public Attributes inherited from exahype2.api.Solver.Solver.NumericalScheme
str DYNAMIC_MESH_REFINEMENT_TASK_NAME = "Dynamic mesh refinement and load balancing"
 Name of the last task of each time step without the solver's name as prefix, i.e.
Protected Attributes inherited from exahype2.api.Solver.Solver.NumericalScheme
 _solver = solver
Solver.NumericalScheme.NumericalSchemeGenerator _generator = None

Detailed Description

Finite Volumes with a Rusanov Riemann solver and optimistic explicit Euler time stepping, realised over a block-structured mesh.

Design idea

The finite volume solver operates over a block-structured mesh, where each cell of the mesh holds a patch of finite volumes. This solver's fundamental idea is that it splits up the patch into three classes of volumes. Assume we have a NxNxN patch of volumes, where N is the patch_size, and this patch is surrounded by a halo of size H. So we have in total a (N+2H)x(N+2H)x(N+2H) patch that feeds into the time stepping as reconstructed patch. We now distinguish three classes of volumes:

  • The halo cells
  • The shell cells, which is the outer layer of the NxNxN arrangement.
  • The patch interior cells, which are the remaining volumes in the interior of the patch, so effectively a (N-2H)x(N-2H)x(N-2H) patch.

The sketch below shows the three classes for a 2d patch with N=10 and H=1. It is generated by src/exahype2/api/fv/rusanov-with-optimistic-explicit-euler-illustrations.py.

For the new solver, we now define two new update kernels:

  • timeStepWithRusanov2DOnPatchInterior which is timeStepWithRusanov2D but acts only on the patch interior.
  • timeStepWithRusanov2DOnShell which works only on the shell.

The 3D variants follow equivalently.

Time stepping

Every time step either runs the traditional branch (Update cell and Discard patch interior) or the optimistic branch (Update cell shell and Insert patch interior). The traditional branch runs if the solver's time step size is zero, or if the estimated time step size, i.e. the second entry of the eigenvalue data, exceeds it. The optimistic branch runs otherwise. Project on faces, Compute global CFL condition and Spawn patch interior update follow either branch. If at least one axis of the domain is not periodic and the solver uses Dirichlet boundary conditions, Apply Dirichlet BCs sets the ghost volumes along the domain boundary before Reconstruct reads them (

See also
exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions). With Sommerfeld boundary conditions, the task does not exist, and the roll over within Project on faces advances the ghost volumes instead (
exahype2.api.fv.actionsets.RollOverUpdatedFaceWithSommerfeldBoundaryConditions). If all axes are periodic, there is no boundary treatment at all. The task graph below is generated by src/exahype2/api/fv/rusanov-with-optimistic-explicit-euler-illustrations.py from this class for a domain without periodic boundaries.

The estimate is the admissible time step size of the current time step, i.e. the one the solver could have chosen if it had not been enforced to use a smaller one, times damp_time_step_size. Reconstruct memorises the admissible time step size per cell (

See also
exahype2.api.fv.actionsets.ReadjustTimeStepSizeForOptimisticGlobalTimestepping), and Spawn patch interior update damps it (
exahype2.api.fv.actionsets.SpawnTaskToUpdateCellInterior). As the admissible time step size is never damped itself, the estimates do not shrink from time step to time step:
  • Time step 0 runs with time step size 0, as the admissible time step size is not known yet. Update cell runs but does not change the solution, and Compute global CFL condition yields the first time step size dt0. There is no admissible time step size to estimate from, so the spawn does not update the patch interior.
  • Time step 1 runs with dt0 down the traditional branch. The spawn updates the patch interior with damp_time_step_size*dt0.
  • Time step 2 finds this estimate to be smaller than the admissible time step size dt1. It enforces the estimate as time step size and runs the optimistic branch.

Compute global CFL condition does not only compute the next time step size, it also makes it the solver's time step size and time stamp straightaway (

See also
exahype2.api.fv.actionsets.ComputeGlobalCFLCondition). It therefore depends on the spawn, which still sees the time stamp and time step size of the current time step and starts the patch interior update from their sum. The order in which the tasks are added to the task graph does not matter.

If spawn_optimistic_calculations_as_task is set, the spawn runs the patch interior update as a task. Insert patch interior waits for this task before it copies the patch interior into the patch, and Discard patch interior waits for it, too, so no task is still running when the next one is spawned. The task numbers are held per cell.

Definition at line 693 of file RusanovWithOptimisticExplicitEuler.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.__init__ ( self,
Solver solver,
int patch_size,
int overlap = 1,
float cfl_constant = 0.9,
float damp_time_step_size = 0.95,
bool spawn_optimistic_calculations_as_task = True,
float min_volume_size = None,
float max_volume_size = None )

The constructor memorises the attributes.

However, it does not do this within this class, but it adds the important properties straight to the solver, so anybody else working against this solver knows about the properties introduced by the numerical scheme.

See also
__create_data_structures()

patch_size: int Number of Finite Volumes per axis within one patch (i.e. within one mesh cell).

overlap: int Number of Finite Volumes the halo layer reconstructed around a patch - from the neighbouring patches' faces - is wide.

cfl_constant: float Safety factor the admissible time step size (

See also
exahype2.api.fv.actionsets.ComputeGlobalCFLCondition, which this is passed straight through to) is scaled down by, relative to the theoretical CFL=1 stability limit h / (Dimensions * lambda_max). 0.9 is a conservative default for an explicit-Euler Finite Volume scheme; this codebase has no prior precedent value to match (grep for "cfl" outside this class finds only exaparty's unrelated SPH solvers, which default to 0.1).

damp_time_step_size: float Factor, smaller or equal to one, which the current time step size is multiplied with to estimate the time step size of the patch interior update (

See also
exahype2.api.fv.actionsets.SpawnTaskToUpdateCellInterior).

spawn_optimistic_calculations_as_task: bool If True, Spawn patch interior update spawns the patch interior update as a task, and Insert patch interior and Discard patch interior wait for this task. The task number is held per cell (

See also
__create_data_structures()). If False, Spawn patch interior update runs the patch interior update straightaway.

min_volume_size: float The time step asks for a refinement of a cell only if its volumes are at least of this size (exahype2.api.blockstructured.DynamicMeshRefinement). None (the default) does not bound the refinement.

max_volume_size: float The time step asks for an erase, i.e. coarsening, of a cell only if the volumes of the coarser cell would be strictly smaller than this size. None (the default) does not bound the coarsening.

Definition at line 789 of file RusanovWithOptimisticExplicitEuler.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

◆ __add_data_to_repository()

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.__add_data_to_repository ( self,
peano_project )
private

◆ __construct_kernel_call()

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.__construct_kernel_call ( self,
Target target,
bool stateless,
str function_name = None )
private

This function constructs the calls to the compute kernels based on the application PDE terms and the version chosen.

Parameters
function_namestr Name of the kernel to call. Defaults to kernel_function_name, i.e. the kernel updating the whole patch.

Definition at line 1525 of file RusanovWithOptimisticExplicitEuler.py.

References exagrype.api.FD4WithKODissipation.FD4WithKODissipation._solver, exahype2.api.blockstructured.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.blockstructured.ConsumeRefinementRequests.ConsumeRefinementRequests._solver, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement._solver, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._solver, exahype2.api.blockstructured.LoadCheckpoint.LoadCheckpoint._solver, exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver, exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions._solver, exahype2.api.fv.actionsets.DiscardPatchInterior.DiscardPatchInterior._solver, exahype2.api.fv.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator._solver, _solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.kernel_function_name(), and kernel_function_name().

Referenced by construct_output(), and exahype2.api.rkfd4.CentralDifferencesWithRungeKutta.CentralDifferencesWithRungeKutta.construct_output().

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

◆ __create_data_structures()

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.__create_data_structures ( self)
private

Create the mesh data structures (a Finite Volume patch per cell, plus the face-based overlap patches used to reconstruct its halo) this numerical scheme requires.

Ported from the legacy exahype2.solvers.fv.FV.create_data_structures(): one peano4.api.datamodel.Patch of patch_size^d Finite Volumes per mesh cell (_patch), plus a halo-augmented copy of it (_patch_with_halo, (patch_size+2*overlap)^d,

See also
toolbox.blockstructured.api.ReconstructPatchWithHalo) and two overlap patches of width 2*overlap attached to the mesh faces:
  • _patch_overlap_current_time_step: the persistent halo data toolbox.blockstructured.api.ReconstructPatchWithHalo reads from to rebuild _patch_with_halo (
    See also
    construct_output(), which hands it _patch/_patch_overlap_current_time_step/_patch_with_halo directly rather than the whole solver).
  • _patch_overlap_update: the projection of the just-updated _patch accumulated by the current sweep (
    See also
    exahype2.api.fv.actionsets.ProjectPatchOntoFaces), rolled over into _patch_overlap_current_time_step by exahype2.api.fv.actionsets.RollOverUpdatedFace once the update is complete.
  • _max_eigenvalue_and_time_step_sizes: three doubles per cell, named after the solver followed by MaxEigenvalueAndTimeStepSizes (e.g. EulerFVSmoothMaxEigenvalueAndTimeStepSizes). exahype2.api.fv.RusanovWithExplicitEuler calls the corresponding data _max_eigenvalue. exahype2.api.fv.actionsets.ComputeMaxEigenvalue, exahype2.api.fv.actionsets.ReduceMaxEigenvalue and exahype2.api.fv.actionsets.ComputeGlobalCFLCondition are shared with that scheme and hence are handed this data explicitly. It is modelled via DaStGen2 as an array of cardinality three. The array is a peano4.api.dastgen2.Peano4SmartPointerDoubleArray, i.e. the values reside on the heap. The three entries are used as follows:
    • Entry 0 holds the maximum eigenvalue of the whole patch, as written by exahype2.api.fv.actionsets.ComputeMaxEigenvalue after the patch has been updated, either in one go (exahype2.api.fv.actionsets.UpdateCell) or as shell plus patch interior. exahype2.api.fv.actionsets.ReduceMaxEigenvalue reduces entry 0 of all cells.
    • Entry 1 holds the estimated time step size of the patch interior update, i.e. entry 2 times damp_time_step_size, as written by exahype2.api.fv.actionsets.SpawnTaskToUpdateCellInterior.
    • Entry 2 holds the time step size the solver could have chosen in the current time step if it had not been enforced to use a smaller one, i.e. the admissible time step size, as written by exahype2.api.fv.actionsets.ReadjustTimeStepSizeForOptimisticGlobalTimestepping.
  • _patch_interior: the patch interior, i.e. the patch without its shell, so (patch_size-2*overlap)^d Finite Volumes. It matches the region timeStepWithRusanov2DOnPatchInterior() and timeStepWithRusanov3DOnPatchInterior() update.
  • _optimistic_cell_update_task_number: only if spawn_optimistic_calculations_as_task is set, otherwise None. One integer per cell, named after the solver followed by OptimisticCellUpdateTaskNumber (e.g. EulerFVSmoothOptimisticCellUpdateTaskNumber), which holds the number of the task updating the patch interior, or tarch.multicore.TaskEnumerator.NoNumber if there is none. The class furthermore holds a static tarch.multicore.TaskEnumerator (getTaskEnumerator()) handing out the task numbers.

All six are assigned onto self._solver (the shared exahype2.api.Solver instance both this numerical scheme and its surrounding solver's Solver.GridConstruction/Solver.Plotter counterparts hold a reference to as self._solver), not onto self, since the remaining FV action sets that need them -

See also
exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions, exahype2.api.fv.actionsets.UpdateCell, exahype2.api.fv.actionsets.ComputeGlobalCFLCondition - are handed that shared solver and look the patches up as solver._patch / solver._patch_overlap_*.

Storage is hardwired to smart pointers (peano4.api.datamodel's PatchToDoubleArrayWithSmartPointer), matching the legacy default (Storage.SmartPointers for both cell and face data) - the legacy Storage enum's other two backends (CallStack, Heap) are not exposed here.

Two pieces of the legacy method are deliberately not ported yet:

  • The cell/face label creation (exahype2.grid.create_cell_label()/create_face_label()) - that module has not been ported to the new API.
  • The load/store/compute guards (FV._provide_cell_data_to_compute_kernels_default_guard() and friends) - they are keyed off the legacy SolverState state machine, which the task-graph architecture has no equivalent of: a task only ever runs within its own phase's task graph in the first place, so "are we still constructing the grid" does not need to be re-checked at runtime the same way.

Definition at line 882 of file RusanovWithOptimisticExplicitEuler.py.

References exagrype.api.FD4WithKODissipation.FD4WithKODissipation._solver, exahype2.api.blockstructured.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.blockstructured.ConsumeRefinementRequests.ConsumeRefinementRequests._solver, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement._solver, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._solver, exahype2.api.blockstructured.LoadCheckpoint.LoadCheckpoint._solver, exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver, exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions._solver, exahype2.api.fv.actionsets.DiscardPatchInterior.DiscardPatchInterior._solver, exahype2.api.fv.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator._solver, _solver, exahype2.api.fv.actionsets.InsertPatchInterior.InsertPatchInterior.overlap, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.overlap, overlap, exagrype.api.scalarfield.FiniteVolumesInnerCoupling._FiniteVolumes.patch_size, exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator.patch_size, exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4.patch_size, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement.patch_size, exahype2.api.fv.actionsets.ComputeGlobalCFLCondition.ComputeGlobalCFLCondition.patch_size, exahype2.api.fv.actionsets.InsertPatchInterior.InsertPatchInterior.patch_size, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.patch_size, and patch_size.

◆ __create_time_step_functions()

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.__create_time_step_functions ( self,
output_directory )
private

Calling this function is delayed until all PDE term information is provided.

In this way we can avoid generating code that will not be used. The following information is required to translate a Python function using DSLHyPE:

  • template_parameters: the variables that are used within the Python function to represent external information
  • functor_parameters: the PDE terms that can be used by the solver
  • function: the Python function itself

TODO: Currently the MLIR types are passed manually here, this should ideally be inferred

Definition at line 1394 of file RusanovWithOptimisticExplicitEuler.py.

References exagrype.api.FD4WithKODissipation.FD4WithKODissipation._solver, exahype2.api.blockstructured.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.blockstructured.ConsumeRefinementRequests.ConsumeRefinementRequests._solver, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement._solver, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._solver, exahype2.api.blockstructured.LoadCheckpoint.LoadCheckpoint._solver, exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver, exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions._solver, exahype2.api.fv.actionsets.DiscardPatchInterior.DiscardPatchInterior._solver, exahype2.api.fv.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator._solver, _solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.kernel_function_name(), kernel_function_name(), exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.kernel_namespace, kernel_namespace, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.max_eigenvalue_kernel_function_name(), and max_eigenvalue_kernel_function_name().

Referenced by construct_output().

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

◆ construct_output()

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.construct_output ( self,
exahype2_project,
peano_project,
time_step,
add_global_tasks = True )

Has to be implemented by subclass.

time_step: peano4.api.taskgraph.Graph The task graph of the surrounding exahype2_project's time stepping phase, so the numerical scheme can add its own tasks into it.

Parameters
add_global_tasksbool Whether the scheme adds the tasks that belong to the mesh as a whole rather than to the solver: it switches the load balancing off at the begin of the time step, and its last task evaluates the adaptivity criterion and switches the load balancing on again. If set, the scheme adds these tasks by calling wrap_task_graph_in_load_balancing_and_amr_tasks() as its very last step. A host that couples several solvers passes False, as it wraps the concatenated graph itself.

Reimplemented from exahype2.api.Solver.Solver.NumericalScheme.

Definition at line 1114 of file RusanovWithOptimisticExplicitEuler.py.

References exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.__add_data_to_repository(), __add_data_to_repository(), exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator.__construct_kernel_call(), __construct_kernel_call(), exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator.__create_time_step_functions(), __create_time_step_functions(), exagrype.api.FD4WithKODissipation.FD4WithKODissipation._solver, exahype2.api.blockstructured.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.blockstructured.ConsumeRefinementRequests.ConsumeRefinementRequests._solver, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement._solver, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._solver, exahype2.api.blockstructured.LoadCheckpoint.LoadCheckpoint._solver, exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver, exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions._solver, exahype2.api.fv.actionsets.DiscardPatchInterior.DiscardPatchInterior._solver, exahype2.api.fv.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator._solver, _solver, exahype2.api.fv.actionsets.ComputeGlobalCFLCondition.ComputeGlobalCFLCondition.cfl_constant, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.cfl_constant, cfl_constant, exahype2.api.fv.actionsets.SpawnTaskToUpdateCellInterior.SpawnTaskToUpdateCellInterior.damp_time_step_size, damp_time_step_size, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.kernel_function_name(), kernel_function_name(), exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.kernel_namespace, kernel_namespace, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.max_eigenvalue_kernel_call, max_eigenvalue_kernel_call, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.max_eigenvalue_kernel_function_name(), max_eigenvalue_kernel_function_name(), exahype2.api.fv.actionsets.InsertPatchInterior.InsertPatchInterior.overlap, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.overlap, overlap, exagrype.api.scalarfield.FiniteVolumesInnerCoupling._FiniteVolumes.patch_size, exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator.patch_size, exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4.patch_size, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement.patch_size, exahype2.api.fv.actionsets.ComputeGlobalCFLCondition.ComputeGlobalCFLCondition.patch_size, exahype2.api.fv.actionsets.InsertPatchInterior.InsertPatchInterior.patch_size, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler.patch_size, and patch_size.

Here is the call graph for this function:

◆ create_default_mesh_adaptation()

◆ kernel_function_name()

str exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.kernel_function_name ( self)

◆ max_eigenvalue_kernel_function_name()

str exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.max_eigenvalue_kernel_function_name ( self)

Field Documentation

◆ cfl_constant

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.cfl_constant = cfl_constant

Both branches: derive the next time step size from the reduced eigenvalue.

This acts in unprepareTraversal() at the end of the time step only. The spawn has to see the solver's time stamp and time step size before the CFL condition advances them

The roll over of Sommerfeld boundary conditions is part of the projection and reads the current time step size, which the next task replaces. It therefore never runs before the roll over has terminated (see src/exahype2/api/fv/adrs/0002-time-step-size-after-roll-over.md)

Definition at line 859 of file RusanovWithOptimisticExplicitEuler.py.

Referenced by construct_output(), and exahype2.api.rkfd4.actionsets.ComputeTimeStepSize.ComputeTimeStepSize.is_adaptive().

◆ damp_time_step_size

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.damp_time_step_size = damp_time_step_size

Both branches: spawn the next time step's patch interior update.

Reads the patch and writes the patch interior plus the estimated time step size

Definition at line 860 of file RusanovWithOptimisticExplicitEuler.py.

Referenced by construct_output().

◆ halo_size

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.halo_size = overlap

Definition at line 853 of file RusanovWithOptimisticExplicitEuler.py.

◆ kernel_namespace

◆ max_eigenvalue_kernel_call

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.max_eigenvalue_kernel_call = None

◆ max_volume_size

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.max_volume_size = max_volume_size

Definition at line 851 of file RusanovWithOptimisticExplicitEuler.py.

◆ min_volume_size

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.min_volume_size = min_volume_size

◆ overlap

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.overlap = overlap

Optimistic branch: insert the patch interior once the shell is updated.

Definition at line 854 of file RusanovWithOptimisticExplicitEuler.py.

Referenced by __create_data_structures(), and construct_output().

◆ patch_size

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.patch_size = patch_size

Optimistic branch: insert the patch interior once the shell is updated.

Both branches: derive the next time step size from the reduced eigenvalue.

This acts in unprepareTraversal() at the end of the time step only. The spawn has to see the solver's time stamp and time step size before the CFL condition advances them

The roll over of Sommerfeld boundary conditions is part of the projection and reads the current time step size, which the next task replaces. It therefore never runs before the roll over has terminated (see src/exahype2/api/fv/adrs/0002-time-step-size-after-roll-over.md)

Definition at line 852 of file RusanovWithOptimisticExplicitEuler.py.

Referenced by exahype2.api.rkfd4.CentralDifferencesWithRungeKutta.CentralDifferencesWithRungeKutta.__add_data_to_repository(), __create_data_structures(), exahype2.api.rkfd4.CentralDifferencesWithRungeKutta.CentralDifferencesWithRungeKutta.__create_data_structures(), and construct_output().

◆ spawn_optimistic_calculations_as_task

exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.spawn_optimistic_calculations_as_task = spawn_optimistic_calculations_as_task

Definition at line 861 of file RusanovWithOptimisticExplicitEuler.py.


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