9 #ifndef TEMPUS_TEST_HARMONIC_OSCILLATOR_MODEL_DECL_HPP
10 #define TEMPUS_TEST_HARMONIC_OSCILLATOR_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 {
51 template<
class Scalar>
53 :
public Thyra::StateFuncModelEvaluatorBase<Scalar>,
54 public Teuchos::ParameterListAcceptorDefaultBase
59 HarmonicOscillatorModel(Teuchos::RCP<Teuchos::ParameterList> pList = Teuchos::null,
const bool use_accel_IC =
false);
67 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_x_space()
const;
68 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_f_space()
const;
70 Teuchos::RCP<Thyra::LinearOpWithSolveBase<Scalar> >
create_W()
const;
71 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const;
72 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
get_W_factory()
const;
73 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
75 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_p_space(
int l)
const;
76 Teuchos::RCP<const Teuchos::Array<std::string> >
get_p_names(
int l)
const;
77 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_g_space(
int j)
const;
83 void setParameterList(Teuchos::RCP<Teuchos::ParameterList>
const& paramList);
95 const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs_bar,
96 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs_bar
101 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
x_space_;
102 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
p_space_;
103 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
g_space_;
104 Teuchos::RCP<Thyra::VectorBase<Scalar> >
x_vec_;
107 Teuchos::RCP<Thyra::VectorBase<Scalar> >
p_init_;
110 mutable Thyra::ModelEvaluatorBase::InArgs<Scalar>
inArgs_;
111 mutable Thyra::ModelEvaluatorBase::OutArgs<Scalar>
outArgs_;
118 Teuchos::RCP<Teuchos::FancyOStream>
out_;
124 #endif // TEMPUS_TEST_HARMONIC_OSCILLATOR_MODEL_DECL_HPP
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
Teuchos::RCP< Thyra::VectorBase< Scalar > > p_init_
Teuchos::RCP< Thyra::VectorBase< Scalar > > x_dot_vec_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > g_space_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > getExactSolution(double t) const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Consider the ODE: where is a constant, is a constant damping parameter, is a constant forcing par...
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int j) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > p_space_
Teuchos::RCP< Teuchos::FancyOStream > out_
Teuchos::RCP< Thyra::VectorBase< Scalar > > x_dot_dot_vec_
Thyra::ModelEvaluatorBase::InArgs< Scalar > nominalValues_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int l) const
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > create_W() const
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > x_space_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
HarmonicOscillatorModel(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null, const bool use_accel_IC=false)
Teuchos::RCP< Thyra::VectorBase< Scalar > > x_vec_
void setupInOutArgs_() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs_
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const