Tempus Version of the Day
Time Integration
Loading...
Searching...
No Matches
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.
 
virtual ~StepperDIRKTimeDerivative ()
 Destructor.
 
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.
 
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 301 of file Tempus_StepperDIRK_decl.hpp.

Constructor & Destructor Documentation

◆ StepperDIRKTimeDerivative()

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

Constructor.

Definition at line 307 of file Tempus_StepperDIRK_decl.hpp.

◆ ~StepperDIRKTimeDerivative()

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

Destructor.

Definition at line 312 of file Tempus_StepperDIRK_decl.hpp.

Member Function Documentation

◆ compute()

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 315 of file Tempus_StepperDIRK_decl.hpp.

◆ initialize()

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

Definition at line 324 of file Tempus_StepperDIRK_decl.hpp.

Member Data Documentation

◆ xTilde_

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

Definition at line 330 of file Tempus_StepperDIRK_decl.hpp.

◆ s_

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

Definition at line 331 of file Tempus_StepperDIRK_decl.hpp.


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