|
Tempus Version of the Day
Time Integration
|
Time-derivative interface for BDF2. More...
#include <Tempus_StepperBDF2_decl.hpp>
Public Member Functions | |
| StepperBDF2TimeDerivative (Scalar dt, Scalar dtOld, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOld, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOldOld) | |
| Constructor. | |
| virtual | ~StepperBDF2TimeDerivative () |
| Destructor. | |
| virtual void | compute (Teuchos::RCP< const Thyra::VectorBase< Scalar > > x, Teuchos::RCP< Thyra::VectorBase< Scalar > > xDot, Teuchos::RCP< Thyra::VectorBase< Scalar > > xDotDot=Teuchos::null) |
| Compute the time derivative. | |
| virtual void | initialize (Scalar dt, Scalar dtOld, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOld, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOldOld) |
Private Attributes | |
| Teuchos::RCP< const Thyra::VectorBase< Scalar > > | xOld_ |
| Teuchos::RCP< const Thyra::VectorBase< Scalar > > | xOldOld_ |
| Scalar | dt_ |
| Scalar | dtOld_ |
Time-derivative interface for BDF2.
Given the state 
![\[ \dot{x}_{n} = \frac{2\tau_n + \tau_{n-1}}{\tau_n + \tau_{n-1}}
\left[ \frac{x_n-x_{n-1}}{\tau_n}\right]
- \frac{\tau_n}{\tau_n + \tau_{n-1}}
\left[ \frac{x_{n-1}-x_{n-2}}{\tau_{n-1}}\right]
\]](form_60.png)
where
![\[ \tau_n = t_n - t_{n-1}.
\]](form_61.png)

Definition at line 206 of file Tempus_StepperBDF2_decl.hpp.
|
inline |
Constructor.
Definition at line 212 of file Tempus_StepperBDF2_decl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 218 of file Tempus_StepperBDF2_decl.hpp.
|
inlinevirtual |
Compute the time derivative.
Implements Tempus::TimeDerivative< Scalar >.
Definition at line 221 of file Tempus_StepperBDF2_decl.hpp.
|
inlinevirtual |
Definition at line 235 of file Tempus_StepperBDF2_decl.hpp.
|
private |
Definition at line 242 of file Tempus_StepperBDF2_decl.hpp.
|
private |
Definition at line 243 of file Tempus_StepperBDF2_decl.hpp.
|
private |
Definition at line 244 of file Tempus_StepperBDF2_decl.hpp.
|
private |
Definition at line 245 of file Tempus_StepperBDF2_decl.hpp.