alpha.hh

Go to the documentation of this file.
1 
6 #ifndef alpha_hh
7 #define alpha_hh
8 
9 #include "basics/typedefs.hh"
10 #include "function/vector.hh"
11 #include "timestepping/strategy.hh"
12 
13 namespace concepts {
14  template<typename F>
15  class Operator;
16 }
17 
18 namespace timestepping {
19 
20  using concepts::Real;
21 
22  class TimeVector;
23 
24  // ***************************************************************** Alpha **
25 
42  class Alpha : public TimeStepStrategy {
43  public:
58  const concepts::Vector<Real>& Y0,
59  const concepts::Vector<Real>& Z0,
60  Real dt, Real alpha = 0.);
61  protected:
62  virtual std::ostream& info(std::ostream& os) const;
63  virtual void next();
64  private:
73  };
74 }
75 
76 #endif // alpha_hh
Alpha(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, Real alpha=0.)
Constructor.
Timestepping methods used to solve PDEs in time and space.
Definition: alpha.hh:18
Real alpha_
Parameters of the scheme.
Definition: alpha.hh:72
concepts::Vector< Real > A_
Definition: alpha.hh:70
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Abstract strategy class for the class Timestepping.
Definition: strategy.hh:32
Timestep strategy for the Alpha algorithm of Hilber, Hughes and Taylor to solve second order problems...
Definition: alpha.hh:42
concepts::Vector< Real > Z_
Store velocity Z and acceleration A.
Definition: alpha.hh:70
concepts::Operator< Real > & D0_
Space operator.
Definition: alpha.hh:66
Class implementing time dependent vectors.
Definition: vectors.hh:53
virtual void next()
The overloaded member function next() has to calculate the new right hand side and to release the sol...
timestepping::TimeVector & trhs_
External driver function.
Definition: alpha.hh:68
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich