Timestep stategy for an explicit two stage TVD Runge Kutta scheme to solve problems in time. More...
#include <tvd_rk2.hh>


Public Member Functions | |
| TvdRK2 (concepts::SolverFabric< Real > &fabric, concepts::Operator< Real > &D1, concepts::Operator< Real > &D0, TimeVector &trhs, const concepts::Vector< Real > &Y0, Real dt) | |
| Constructor. | |
| virtual | ~TvdRK2 () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
| virtual void | next () |
| The overloaded member function next() has to calculate the new right hand side and to release the solution vector. | |
Protected Attributes | |
| Real | dt_ |
| Time step size. | |
| concepts::Operator< Real > * | liCo_ |
| Operator of the linear equation system which is solved by the friend class TimeStepping. | |
| concepts::Vector< Real > | rhs_ |
| The right hand side vector of the linear equation system which is solved by the friend class TimeStepping. | |
| concepts::Vector< Real > | sol_ |
| The solution vector of the linear equation system which is solved by the friend class TimeStepping. | |
| std::auto_ptr < concepts::Operator< Real > > | solver_ |
| Solver for the linear system. | |
| Real | t_ |
| Time of the actual solution. | |
Private Attributes | |
| concepts::Operator< Real > & | D0_ |
| concepts::Operator< Real > & | D1_ |
| Space operator. | |
| TimeVector & | trhs_ |
| External driver function. | |
| TimeVector | Yn1_ |
| Store the latest timestep. | |
Friends | |
| class | TimeStepping |
Timestep stategy for an explicit two stage TVD Runge Kutta scheme to solve problems in time.
Definition at line 26 of file tvd_rk2.hh.
| timestepping::TvdRK2::TvdRK2 | ( | concepts::SolverFabric< Real > & | fabric, |
| concepts::Operator< Real > & | D1, | ||
| concepts::Operator< Real > & | D0, | ||
| TimeVector & | trhs, | ||
| const concepts::Vector< Real > & | Y0, | ||
| Real | dt | ||
| ) |
Constructor.
| D1 | Space opeartor D1 |
| D0 | Space opeartor D0 |
| trhs | Timedependent external driver f(x,t) |
| Y0 | Initial condition y(x,0) |
| dt | Time step size |
| virtual timestepping::TvdRK2::~TvdRK2 | ( | ) | [virtual] |
| virtual std::ostream& timestepping::TvdRK2::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| virtual void timestepping::TvdRK2::next | ( | ) | [protected, virtual] |
The overloaded member function next() has to calculate the new right hand side and to release the solution vector.
Then the Timestepping solver can set the new solution.
Implements timestepping::TimeStepStrategy.
friend class TimeStepping [friend, inherited] |
Definition at line 48 of file strategy.hh.
concepts::Operator<Real> & timestepping::TvdRK2::D0_ [private] |
Definition at line 47 of file tvd_rk2.hh.
concepts::Operator<Real>& timestepping::TvdRK2::D1_ [private] |
Space operator.
Definition at line 47 of file tvd_rk2.hh.
Real timestepping::TimeStepStrategy::dt_ [protected, inherited] |
Time step size.
Definition at line 73 of file strategy.hh.
concepts::Operator<Real>* timestepping::TimeStepStrategy::liCo_ [protected, inherited] |
Operator of the linear equation system which is solved by the friend class TimeStepping.
It can be stored as a linear combination of two operators. The exact form depends on the specific scheme.
Definition at line 61 of file strategy.hh.
concepts::Vector<Real> timestepping::TimeStepStrategy::rhs_ [protected, inherited] |
The right hand side vector of the linear equation system which is solved by the friend class TimeStepping.
Definition at line 71 of file strategy.hh.
concepts::Vector<Real> timestepping::TimeStepStrategy::sol_ [protected, inherited] |
The solution vector of the linear equation system which is solved by the friend class TimeStepping.
Definition at line 66 of file strategy.hh.
std::auto_ptr<concepts::Operator<Real> > timestepping::TimeStepStrategy::solver_ [protected, inherited] |
Solver for the linear system.
Definition at line 55 of file strategy.hh.
Real timestepping::TimeStepStrategy::t_ [protected, inherited] |
Time of the actual solution.
Definition at line 75 of file strategy.hh.
TimeVector& timestepping::TvdRK2::trhs_ [private] |
External driver function.
Definition at line 49 of file tvd_rk2.hh.
TimeVector timestepping::TvdRK2::Yn1_ [private] |
Store the latest timestep.
Definition at line 51 of file tvd_rk2.hh.