9 #ifndef Tempus_StepperIMEX_RK_Partition_decl_hpp
10 #define Tempus_StepperIMEX_RK_Partition_decl_hpp
12 #include "Tempus_config.hpp"
14 #include "Tempus_StepperImplicit.hpp"
15 #include "Tempus_WrapperModelEvaluatorPairPartIMEX_Basic.hpp"
226 template<
class Scalar>
242 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel,
243 Teuchos::RCP<Teuchos::ParameterList> pList);
247 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel,
248 std::string stepperType =
"Partitioned IMEX RK SSP2");
252 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& models,
253 std::string stepperType, Teuchos::RCP<Teuchos::ParameterList> pList);
258 virtual void setTableaus(Teuchos::RCP<Teuchos::ParameterList> pList,
259 std::string stepperType =
"");
263 Teuchos::RCP<Teuchos::ParameterList> pList);
271 Teuchos::RCP<Teuchos::ParameterList> pList);
278 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel);
280 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
getModel()
288 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& explicitModel,
289 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& implicitModel);
324 return Scalar(1.0)/(dt*A(0,0));
327 virtual Scalar
getBeta (
const Scalar )
const {
return Scalar(1.0); }
341 virtual void describe(Teuchos::FancyOStream & out,
342 const Teuchos::EVerbosityLevel verbLevel)
const;
346 const Teuchos::RCP<
const Thyra::VectorBase<Scalar> > & X,
347 const Teuchos::RCP<
const Thyra::VectorBase<Scalar> > & Y,
348 Scalar time, Scalar stepSize, Scalar stageNumber,
349 const Teuchos::RCP<Thyra::VectorBase<Scalar> > & G)
const;
352 const Teuchos::RCP<
const Thyra::VectorBase<Scalar> > & X,
353 Scalar time, Scalar stepSize, Scalar stageNumber,
354 const Teuchos::RCP<Thyra::VectorBase<Scalar> > & F)
const;
364 Teuchos::RCP<Thyra::VectorBase<Scalar> >
stageZ_;
365 std::vector<Teuchos::RCP<Thyra::VectorBase<Scalar> > >
stageF_;
366 std::vector<Teuchos::RCP<Thyra::VectorBase<Scalar> > >
stageGx_;
368 Teuchos::RCP<Thyra::VectorBase<Scalar> >
xTilde_;
387 template <
typename Scalar>
395 Scalar s, Teuchos::RCP<
const Thyra::VectorBase<Scalar> > xTilde)
403 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > x,
404 Teuchos::RCP< Thyra::VectorBase<Scalar> > xDot,
405 Teuchos::RCP< Thyra::VectorBase<Scalar> > xDotDot = Teuchos::null)
407 xDotDot = Teuchos::null;
418 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > xTilde)
423 Teuchos::RCP<const Thyra::VectorBase<Scalar> >
xTilde_;
429 #endif // Tempus_StepperIMEX_RK_Partition_decl_hpp
virtual Scalar getAlpha(const Scalar dt) const
Return alpha = d(xDot)/dx.
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Teuchos::RCP< WrapperModelEvaluator< Scalar > > wrapperModel_
Teuchos::RCP< Thyra::VectorBase< Scalar > > xTilde_
StepperIMEX_RK_Partition()
Default constructor.
virtual void setImplicitTableau(std::string stepperType, Teuchos::RCP< Teuchos::ParameterList > pList)
Set the implicit tableau from ParameterList.
virtual void setModelPair(const Teuchos::RCP< WrapperModelEvaluatorPairPartIMEX_Basic< Scalar > > &modelPair)
Create WrapperModelPairIMEX from user-supplied ModelEvaluator pair.
virtual bool isExplicitImplicit() const
Teuchos::RCP< const RKButcherTableau< Scalar > > implicitTableau_
Partitioned Implicit-Explicit Runge-Kutta (IMEX-RK) time stepper.
virtual std::string description() const
Teuchos::RCP< Teuchos::ParameterList > unsetParameterList()
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getModel()
virtual Scalar getOrderMax() const
void evalExplicitModel(const Teuchos::RCP< const Thyra::VectorBase< Scalar > > &X, Scalar time, Scalar stepSize, Scalar stageNumber, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &F) const
Teuchos::RCP< Thyra::VectorBase< Scalar > > stageZ_
StepperIMEX_RKPartTimeDerivative(Scalar s, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xTilde)
Constructor.
virtual OrderODE getOrderODE() const
std::vector< Teuchos::RCP< Thyra::VectorBase< Scalar > > > stageF_
virtual bool isImplicit() const
Thyra Base interface for implicit time steppers.
virtual Teuchos::RCP< Tempus::StepperState< Scalar > > getDefaultStepperState()
Provide a StepperState to the SolutionState. This Stepper does not have any special state data...
ModelEvaluator pair for implicit and explicit (IMEX) evaulations.
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &pl)
Teuchos::RCP< Teuchos::ParameterList > getDefaultParameters() const
virtual bool isExplicit() const
Teuchos::RCP< Teuchos::ParameterList > getNonconstParameterList()
virtual ~StepperIMEX_RKPartTimeDerivative()
Destructor.
void evalImplicitModelExplicitly(const Teuchos::RCP< const Thyra::VectorBase< Scalar > > &X, const Teuchos::RCP< const Thyra::VectorBase< Scalar > > &Y, Scalar time, Scalar stepSize, Scalar stageNumber, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &G) const
StepperObserver class for Stepper class.
Teuchos::RCP< SolutionHistory< Scalar > > solutionHistory(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
Nonmember constructor.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual void setObserver(Teuchos::RCP< StepperObserver< Scalar > > obs=Teuchos::null)
Set Observer.
Stepper integrates first-order ODEs.
virtual bool isOneStepMethod() const
virtual void initialize(Scalar s, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xTilde)
Teuchos::RCP< const RKButcherTableau< Scalar > > explicitTableau_
This interface defines the time derivative connection between an implicit Stepper and WrapperModelEva...
virtual Scalar getBeta(const Scalar) const
Return beta = d(x)/dx.
std::vector< Teuchos::RCP< Thyra::VectorBase< Scalar > > > stageGx_
Teuchos::RCP< const Thyra::VectorBase< Scalar > > xTilde_
Time-derivative interface for Partitioned IMEX RK.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
virtual void setTableaus(Teuchos::RCP< Teuchos::ParameterList > pList, std::string stepperType="")
Set both the explicit and implicit tableau from ParameterList.
virtual void setModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel)
virtual Scalar getOrder() const
virtual void takeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Take the specified timestep, dt, and return true if successful.
virtual Scalar getOrderMin() const
virtual void setInitialConditions(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Set the initial conditions and make them consistent.
virtual void initialize()
Initialize during construction and after changing input parameters.
virtual bool isMultiStepMethod() const
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.
Teuchos::RCP< StepperIMEX_RKPartObserver< Scalar > > stepperIMEX_RKPartObserver_
virtual void setExplicitTableau(std::string stepperType, Teuchos::RCP< Teuchos::ParameterList > pList)
Set the explicit tableau from ParameterList.