Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VanDerPol_IMEXPart_ImplicitModel_decl.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_TEST_VANDERPOL_IMEXPart_ImplicitMODEL_DECL_HPP
10 #define TEMPUS_TEST_VANDERPOL_IMEXPart_ImplicitMODEL_DECL_HPP
11 
12 #include "Thyra_ModelEvaluator.hpp" // Interface
13 #include "Thyra_StateFuncModelEvaluatorBase.hpp" // Implementation
14 
15 #include "Teuchos_ParameterListAcceptorDefaultBase.hpp"
17 
18 namespace Tempus_Test {
19 
101 template<class Scalar>
103  : public Thyra::StateFuncModelEvaluatorBase<Scalar>,
105 {
106  public:
107 
108  // Constructor
110  Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null);
111 
120  get_W_factory() const;
122 
127 
133 
134 private:
135 
136  void setupInOutArgs_() const;
137 
141  void evalModelImpl(
144  ) const;
146 
147  int dim_;
148  int Np_;
149  int np_;
150  int Ng_;
151  int ng_;
152  bool haveIC_;
154  mutable bool isInitialized_;
165 
166  // Parameters for the model:
167  Scalar epsilon_;
168  Scalar t0_ic_;
169  Scalar x0_ic_;
170  Scalar x1_ic_;
171 };
172 
173 
174 } // namespace Tempus_Test
175 #endif // TEMPUS_TEST_VANDERPOL_IMEXPart_ImplicitMODEL_DECL_HPP
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
van der Pol model formulated for the partitioned IMEX-RK.
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > create_W() const
int ng_
Number of elements in this observation function (0)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > p_space_
VanDerPol_IMEXPart_ImplicitModel(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > f_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > dxdp_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int j) const
bool haveIC_
false =&gt; no nominal values are provided (default=true)
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > dydp_space_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int l) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > x_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > g_space_
bool useDfDpAsTangent_
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp)
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > y_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const &paramList)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const