9 #ifndef Tempus_StepperHHTAlpha_decl_hpp
10 #define Tempus_StepperHHTAlpha_decl_hpp
12 #include "Tempus_StepperImplicit.hpp"
13 #include "Tempus_WrapperModelEvaluatorSecondOrder.hpp"
43 template<
class Scalar>
59 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel,
60 Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null);
65 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel);
84 if (
gamma_ == 0.5)
return 2.0;
102 {
return Scalar(1.0)/(
beta_*dt*dt); }
106 virtual Scalar
getBeta (
const Scalar )
const {
return Scalar(1.0); }
120 virtual void describe(Teuchos::FancyOStream & out,
121 const Teuchos::EVerbosityLevel verbLevel)
const;
125 const Thyra::VectorBase<Scalar>& v,
126 const Thyra::VectorBase<Scalar>& a,
127 const Scalar dt)
const;
130 const Thyra::VectorBase<Scalar>& d,
131 const Thyra::VectorBase<Scalar>& v,
132 const Thyra::VectorBase<Scalar>& a,
133 const Scalar dt)
const;
136 const Thyra::VectorBase<Scalar>& v)
const;
139 const Thyra::VectorBase<Scalar>& d)
const;
142 const Thyra::VectorBase<Scalar>& a_n)
const;
145 const Thyra::VectorBase<Scalar>& vPred,
146 const Thyra::VectorBase<Scalar>& a,
147 const Scalar dt)
const;
150 const Thyra::VectorBase<Scalar>& dPred,
151 const Thyra::VectorBase<Scalar>& a,
152 const Scalar dt)
const;
161 Teuchos::RCP<Teuchos::FancyOStream>
out_;
166 #endif // Tempus_StepperHHTAlpha_decl_hpp
void correctDisplacement(Thyra::VectorBase< Scalar > &d, const Thyra::VectorBase< Scalar > &dPred, const Thyra::VectorBase< Scalar > &a, const Scalar dt) const
virtual Scalar getW_xDotDot_coeff(const Scalar dt) const
Return W_xDotxDot_coeff = d(xDotDot)/d(x).
virtual bool isExplicitImplicit() const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
void correctVelocity(Thyra::VectorBase< Scalar > &v, const Thyra::VectorBase< Scalar > &vPred, const Thyra::VectorBase< Scalar > &a, const Scalar dt) const
virtual OrderODE getOrderODE() const
virtual Scalar getOrderMin() const
void correctAcceleration(Thyra::VectorBase< Scalar > &a_n_plus1, const Thyra::VectorBase< Scalar > &a_n) const
virtual Teuchos::RCP< Tempus::StepperState< Scalar > > getDefaultStepperState()
Get a default (initial) StepperState.
StepperHHTAlpha()
Default constructor.
virtual void setObserver(Teuchos::RCP< StepperObserver< Scalar > >=Teuchos::null)
Set Observer.
Stepper integrates second-order ODEs.
virtual Scalar getAlpha(const Scalar dt) const
Return alpha = d(xDot)/d(x).
Thyra Base interface for implicit time steppers.
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &pl)
void predictVelocity_alpha_f(Thyra::VectorBase< Scalar > &vPred, const Thyra::VectorBase< Scalar > &v) const
StepperObserver class for Stepper class.
Teuchos::RCP< SolutionHistory< Scalar > > solutionHistory(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
Nonmember constructor.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
void predictDisplacement_alpha_f(Thyra::VectorBase< Scalar > &dPred, const Thyra::VectorBase< Scalar > &d) const
virtual Scalar getBeta(const Scalar) const
Return beta = d(x)/d(x).
virtual bool isOneStepMethod() const
void predictDisplacement(Thyra::VectorBase< Scalar > &dPred, const Thyra::VectorBase< Scalar > &d, const Thyra::VectorBase< Scalar > &v, const Thyra::VectorBase< Scalar > &a, const Scalar dt) const
virtual Scalar getOrderMax() const
virtual std::string description() const
Teuchos::RCP< Teuchos::FancyOStream > out_
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()
void predictVelocity(Thyra::VectorBase< Scalar > &vPred, const Thyra::VectorBase< Scalar > &v, const Thyra::VectorBase< Scalar > &a, const Scalar dt) const
virtual void setInitialConditions(const Teuchos::RCP< SolutionHistory< Scalar > > &)
Set the initial conditions and make them consistent.
virtual bool isImplicit() const
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()
virtual bool isMultiStepMethod() const
virtual void initialize()
Initialize during construction and after changing input parameters.
virtual Scalar getOrder() const
virtual bool isExplicit() const
Teuchos::RCP< Teuchos::ParameterList > getDefaultParameters() const
virtual void setModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel)
virtual void takeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Take the specified timestep, dt, and return true if successful.