Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Tempus::StepperBackwardEulerTimeDerivative< Scalar > Class Template Reference

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

#include <Tempus_StepperBackwardEuler_decl.hpp>

Inheritance diagram for Tempus::StepperBackwardEulerTimeDerivative< Scalar >:
Inheritance graph
[legend]

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 210 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 216 of file Tempus_StepperBackwardEuler_decl.hpp.

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

Destructor.

Definition at line 221 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 224 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 234 of file Tempus_StepperBackwardEuler_decl.hpp.

Member Data Documentation

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

Definition at line 240 of file Tempus_StepperBackwardEuler_decl.hpp.

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

Definition at line 241 of file Tempus_StepperBackwardEuler_decl.hpp.


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