This class encapsulates a general timestep solver concept to solve linear PDE in time and space. More...
#include <timestepping.hh>


Public Member Functions | |
| void | operator() (concepts::Vector< Real > &sol, uint n) |
| Returns the solution of the n'th timestep. | |
| uint | operator() (concepts::Vector< Real > &sol) |
| Real | time () const |
| Return the time of the current solution. | |
| TimeStepping (TimeStepStrategy &timeStepStrategy) | |
| Constructor. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| uint | n_ |
| The number of the timestep of the actual solution. | |
| TimeStepStrategy & | timeStepStrategy_ |
| Timestep strategy of the solver. | |
This class encapsulates a general timestep solver concept to solve linear PDE in time and space.
Any linear partial differential equation of the form
where Dn, ..., D0 are space operators that not depend on time. After the discretisation it can always be brought in the form
where the LHS depends only on the timestep size and the RHS can be evalated from previous steps. Therefore the new solution Yn is best obtained with an LU separation of the LHS.
Definition at line 39 of file timestepping.hh.
| timestepping::TimeStepping::TimeStepping | ( | TimeStepStrategy & | timeStepStrategy | ) |
Constructor.
| timeStepStrategy | Timestep strategy for solving the PDE |
| virtual std::ostream& timestepping::TimeStepping::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| uint timestepping::TimeStepping::operator() | ( | concepts::Vector< Real > & | sol | ) |
| void timestepping::TimeStepping::operator() | ( | concepts::Vector< Real > & | sol, |
| uint | n | ||
| ) |
Returns the solution of the n'th timestep.
With the parameter n the actual solution is return, otherwise the specified step in the futur. A step number n before the actual step number is not possible and throws an exception
| sol | New solution vector |
| n | Step number of the solution n |
| Real timestepping::TimeStepping::time | ( | ) | const |
Return the time of the current solution.
uint timestepping::TimeStepping::n_ [private] |
The number of the timestep of the actual solution.
Definition at line 60 of file timestepping.hh.
Timestep strategy of the solver.
Definition at line 62 of file timestepping.hh.