10 #ifndef Tempus_StepperTrapezoidal_decl_hpp
11 #define Tempus_StepperTrapezoidal_decl_hpp
13 #include "Tempus_config.hpp"
14 #include "Tempus_StepperImplicit.hpp"
82 template <
class Scalar>
96 bool useFSAL, std::string ICConsistency,
bool ICConsistencyCheck,
97 bool zeroInitialGuess,
99 stepperTrapAppAction);
139 virtual Scalar
getAlpha(
const Scalar dt)
const {
return Scalar(2.0) / dt; }
141 virtual Scalar
getBeta(
const Scalar)
const {
return Scalar(1.0); }
163 template <
typename Scalar>
184 xDotDot = Teuchos::null;
186 Thyra::V_StVpStV(xDot.ptr(),
s_, *x, -
s_, *
xOld_);
187 Thyra::V_VpStV(xDot.ptr(), *xDot, Scalar(-1.0), *
xDotOld_);
207 template <
class Scalar>
214 #endif // Tempus_StepperTrapezoidal_decl_hpp
virtual bool isImplicit() const
virtual Teuchos::RCP< Tempus::StepperState< Scalar > > getDefaultStepperState()
Get a default (initial) StepperState.
Trapezoidal method time stepper.
virtual bool isMultiStepMethod() const
StepperTrapezoidalTimeDerivative(Scalar s, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOld, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xDotOld)
Constructor.
virtual void initialize(Scalar s, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOld, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xDotOld)
virtual bool isOneStepMethod() const
virtual Scalar getOrderMax() const
virtual void setUseFSAL(bool a)
virtual bool isExplicit() const
Teuchos::RCP< const Thyra::VectorBase< Scalar > > xDotOld_
StepperTrapezoidal()
Default constructor.
Teuchos::RCP< StepperTrapezoidalAppAction< Scalar > > stepperTrapAppAction_
Teuchos::RCP< StepperTrapezoidal< Scalar > > createStepperTrapezoidal(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model, Teuchos::RCP< Teuchos::ParameterList > pl)
Nonmember constructor - ModelEvaluator and ParameterList.
virtual void setInitialConditions(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Set the initial conditions and make them consistent.
Thyra Base interface for implicit time steppers.
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.
void setUseFSALTrueOnly(bool a)
Teuchos::RCP< const Thyra::VectorBase< Scalar > > xOld_
Application Action for StepperTrapezoidal.
virtual void setAppAction(Teuchos::RCP< StepperTrapezoidalAppAction< Scalar > > appAction)
virtual Scalar getOrderMin() const
Time-derivative interface for Trapezoidal method.
virtual Scalar getAlpha(const Scalar dt) const
Return alpha = d(xDot)/dx.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual Scalar getBeta(const Scalar) const
Return beta = d(x)/dx.
Stepper integrates first-order ODEs.
virtual bool isValidSetup(Teuchos::FancyOStream &out) const
virtual Scalar getOrder() const
virtual OrderODE getOrderODE() const
virtual bool isExplicitImplicit() const
This interface defines the time derivative connection between an implicit Stepper and WrapperModelEva...
virtual ~StepperTrapezoidalTimeDerivative()
Destructor.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
virtual void takeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Take the specified timestep, dt, and return true if successful.
virtual Teuchos::RCP< StepperTrapezoidalAppAction< Scalar > > getAppAction() const