![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#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 |
Definition at line 69 of file sdirk_stage_data.h.
| 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:
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.
| [in] | table | The SDIRK Butcher tableau (structure containing A, b, and c). |
| [in] | stage_i | Index of the stage (starting from 1) for which the data is extracted. |
| dealii::ExcMessage | if 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.
| std::vector<double> SDIRKStageData::a_ij |
Definition at line 114 of file sdirk_stage_data.h.
| double SDIRKStageData::b_i |
Definition at line 116 of file sdirk_stage_data.h.
| double SDIRKStageData::c_i |
Definition at line 115 of file sdirk_stage_data.h.