dune-pdelab
2.4.1
|
Do one step of a time-stepping scheme. More...
#include <dune/pdelab/instationary/implicitonestep.hh>
Public Types | |
typedef OneStepMethodResult | Result |
Public Member Functions | |
OneStepMethod (const TimeSteppingParameterInterface< T > &method_, IGOS &igos_, PDESOLVER &pdesolver_) | |
construct a new one step scheme More... | |
void | setVerbosityLevel (int level) |
change verbosity level; 0 means completely quiet More... | |
void | setStepNumber (int newstep) |
change number of current step More... | |
const PDESOLVER & | getPDESolver () const |
Access to the (non) linear solver. More... | |
PDESOLVER & | getPDESolver () |
Access to the (non) linear solver. More... | |
const Result & | result () const |
void | setMethod (const TimeSteppingParameterInterface< T > &method_) |
redefine the method to be used; can be done before every step More... | |
T | apply (T time, T dt, TrlV &xold, TrlV &xnew) |
do one step; More... | |
template<typename F > | |
T | apply (T time, T dt, TrlV &xold, F &f, TrlV &xnew) |
do one step; This is a version which interpolates constraints at the start of each stage More... | |
Do one step of a time-stepping scheme.
T | type to represent time values |
IGOS | assembler for instationary problems |
PDESOLVER | solver problem in each step (typically Newton) |
TrlV | vector type to represent coefficients of solutions |
TstV | vector type to represent residuals |
typedef OneStepMethodResult Dune::PDELab::OneStepMethod< T, IGOS, PDESOLVER, TrlV, TstV >::Result |
|
inline |
construct a new one step scheme
method_ | Parameter object. This chooses the actual method used. |
igos_ | Assembler object (instationary grid operator space). |
pdesolver_ | solver object (typically Newton). |
The contructed method object stores references to the object it is constructed with, so these objects should be valid for as long as the constructed object is used (or until setMethod() is called, see there).
|
inline |
do one step;
[in] | time | start of time step |
[in] | dt | suggested time step size |
[in] | xold | value at begin of time step |
[in,out] | xnew | value at end of time step; contains initial guess for first substep on entry |
References Dune::PDELab::OneStepMethodPartialResult::assembler_time, Dune::PDELab::OneStepMethodPartialResult::linear_solver_iterations, Dune::PDELab::OneStepMethodPartialResult::linear_solver_time, and Dune::PDELab::OneStepMethodPartialResult::nonlinear_solver_iterations.
|
inline |
do one step; This is a version which interpolates constraints at the start of each stage
[in] | time | start of time step |
[in] | dt | suggested time step size |
[in] | xold | value at begin of time step |
[in] | f | function to interpolate boundary conditions from |
[in,out] | xnew | value at end of time step; contains initial guess for first substep on entry |
References Dune::PDELab::OneStepMethodPartialResult::assembler_time, Dune::PDELab::OneStepMethodPartialResult::linear_solver_iterations, Dune::PDELab::OneStepMethodPartialResult::linear_solver_time, and Dune::PDELab::OneStepMethodPartialResult::nonlinear_solver_iterations.
|
inline |
Access to the (non) linear solver.
|
inline |
Access to the (non) linear solver.
|
inline |
|
inline |
redefine the method to be used; can be done before every step
method_ | Parameter object. |
The OneStepMethod object stores a reference to the method_ object. The old method object is no longer referenced after this member function returns.
|
inline |
change number of current step
|
inline |
change verbosity level; 0 means completely quiet