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

Time-derivative interface for DIRK. More...

#include <Tempus_StepperDIRK_decl.hpp>

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

Public Member Functions

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

Private Attributes

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

Detailed Description

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

Time-derivative interface for DIRK.

Given the stage state $X_i$ and

\[ \tilde{X} = x_{n-1} +\Delta t \sum_{j=1}^{i-1} a_{ij}\,\dot{X}_{j}, \]

compute the DIRK stage time-derivative,

\[ \dot{X}_i = \frac{X_{i} - \tilde{X}}{a_{ii} \Delta t} \]

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

Definition at line 300 of file Tempus_StepperDIRK_decl.hpp.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 306 of file Tempus_StepperDIRK_decl.hpp.

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

Destructor.

Definition at line 311 of file Tempus_StepperDIRK_decl.hpp.

Member Function Documentation

template<typename Scalar >
virtual void Tempus::StepperDIRKTimeDerivative< 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 314 of file Tempus_StepperDIRK_decl.hpp.

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

Definition at line 323 of file Tempus_StepperDIRK_decl.hpp.

Member Data Documentation

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

Definition at line 330 of file Tempus_StepperDIRK_decl.hpp.

template<typename Scalar >
Teuchos::RCP<const Thyra::VectorBase<Scalar> > Tempus::StepperDIRKTimeDerivative< Scalar >::xTilde_
private

Definition at line 329 of file Tempus_StepperDIRK_decl.hpp.


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