Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_WrapperModelEvaluatorPairIMEX.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ****************************************************************************
3 // Tempus: Copyright (2017) Sandia Corporation
4 //
5 // Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6 // ****************************************************************************
7 // @HEADER
8 
9 #ifndef Tempus_ModelEvaluatorPairIMEX_hpp
10 #define Tempus_ModelEvaluatorPairIMEX_hpp
11 
12 #include "Tempus_config.hpp"
14 
15 
16 namespace Tempus {
17 
25 template <typename Scalar>
27  : public Tempus::WrapperModelEvaluator<Scalar>
28 {
29 public:
30 
32  virtual void initialize() = 0;
33 
35 
37  get_x_space() const = 0;
38 
40  get_f_space() const = 0;
41 
43  get_g_space(int i) const = 0;
44 
46  get_p_space(int i) const = 0;
48 
50  virtual void setExplicitModel(
51  const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> > & ) = 0;
52  virtual void setImplicitModel(
53  const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> > & ) = 0;
55  getExplicitModel() const = 0;
57  getImplicitModel() const = 0;
59 
61 
63 
65  get_W_factory() const = 0;
66 
68  getNominalValues() const = 0;
69 
71 
73  createOutArgsImpl() const = 0;
74 
75  virtual void evalModelImpl(
77  const Thyra::ModelEvaluatorBase::OutArgs<Scalar> & out) const = 0;
79 
81  virtual void setForSolve(Teuchos::RCP<TimeDerivative<Scalar> > timeDer,
84  EVALUATION_TYPE evaluationType = SOLVE_FOR_X) = 0;
85 };
86 
87 } // namespace Tempus
88 
89 #endif // Tempus_ModelEvaluatorPairIMEX_hpp
EVALUATION_TYPE
EVALUATION_TYPE indicates the evaluation to apply to the implicit ODE.
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const =0
virtual void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &in, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &out) const =0
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const =0
Get the x-solution space.
ModelEvaluator pair for implicit and explicit (IMEX) evaluations.
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int i) const =0
Get the g space.
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int i) const =0
Get the p space.
virtual Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const =0
virtual void setExplicitModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &)=0
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getExplicitModel() const =0
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const =0
virtual void initialize()=0
Initialize after setting member data.
A ModelEvaluator which wraps the application ModelEvaluator.
virtual void setImplicitModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &)=0
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const =0
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const =0
This interface defines the time derivative connection between an implicit Stepper and WrapperModelEva...
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getImplicitModel() const =0
Solve for x and determine xDot from x.
virtual void setForSolve(Teuchos::RCP< TimeDerivative< Scalar > > timeDer, Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs, Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs, EVALUATION_TYPE evaluationType=SOLVE_FOR_X)=0
Set parameters for application implicit ModelEvaluator solve.
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const =0