Class documentation of Concepts

Loading...
Searching...
No Matches
tvd_rk2.hh
Go to the documentation of this file.
1
6#ifndef tvd_rk2_hh
7#define tvd rk2_hh
8
9#include "basics/typedefs.hh"
10#include "function/vector.hh"
13
14namespace concepts {
15 template<typename F>
16 class Operator;
17}
18
19namespace timestepping {
20
21 using concepts::Real;
22
23 // class TimeVector;
24
25 // ****************************************************** TVD Runge Kutta **
29 class TvdRK2 : public TimeStepStrategy {
30 public:
41 TimeVector& trhs,
42 const concepts::Vector<Real>& Y0,
43 Real dt);
44 virtual ~TvdRK2();
45 protected:
46 virtual std::ostream& info(std::ostream& os) const;
47 virtual void next();
48 private:
52 TimeVector &trhs_;
54 TimeVector Yn1_; // Yn1 = Y(t_{n-1})
55 };
56
61 public:
73 TimeVector& trhs,
74 const concepts::Vector<Real>& Y0,
75 Real dt);
76 virtual ~LimitingTvdRK2();
77 protected:
78 virtual std::ostream& info(std::ostream& os) const;
79 virtual void next();
80 private:
82 concepts::Operator<Real> &D0_, &limiter_;
84 TimeVector &trhs_;
86 TimeVector Yn1_; // Yn1 = Y(t_{n-1})
87 };
88}
89
90#endif // tvd_rk2
LimitingTvdRK2(concepts::SolverFabric< Real > &fabric, concepts::Operator< Real > &D1, concepts::Operator< Real > &D0, concepts::Operator< Real > &limiter, TimeVector &trhs, const concepts::Vector< Real > &Y0, Real dt)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual void next()
TvdRK2(concepts::SolverFabric< Real > &fabric, concepts::Operator< Real > &D1, concepts::Operator< Real > &D0, TimeVector &trhs, const concepts::Vector< Real > &Y0, Real dt)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
double Real
Definition typedefs.hh:39