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::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 295 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 299 of file Tempus_StepperDIRK_decl.hpp.

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

Destructor.

Definition at line 306 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 309 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 318 of file Tempus_StepperDIRK_decl.hpp.

Member Data Documentation

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

Definition at line 326 of file Tempus_StepperDIRK_decl.hpp.

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

Definition at line 327 of file Tempus_StepperDIRK_decl.hpp.


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