|
| ImplicitRungeKutta () |
|
| ImplicitRungeKutta (const runge_kutta_method method, const unsigned int max_it=100, const double tolerance=1e-6) |
|
void | initialize (const runge_kutta_method method) |
|
double | evolve_one_time_step (std_cxx11::function< VectorType(const double, const VectorType &)> f, std_cxx11::function< VectorType(const double, const double, const VectorType &)> id_minus_tau_J_inverse, double t, double delta_t, VectorType &y) |
|
void | set_newton_solver_parameters (const unsigned int max_it, const double tolerance) |
|
const Status & | get_status () const |
|
virtual | ~RungeKutta () |
|
double | evolve_one_time_step (std::vector< std_cxx11::function< VectorType(const double, const VectorType &)> > &F, std::vector< std_cxx11::function< VectorType(const double, const double, const VectorType &)> > &J_inverse, double t, double delta_t, VectorType &y) |
|
virtual | ~TimeStepping () |
|
|
void | compute_stages (std_cxx11::function< VectorType(const double, const VectorType &)> f, std_cxx11::function< VectorType(const double, const double, const VectorType &)> id_minus_tau_J_inverse, double t, double delta_t, VectorType &y, std::vector< VectorType > &f_stages) |
|
void | newton_solve (std_cxx11::function< void(const VectorType &, VectorType &)> get_residual, std_cxx11::function< VectorType(const VectorType &)> id_minus_tau_J_inverse, VectorType &y) |
|
void | compute_residual (std_cxx11::function< VectorType(const double, const VectorType &)> f, double t, double delta_t, const VectorType &old_y, const VectorType &y, VectorType &tendency, VectorType &residual) const |
|
template<typename VectorType>
class TimeStepping::ImplicitRungeKutta< VectorType >
This class is derived from RungeKutta and implement the implicit methods. This class works only for Diagonal Implicit Runge-Kutta (DIRK) methods.
Definition at line 298 of file time_stepping.h.
template<typename VectorType>
double TimeStepping::ImplicitRungeKutta< VectorType >::evolve_one_time_step |
( |
std_cxx11::function< VectorType(const double, const VectorType &)> |
f, |
|
|
std_cxx11::function< VectorType(const double, const double, const VectorType &)> |
id_minus_tau_J_inverse, |
|
|
double |
t, |
|
|
double |
delta_t, |
|
|
VectorType & |
y |
|
) |
| |
|
virtual |
This function is used to advance from time t
to t+ delta_t
. f
is the function \( f(t,y) \) that should be integrated, the input parameters are the time t and the vector y and the output is value of f at this point. id_minus_tau_J_inverse
is a function that computes \( (I-\tau J)^{-1}\) where \( I \) is the identity matrix, \( \tau \) is given, and \( J \) is the Jacobian \( \frac{\partial J}{\partial y} \). The input parameters this function receives are the time, \( \tau \), and a vector. The output is the value of function at this point. evolve_one_time_step returns the time at the end of the time step.
Implements TimeStepping::RungeKutta< VectorType >.