Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VanDerPol_ModelEvaluator_02.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_VANDERPOL_MODELEVALUATOR_02_HPP
10 #define TEMPUS_VANDERPOL_MODELEVALUATOR_02_HPP
11 
12 #include "Thyra_ModelEvaluator.hpp" // Interface
13 #include "Thyra_StateFuncModelEvaluatorBase.hpp" // Implementation
14 
15 
24 template<class Scalar>
26  : public Thyra::StateFuncModelEvaluatorBase<Scalar>
27 {
28  public:
29 
49 
53  { return x_space_; }
55  { return f_space_; }
57  { return nominalValues_; }
59  { return prototypicalInArgs_; }
61 
62 private:
63 
67  { return prototypicalOutArgs_; }
83  void evalModelImpl(
86  ) const;
88 
105 
106  int dim_;
107  Scalar t0_ic_;
108  Scalar epsilon_;
109  Scalar x0_ic_;
110  Scalar x1_ic_;
111 };
112 
113 
114 #endif // TEMPUS_VANDERPOL_MODELEVALUATOR_02_HPP
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > prototypicalOutArgs_
Prototypical OutArgs that just supports the evaluation vector (OUT_ARG_f)
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
Scalar epsilon_
This is a model parameter ( )
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const
Scalar x1_ic_
initial condition for
Scalar x0_ic_
initial condition for
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > x_space_
Solution vector space (a defaultSpmdVectorSpace of dimension 2)
ModelEvaluator implementation for the example van der Pol Problem.
int dim_
Number of state unknowns (2)
Thyra::ModelEvaluatorBase::InArgs< Scalar > nominalValues_
Thyra::ModelEvaluatorBase::InArgs< Scalar > prototypicalInArgs_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > f_space_
Function evaluation vector space (a defaultSpmdVectorSpace of dimension 2)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const