Peano
Loading...
Searching...
No Matches
exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4 Class Reference

Fourth-order Finite Differences with Runge-Kutta for both solvers (exahype2.api.rkfd4.CentralDifferencesWithRungeKutta). More...

Inheritance diagram for exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4:
Collaboration diagram for exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4:

Public Member Functions

 __init__ (self, int patch_size, int rk_order)
Public Member Functions inherited from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator
 __init__ (self, int patch_size)
 attach_to (self, host)
 Install the numerical schemes of the building blocks on the solvers of the host.
 construct_output (self, exahype2_project, peano_project, setup_simulation, time_step, plot, mesh_adaptation)
 Build the task graph of the coupled system, and add it to time_step.

Data Fields

 rk_order = rk_order
Data Fields inherited from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator
 patch_size = patch_size

Protected Member Functions

 _create_scheme (self, solver)
 The numerical scheme of one of the solvers, i.e.
int _number_of_stages (self)
 Number of stages of the time integrator.
 _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 level).
 _end_of_stage (self, solver, graph, stage)
 The tasks of a solver's graph that end a stage.

Additional Inherited Members

Static Public Attributes inherited from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator
bool MULTIPLICATIVE = False
str COPY_TASK_NAME = "Copy CCZ4 fields into {} stage {}"
str SYNCHRONISE_TASK_NAME = "Synchronise time step sizes"
Static Protected Member Functions inherited from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator
 _first_tasks (graph, previous_end)
 The tasks of a solver's graph that start a stage.
Protected Attributes inherited from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator
 _host = None
 Install the numerical schemes of the building blocks on the solvers of the host.
dict _schemes = {}
 Install the numerical schemes of the building blocks on the solvers of the host.

Detailed Description

Fourth-order Finite Differences with Runge-Kutta for both solvers (exahype2.api.rkfd4.CentralDifferencesWithRungeKutta).

The solvers exchange data in each Runge-Kutta stage. CCZ4 uses the lopsided advection of its shift.

Definition at line 11 of file RungeKuttaFD4InnerCoupling.py.

Constructor & Destructor Documentation

◆ __init__()

exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4.__init__ ( self,
int patch_size,
int rk_order )
Parameters
patch_sizeint Number of grid cells per patch and axis. The same for both solvers.
rk_orderint Order of the Runge-Kutta scheme, i.e. its number of stages (one to four).

Definition at line 20 of file RungeKuttaFD4InnerCoupling.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

◆ _create_scheme()

exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4._create_scheme ( self,
solver )
protected

The numerical scheme of one of the solvers, i.e.

a building block of the whole scheme

Reimplemented from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator.

Definition at line 33 of file RungeKuttaFD4InnerCoupling.py.

References exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator._host.

◆ _end_of_stage()

exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4._end_of_stage ( self,
solver,
graph,
stage )
protected

The tasks of a solver's graph that end a stage.

Global tasks do not count.

Reimplemented from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator.

Definition at line 52 of file RungeKuttaFD4InnerCoupling.py.

References rk_order.

◆ _number_of_stages()

int exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4._number_of_stages ( self)
protected

Number of stages of the time integrator.

Reimplemented from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator.

Definition at line 46 of file RungeKuttaFD4InnerCoupling.py.

References rk_order.

◆ _stage_input()

exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4._stage_input ( self,
solver,
stage )
protected

The patch which a solver's stage reads as input (it holds the solver's unknowns of the stage's time level).

Reimplemented from exagrype.api.scalarfield.InnerCouplingGenerator.InnerCouplingGenerator.

Definition at line 49 of file RungeKuttaFD4InnerCoupling.py.

Referenced by exagrype.api.CCZ4SolverBase.CCZ4SolverBase.generate_solver_realisation().

Here is the caller graph for this function:

Field Documentation

◆ rk_order

exagrype.api.scalarfield.RungeKuttaFD4InnerCoupling._RungeKuttaFD4.rk_order = rk_order

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