IFEM  90A354
BDFMats.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _BDF_MATS_H
15 #define _BDF_MATS_H
16 
17 #include "ElmMats.h"
18 #include "BDF.h"
19 
20 
26 class BDFMats : public ElmMats
27 {
28 public:
31  explicit BDFMats(const TimeIntegration::BDFD2& scheme) : bdf(scheme), h(0.0) {}
33  virtual ~BDFMats() {}
34 
36  virtual void setStepSize(double dt, int) { h = dt; }
37 
39  virtual const Matrix& getNewtonMatrix() const;
41  virtual const Vector& getRHSVector() const;
42 
43 protected:
45  double h;
46 };
47 
48 #endif
Helper functions for Backwards Difference based time stepping.
Representation of the element matrices for a FEM problem.
Class representing the element matrices for a dynamic FEM problem using backward difference formulae ...
Definition: BDFMats.h:27
TimeIntegration::BDFD2 bdf
BDF time integration scheme.
Definition: BDFMats.h:44
virtual void setStepSize(double dt, int)
Updates the time step size.
Definition: BDFMats.h:36
BDFMats(const TimeIntegration::BDFD2 &scheme)
The constructor initializes the time integration parameters. param[in] scheme BDF time discretization...
Definition: BDFMats.h:31
virtual const Vector & getRHSVector() const
Returns the element-level right-hand-side vector.
Definition: BDFMats.C:36
virtual const Matrix & getNewtonMatrix() const
Returns the element-level Newton matrix.
Definition: BDFMats.C:17
double h
Time step size.
Definition: BDFMats.h:45
virtual ~BDFMats()
Empty destructor.
Definition: BDFMats.h:33
Class collecting the element matrices associated with a FEM problem.
Definition: ElmMats.h:34
Helper class for Backwards Difference schemes for 2nd order problems.
Definition: BDF.h:80
A vector class with some added algebraic operations.
Definition: matrix.h:64