9 #ifndef TEMPUS_TEST_VANDERPOL_MODEL_DECL_HPP
10 #define TEMPUS_TEST_VANDERPOL_MODEL_DECL_HPP
12 #include "Thyra_ModelEvaluator.hpp"
13 #include "Thyra_StateFuncModelEvaluatorBase.hpp"
15 #include "Teuchos_ParameterListAcceptorDefaultBase.hpp"
16 #include "Teuchos_ParameterList.hpp"
18 namespace Tempus_Test {
110 template<
class Scalar>
112 :
public Thyra::StateFuncModelEvaluatorBase<Scalar>,
113 public Teuchos::ParameterListAcceptorDefaultBase
118 VanDerPolModel(Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null);
129 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_x_space()
const;
130 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_f_space()
const;
132 Teuchos::RCP<Thyra::LinearOpWithSolveBase<Scalar> >
create_W()
const;
133 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const;
134 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
get_W_factory()
const;
135 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
137 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_p_space(
int l)
const;
138 Teuchos::RCP<const Teuchos::Array<std::string> >
get_p_names(
int l)
const;
139 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_g_space(
int j)
const;
145 void setParameterList(Teuchos::RCP<Teuchos::ParameterList>
const& paramList);
157 const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs_bar,
158 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs_bar
170 mutable Thyra::ModelEvaluatorBase::InArgs<Scalar>
inArgs_;
171 mutable Thyra::ModelEvaluatorBase::OutArgs<Scalar>
outArgs_;
173 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
x_space_;
174 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
f_space_;
175 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
p_space_;
176 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
g_space_;
187 #endif // TEMPUS_TEST_VANDERPOL_MODEL_DECL_HPP
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > p_space_
Thyra::ModelEvaluatorBase::InArgs< Scalar > nominalValues_
int Ng_
Number of observation functions (0)
Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs_
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > g_space_
Thyra::ModelEvaluatorBase::InArgs< Scalar > getExactSolution(double t) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
int Np_
Number of parameter vectors (1)
bool haveIC_
false => no nominal values are provided (default=true)
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
VanDerPolModel(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > f_space_
Scalar x1_ic_
initial condition for x1
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > create_W() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > x_space_
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
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
Scalar epsilon_
This is a model parameter.
bool acceptModelParams_
Changes inArgs to require parameters.
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
int dim_
Number of state unknowns (2)
van der Pol model problem for nonlinear electrical circuit.
int np_
Number of parameters in this vector (1)
Thyra::ModelEvaluatorBase::InArgs< Scalar > getExactSensSolution(int j, double t) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int l) const
void setupInOutArgs_() const
int ng_
Number of elements in this observation function (0)
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
Scalar x0_ic_
initial condition for x0
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
Scalar t0_ic_
initial time