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

Helper class for Backwards Difference Formula integration schemes. More...

#include <BDF.h>

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

Public Member Functions

 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.
 
virtual const std::vector< double > & getCoefs () const
 Returns the BDF coefficients.
 
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

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 Formula integration schemes.

Keeps track of coefficients, startup and extrapolation.

Constructor & Destructor Documentation

◆ BDF()

TimeIntegration::BDF::BDF ( int  order = 0)
explicit

Default constructor.

Parameters
[in]orderThe order of the BDF scheme

References setOrder().

Member Function Documentation

◆ extrapolate()

template<class T >
T TimeIntegration::BDF::extrapolate ( const std::vector< T > &  values) const
inline

Extrapolates values.

Parameters
[in]valuesThe values to be extrapolated
Returns
The extrapolated value

References getActualOrder(), and step.


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