Timestep strategy for a Nyström algorithm to solve second order problems in time with no first order time derivative. More...
#include <nystroem.hh>


Public Member Functions | |
| Nystroem (concepts::SolverFabric< Real > &fabric, concepts::Operator< Real > &D2, concepts::Operator< Real > &D0, timestepping::TimeVector &trhs, const concepts::Vector< Real > &Y0, const concepts::Vector< Real > &Z0, Real dt) | |
| Constructor. | |
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_ |
| Space operator. | |
| timestepping::TimeVector & | trhs_ |
| External driver function. | |
| concepts::Vector< Real > | Z_ |
| Store velocity times timestep in Z. | |
Friends | |
| class | TimeStepping |
Timestep strategy for a Nyström algorithm to solve second order problems in time with no first order time derivative.
The scheme needs no parameters. It is explicit, has convergence order 2, is symplectic and conditionally stable. The stability criterion for the model problem
is
. For linear operators and f(x,t)=0, this scheme is identic to the leap frog scheme.
Definition at line 38 of file nystroem.hh.
| timestepping::Nystroem::Nystroem | ( | concepts::SolverFabric< Real > & | fabric, |
| concepts::Operator< Real > & | D2, | ||
| concepts::Operator< Real > & | D0, | ||
| timestepping::TimeVector & | trhs, | ||
| const concepts::Vector< Real > & | Y0, | ||
| const concepts::Vector< Real > & | Z0, | ||
| Real | dt | ||
| ) |
Constructor.
| fabric | Solver fabric for solving the occuring systems |
| D2 | Space operator D2 |
| D0 | Space operator D0 |
| trhs | Timedependent external driver f(x,t) |
| Y0 | Initial condition y(x,0) |
| Z0 | Initial condition d/dt y(x,0) |
| dt | Time step size |
| virtual std::ostream& timestepping::Nystroem::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| virtual void timestepping::Nystroem::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::Nystroem::D0_ [private] |
Space operator.
Definition at line 61 of file nystroem.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.
External driver function.
Definition at line 63 of file nystroem.hh.
concepts::Vector<Real> timestepping::Nystroem::Z_ [private] |
Store velocity times timestep in Z.
Definition at line 65 of file nystroem.hh.