Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
sdirk_stage_data.h File Reference
#include <core/parameters.h>
#include <deal.II/lac/full_matrix.h>
#include <vector>
Include dependency graph for sdirk_stage_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SDIRKTable
class  SDIRKStageData

Functions

SDIRKTable sdirk_table (const Parameters::SimulationControl::TimeSteppingMethod method)

Function Documentation

◆ sdirk_table()

Construct the Butcher tableau (A, b, c) for a given SDIRK method.

This function returns the Runge-Kutta coefficients for a singly diagonally implicit Runge-Kutta (SDIRK) time integration method: SDIRK22 and SDIRK33 (Alexander's 2- and 3-stage methods) or SDIRK45 (SDIRK4 of Hairer and Wanner). All these methods are L-stable and stiffly accurate. These coefficients define the time-stepping scheme and are used in implicit time integration of ODEs or PDEs.

The Butcher tableau is defined as follows:

  • A: the matrix of coefficients a_ij
  • b: the weights used in the final combination of stages
  • c: the time locations of each stage
Parameters
[in]methodThe time integration method (e.g., TimeSteppingMethod::sdirk22, TimeSteppingMethod::sdirk33) selected from the Parameters::SimulationControl::TimeSteppingMethod enum.
Returns
SDIRKTable A structure containing the Butcher tableau (A, b, c) for the requested method.

Construct the Butcher tableau (A, b, c) for a given SDIRK method.

Definition at line 19 of file sdirk_stage_data.cc.

References SDIRKTable::A, SDIRKTable::b, SDIRKTable::c, Parameters::SimulationControl::sdirk22, Parameters::SimulationControl::sdirk33, and Parameters::SimulationControl::sdirk45.