1""" This file is part of the ExaGRyPE project. For conditions of distribution and
2 use, please see the copyright notice at www.peano-framework.org
7from ..FOCCZ4Solver
import FOCCZ4Solver
8from .InnerCouplingGenerator
import InnerCouplingGenerator
14 Fourth-order Finite Differences with Runge-Kutta for both solvers (@ref exahype2.api.rkfd4.CentralDifferencesWithRungeKutta)
16 The solvers exchange data in each Runge-Kutta stage. CCZ4 uses the lopsided advection of its shift.
20 def __init__(self, patch_size: int, rk_order: int):
23 @param patch_size: int
24 Number of grid cells per patch and axis. The same for both solvers.
27 Order of the Runge-Kutta scheme, i.e. its number of stages (one to four).
35 if solver
is self.
_host.ccz4:
40 right_hand_side_kernel=Scheme.RightHandSideKernel.CentralDifferencesWithLopsidedAdvection,
41 advection_velocity=FOCCZ4Solver.ADVECTION_VELOCITY,
42 advected_quantities=solver.lopsided_advection_quantities(),
50 return solver._patch
if stage == 0
else solver._stage_input
54 return [task
for task
in graph.sink_tasks()
if not task.entity.is_global]
55 name = f
"{solver.name}_Roll over stage {stage + 1} faces"
56 return [task
for task
in graph.tasks
if task.name == name]
60 """! Runge-Kutta; in each stage, the scalar field's stage follows the one of CCZ4 """
66 """! Runge-Kutta; in each stage, the stages of CCZ4 and the scalar field run in parallel """
68 MULTIPLICATIVE =
False
Numerical scheme of the coupled solver exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.
_host
Install the numerical schemes of the building blocks on the solvers of the host.
Runge-Kutta; in each stage, the stages of CCZ4 and the scalar field run in parallel.
Runge-Kutta; in each stage, the scalar field's stage follows the one of CCZ4.
Fourth-order Finite Differences with Runge-Kutta for both solvers (exahype2.api.rkfd4....
__init__(self, int patch_size, int rk_order)
_stage_input(self, solver, stage)
The patch which a solver's stage reads as input (it holds the solver's unknowns of the stage's time l...
_create_scheme(self, solver)
The numerical scheme of one of the solvers, i.e.
_end_of_stage(self, solver, graph, stage)
The tasks of a solver's graph that end a stage.
int _number_of_stages(self)
Number of stages of the time integrator.
Fourth-order central Finite Differences with explicit Runge-Kutta time stepping, realised over a bloc...