Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VanDerPol_IMEX_ExplicitModel_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_IMEX_EXPLICITMODEL_DECL_HPP
11 #define TEMPUS_TEST_VANDERPOL_IMEX_EXPLICITMODEL_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 
107 template <class Scalar>
109  : public Thyra::StateFuncModelEvaluatorBase<Scalar>,
111  public:
112  // Constructor
114  Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null,
115  bool useProductVector = false);
116 
124 
129 
135 
136  private:
137  void setupInOutArgs_() const;
138 
142  void evalModelImpl(
144  const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs_bar) const;
146 
148  int dim_;
149  int Np_;
150  int np_;
151  int Ng_;
152  int ng_;
153  bool haveIC_;
156  mutable bool isInitialized_;
166 
167  // Parameters for the model:
168  Scalar epsilon_;
169  Scalar t0_ic_;
170  Scalar x0_ic_;
171  Scalar x1_ic_;
172 };
173 
174 } // namespace Tempus_Test
175 #endif // TEMPUS_TEST_VANDERPOL_IMEX_EXPLICITMODEL_DECL_HPP
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > dxdp_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > f_space_
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
bool haveIC_
false =&gt; no nominal values are provided (default=true)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > x_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > nominalValues_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > p_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int l) const
bool acceptModelParams_
Changes inArgs to require parameters.
bool useDfDpAsTangent_
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp)
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const &paramList)
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
int np_
Number of parameters in this vector (1)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > xSpace_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > g_space_
int ng_
Number of elements in this observation function (0)
Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs_
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
VanDerPol_IMEX_ExplicitModel(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null, bool useProductVector=false)
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int j) const