IFEM  90A354
Public Member Functions | Protected Attributes | List of all members
TimeIntegration::BDFD2 Class Reference

Helper class for Backwards Difference schemes for 2nd order problems. More...

#include <BDF.h>

Inheritance diagram for TimeIntegration::BDFD2:
Inheritance graph
[legend]
Collaboration diagram for TimeIntegration::BDFD2:
Collaboration graph
[legend]

Public Member Functions

 BDFD2 (int order=2, int step_=0)
 Default constructor. More...
 
const std::vector< double > & getCoefs () const override
 Returns the BDF coefficients.
 
- Public Member Functions inherited from TimeIntegration::BDF
 BDF (int order=0)
 Default constructor. More...
 
virtual ~BDF ()
 Empty destructor.
 
void setOrder (int order)
 Initializes the coefficients for the specified order.
 
int getOrder () const
 Returns the order to be used for current time step.
 
int getActualOrder () const
 Returns the order of the scheme.
 
short int getDegree () const
 Returns the degree of the time derivative approximation.
 
bool advanceStep (double dt=0.0, double dtn=0.0)
 Advances the time stepping scheme.
 
double operator[] (int idx) const
 Indexing operator returning the idx'th coefficient.
 
template<class T >
extrapolate (const std::vector< T > &values) const
 Extrapolates values. More...
 

Protected Attributes

std::vector< double > coefs2
 BDF coefficients for second time step.
 
- Protected Attributes inherited from TimeIntegration::BDF
short int degree
 Degree of the time derivative approximation.
 
int step
 Time step counter.
 
std::vector< double > coefs
 The BDF coefficients.
 
std::vector< double > coefs1
 BDF coefficients for first time step.
 

Detailed Description

Helper class for Backwards Difference schemes for 2nd order problems.

Constructor & Destructor Documentation

◆ BDFD2()

TimeIntegration::BDFD2::BDFD2 ( int  order = 2,
int  step_ = 0 
)
explicit

Default constructor.

Parameters
[in]orderThe order of the BDF scheme
[in]step_Initial step position

References TimeIntegration::BDF::coefs, TimeIntegration::BDF::coefs1, coefs2, TimeIntegration::BDF::degree, and TimeIntegration::BDF::step.


The documentation for this class was generated from the following files: