Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Tempus::StepperBackwardEulerTimeDerivative< Scalar > Class Template Reference

Time-derivative interface for Backward Euler. More...

#include <Tempus_StepperBackwardEuler_decl.hpp>

Inheritance diagram for Tempus::StepperBackwardEulerTimeDerivative< Scalar >:
Tempus::TimeDerivative< Scalar >

Public Member Functions

 StepperBackwardEulerTimeDerivative (Scalar s, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOld)
 Constructor. More...
 
virtual ~StepperBackwardEulerTimeDerivative ()
 Destructor. More...
 
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. More...
 
virtual void initialize (Scalar s, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOld)
 

Private Attributes

Teuchos::RCP< const
Thyra::VectorBase< Scalar > > 
xOld_
 
Scalar s_
 

Detailed Description

template<typename Scalar>
class Tempus::StepperBackwardEulerTimeDerivative< Scalar >

Time-derivative interface for Backward Euler.

Given the state $x$, compute the Backward Euler time-derivative,

\[ \dot{x}_{n} = \frac{(x_{n} - x_{n-1})}{\Delta t_{n}}. \]

$\ddot{x}$ is not used and set to null.

Definition at line 232 of file Tempus_StepperBackwardEuler_decl.hpp.

Constructor & Destructor Documentation

template<typename Scalar >
Tempus::StepperBackwardEulerTimeDerivative< Scalar >::StepperBackwardEulerTimeDerivative ( Scalar  s,
Teuchos::RCP< const Thyra::VectorBase< Scalar > >  xOld 
)
inline

Constructor.

Definition at line 238 of file Tempus_StepperBackwardEuler_decl.hpp.

template<typename Scalar >
virtual Tempus::StepperBackwardEulerTimeDerivative< Scalar >::~StepperBackwardEulerTimeDerivative ( )
inlinevirtual

Destructor.

Definition at line 243 of file Tempus_StepperBackwardEuler_decl.hpp.

Member Function Documentation

template<typename Scalar >
virtual void Tempus::StepperBackwardEulerTimeDerivative< Scalar >::compute ( Teuchos::RCP< const Thyra::VectorBase< Scalar > >  x,
Teuchos::RCP< Thyra::VectorBase< Scalar > >  xDot,
Teuchos::RCP< Thyra::VectorBase< Scalar > >  xDotDot = Teuchos::null 
)
inlinevirtual

Compute the time derivative.

Implements Tempus::TimeDerivative< Scalar >.

Definition at line 246 of file Tempus_StepperBackwardEuler_decl.hpp.

template<typename Scalar >
virtual void Tempus::StepperBackwardEulerTimeDerivative< Scalar >::initialize ( Scalar  s,
Teuchos::RCP< const Thyra::VectorBase< Scalar > >  xOld 
)
inlinevirtual

Definition at line 256 of file Tempus_StepperBackwardEuler_decl.hpp.

Member Data Documentation

template<typename Scalar >
Scalar Tempus::StepperBackwardEulerTimeDerivative< Scalar >::s_
private

Definition at line 263 of file Tempus_StepperBackwardEuler_decl.hpp.

template<typename Scalar >
Teuchos::RCP<const Thyra::VectorBase<Scalar> > Tempus::StepperBackwardEulerTimeDerivative< Scalar >::xOld_
private

Definition at line 262 of file Tempus_StepperBackwardEuler_decl.hpp.


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