Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
SDIRKStageData Class Reference

#include <sdirk_stage_data.h>

Public Member Functions

 SDIRKStageData (const SDIRKTable &table, const unsigned int stage_i)

Public Attributes

std::vector< double > a_ij
double c_i
double b_i

Detailed Description

Definition at line 69 of file sdirk_stage_data.h.

Constructor & Destructor Documentation

◆ SDIRKStageData()

SDIRKStageData::SDIRKStageData ( const SDIRKTable & table,
const unsigned int stage_i )

Extract the coefficients of a given stage from a SDIRK Butcher tableau.

This function returns the data needed to compute the solution increment at a particular stage of a SDIRK (Singly Diagonally Implicit Runge-Kutta) method. The returned structure contains:

  • a_ij: the vector of coefficients from stage j to stage i (for j = 0 to i),
  • c_i: the time coefficient associated with stage i,
  • b_i: the weight for combining the result of stage i in the final solution.

These coefficients are used to compute each stage value ( \boldsymbol{z}_i ) of the Runge-Kutta method according to the formula:

[ \boldsymbol{z}_i = \mathcal{F}\left(t_n + c_i \Delta t, \boldsymbol{u}_n + \Delta t \sum_{j=1}^{i} a_{ij} \boldsymbol{z}_j \right) ]

Then, the final solution at the next time step is obtained as:

[ \boldsymbol{u}_{n+1} = \boldsymbol{u}_n + \Delta t \sum_{i=1}^{s} b_i \boldsymbol{z}_i ]

where ( s ) is the total number of stages.

Pay attention that the stage indices start from 1, but the indices for the matrix and the vectors start at 0.

Parameters
[in]tableThe SDIRK Butcher tableau (structure containing A, b, and c).
[in]stage_iIndex of the stage (starting from 1) for which the data is extracted.
Exceptions
dealii::ExcMessageif the tableau is inconsistent (e.g., wrong dimensions).

Definition at line 159 of file sdirk_stage_data.cc.

References SDIRKTable::A, a_ij, SDIRKTable::b, b_i, SDIRKTable::c, and c_i.

Member Data Documentation

◆ a_ij

std::vector<double> SDIRKStageData::a_ij

Definition at line 114 of file sdirk_stage_data.h.

◆ b_i

double SDIRKStageData::b_i

Definition at line 116 of file sdirk_stage_data.h.

◆ c_i

double SDIRKStageData::c_i

Definition at line 115 of file sdirk_stage_data.h.


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