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

Time-derivative interface for Trapezoidal method. More...

#include <Tempus_StepperTrapezoidal_decl.hpp>

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

Public Member Functions

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

Private Attributes

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

Detailed Description

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

Time-derivative interface for Trapezoidal method.

Given the state $x$, compute the Trapezoidal method time-derivative,

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

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

Definition at line 127 of file Tempus_StepperTrapezoidal_decl.hpp.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 133 of file Tempus_StepperTrapezoidal_decl.hpp.

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

Destructor.

Definition at line 139 of file Tempus_StepperTrapezoidal_decl.hpp.

Member Function Documentation

template<typename Scalar >
virtual void Tempus::StepperTrapezoidalTimeDerivative< 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 142 of file Tempus_StepperTrapezoidal_decl.hpp.

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

Definition at line 153 of file Tempus_StepperTrapezoidal_decl.hpp.

Member Data Documentation

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

Definition at line 160 of file Tempus_StepperTrapezoidal_decl.hpp.

template<typename Scalar >
Teuchos::RCP<const Thyra::VectorBase<Scalar> > Tempus::StepperTrapezoidalTimeDerivative< Scalar >::xDotOld_
private

Definition at line 162 of file Tempus_StepperTrapezoidal_decl.hpp.

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

Definition at line 161 of file Tempus_StepperTrapezoidal_decl.hpp.


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