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: Time Integration and Sensitivity Analysis Package
4 //
5 // Copyright 2017 NTESS and the Tempus contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 //@HEADER
9 
10 #ifndef TEMPUS_TEST_VANDERPOL_IMEXPart_ImplicitMODEL_DECL_HPP
11 #define TEMPUS_TEST_VANDERPOL_IMEXPart_ImplicitMODEL_DECL_HPP
12 
13 #include "Thyra_ModelEvaluator.hpp" // Interface
14 #include "Thyra_StateFuncModelEvaluatorBase.hpp" // Implementation
15 
16 #include "Teuchos_ParameterListAcceptorDefaultBase.hpp"
18 
19 namespace Tempus_Test {
20 
102 template <class Scalar>
104  : public Thyra::StateFuncModelEvaluatorBase<Scalar>,
106  public:
107  // Constructor
109  Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null);
110 
119  get_W_factory() const;
121 
126 
132 
133  private:
134  void setupInOutArgs_() const;
135 
139  void evalModelImpl(
141  const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs_bar) const;
143 
144  int dim_;
145  int Np_;
146  int np_;
147  int Ng_;
148  int ng_;
149  bool haveIC_;
151  mutable bool isInitialized_;
162 
163  // Parameters for the model:
164  Scalar epsilon_;
165  Scalar t0_ic_;
166  Scalar x0_ic_;
167  Scalar x1_ic_;
168 };
169 
170 } // namespace Tempus_Test
171 #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