9 #ifndef TEMPUS_TEST_VANDERPOL_IMEX_ImplicitMODEL_DECL_HPP
10 #define TEMPUS_TEST_VANDERPOL_IMEX_ImplicitMODEL_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 {
106 template<
class Scalar>
108 :
public Thyra::StateFuncModelEvaluatorBase<Scalar>,
109 public Teuchos::ParameterListAcceptorDefaultBase
115 Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null);
119 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_x_space()
const;
120 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_f_space()
const;
122 Teuchos::RCP<Thyra::LinearOpWithSolveBase<Scalar> >
create_W()
const;
123 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const;
124 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
126 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
128 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_p_space(
int l)
const;
129 Teuchos::RCP<const Teuchos::Array<std::string> >
get_p_names(
int l)
const;
130 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_g_space(
int j)
const;
135 void setParameterList(Teuchos::RCP<Teuchos::ParameterList>
const& paramList);
147 const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs_bar,
148 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs_bar
161 mutable Thyra::ModelEvaluatorBase::InArgs<Scalar>
inArgs_;
162 mutable Thyra::ModelEvaluatorBase::OutArgs<Scalar>
outArgs_;
164 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
x_space_;
165 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
f_space_;
166 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
p_space_;
168 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
g_space_;
179 #endif // TEMPUS_TEST_VANDERPOL_IMEX_ImplicitMODEL_DECL_HPP
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int l) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > x_space_
van der Pol model formulated for IMEX-RK.
void setupInOutArgs_() const
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > create_W() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
int dim_
Number of state unknowns (2)
int ng_
Number of elements in this observation function (0)
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Scalar x1_ic_
initial condition for x1
VanDerPol_IMEX_ImplicitModel(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs_
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int j) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > nominalValues_
bool useDfDpAsTangent_
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const
Scalar x0_ic_
initial condition for x0
int Ng_
Number of observation functions (0)
Scalar t0_ic_
initial time
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > f_space_
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
int np_
Number of parameters in this vector (1)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > dxdp_space_
bool haveIC_
false => no nominal values are provided (default=true)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > g_space_
int Np_
Number of parameter vectors (1)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > p_space_
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
bool acceptModelParams_
Changes inArgs to require parameters.
Scalar epsilon_
This is a model parameter.