9 #ifndef TEMPUS_TEST_VANDERPOL_IMEXPart_ImplicitMODEL_DECL_HPP
10 #define TEMPUS_TEST_VANDERPOL_IMEXPart_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 {
101 template<
class Scalar>
103 :
public Thyra::StateFuncModelEvaluatorBase<Scalar>,
104 public Teuchos::ParameterListAcceptorDefaultBase
110 Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null);
114 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_x_space()
const;
115 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_f_space()
const;
117 Teuchos::RCP<Thyra::LinearOpWithSolveBase<Scalar> >
create_W()
const;
118 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const;
119 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
121 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
123 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_p_space(
int l)
const;
124 Teuchos::RCP<const Teuchos::Array<std::string> >
get_p_names(
int l)
const;
125 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_g_space(
int j)
const;
130 void setParameterList(Teuchos::RCP<Teuchos::ParameterList>
const& paramList);
142 const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs_bar,
143 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs_bar
155 mutable Thyra::ModelEvaluatorBase::InArgs<Scalar>
inArgs_;
156 mutable Thyra::ModelEvaluatorBase::OutArgs<Scalar>
outArgs_;
158 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
x_space_;
159 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
f_space_;
160 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
p_space_;
161 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
y_space_;
164 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
g_space_;
175 #endif // TEMPUS_TEST_VANDERPOL_IMEXPart_ImplicitMODEL_DECL_HPP
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > nominalValues_
int np_
Number of parameters in this vector (1)
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Scalar x1_ic_
initial condition for x1
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)
int Np_
Number of parameter vectors (1)
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 => no nominal values are provided (default=true)
Scalar x0_ic_
initial condition for x0
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
void setupInOutArgs_() const
int Ng_
Number of observation functions (0)
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
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
Scalar epsilon_
This is a model parameter.
int dim_
Number of state unknowns (1)
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 ¶mList)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
Scalar t0_ic_
initial time
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const