10 #ifndef Tempus_StepperImplicit_decl_hpp
11 #define Tempus_StepperImplicit_decl_hpp
14 #include "Tempus_config.hpp"
15 #include "Tempus_Stepper.hpp"
16 #include "Tempus_WrapperModelEvaluatorBasic.hpp"
196 template <
class Scalar>
236 virtual Scalar
getAlpha(
const Scalar dt)
const = 0;
239 virtual Scalar
getBeta(
const Scalar dt)
const = 0;
247 const int index = -1 );
278 return Scalar(1.0e+99);
316 #endif // Tempus_StepperImplicit_decl_hpp
virtual Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const override
virtual void setSolver(Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > solver) override
Set solver.
virtual Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > getSolver() const override
Get solver.
virtual bool isValidSetup(Teuchos::FancyOStream &out) const override
Teuchos::RCP< const Thyra::VectorBase< Scalar > > initialGuess_
Teuchos::RCP< WrapperModelEvaluator< Scalar > > wrapperModel_
void setStepperImplicitValues(Teuchos::RCP< Teuchos::ParameterList > pl)
Set StepperImplicit member data from the ParameterList.
virtual Scalar getInitTimeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &) const override
virtual void setInitialGuess(Teuchos::RCP< const Thyra::VectorBase< Scalar > > initialGuess) override
Pass initial guess to Newton solver (only relevant for implicit solvers)
virtual Teuchos::RCP< const WrapperModelEvaluator< Scalar > > getWrapperModel()
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const override
bool isInitialized_
True if stepper's member data is initialized.
virtual Scalar getBeta(const Scalar dt) const =0
Return beta = d(x)/dx.
const Thyra::SolveStatus< Scalar > solveImplicitODE(const Teuchos::RCP< Thyra::VectorBase< Scalar > > &x, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &xDot, const Scalar time, const Teuchos::RCP< ImplicitODEParameters< Scalar > > &p, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &y=Teuchos::null, const int index=-1)
Solve implicit ODE, f(x, xDot, t, p) = 0.
virtual void setModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel) override
Set the model.
Thyra Base interface for time steppers.
virtual void setInitialConditions(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory) override
Set the initial conditions and make them consistent.
void evaluateImplicitODE(Teuchos::RCP< Thyra::VectorBase< Scalar > > &f, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &x, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &xDot, const Scalar time, const Teuchos::RCP< ImplicitODEParameters< Scalar > > &p)
Evaluate implicit ODE residual, f(x, xDot, t, p).
Thyra Base interface for implicit time steppers.
virtual void setDefaultSolver()
void setSolverName(std::string i)
Set the Solver Name.
void setStepperSolverValues(Teuchos::RCP< Teuchos::ParameterList > pl)
Set solver from ParameterList.
virtual void setZeroInitialGuess(bool zIG)
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getModel() const override
Teuchos::RCP< Teuchos::ParameterList > getValidParametersBasicImplicit() const
std::string getSolverName() const
Get the Solver Name.
virtual Scalar getAlpha(const Scalar dt) const =0
Return alpha = d(xDot)/dx.
Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > solver_
virtual bool getZeroInitialGuess() const