9 #ifndef Tempus_CombinedForwardSensitivityModelEvaluator_decl_hpp
10 #define Tempus_CombinedForwardSensitivityModelEvaluator_decl_hpp
13 #include "Thyra_StateFuncModelEvaluatorBase.hpp"
14 #include "Thyra_DefaultMultiVectorProductVectorSpace.hpp"
36 template <
typename Scalar>
38 public Thyra::StateFuncModelEvaluatorBase<Scalar>,
41 typedef Thyra::VectorBase<Scalar>
Vector;
69 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> > & model,
70 const Teuchos::RCP<const Teuchos::ParameterList>& pList = Teuchos::null,
71 const Teuchos::RCP<MultiVector>& dxdp_init = Teuchos::null,
72 const Teuchos::RCP<MultiVector>& dx_dotdp_init = Teuchos::null,
73 const Teuchos::RCP<MultiVector>& dx_dotdot_dp_init = Teuchos::null);
90 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_p_space(
int p)
const;
92 Teuchos::RCP<const Teuchos::Array<std::string> >
get_p_names(
int p)
const;
94 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_x_space()
const;
96 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_f_space()
const;
98 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_g_space(
int j)
const;
100 Teuchos::ArrayView<const std::string>
get_g_names(
int j)
const;
102 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const;
106 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_DgDx_op(
int j)
const;
108 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_DgDp_op(
int j,
int l)
const;
110 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
113 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
126 const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs,
127 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs)
const;
133 Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
model_;
144 Teuchos::RCP<const Thyra::DefaultMultiVectorProductVectorSpace<Scalar> >
dxdp_space_;
145 Teuchos::RCP<const Thyra::DefaultMultiVectorProductVectorSpace<Scalar> >
x_dxdp_space_;
146 Teuchos::RCP<const Thyra::DefaultMultiVectorProductVectorSpace<Scalar> >
dfdp_space_;
147 Teuchos::RCP<const Thyra::DefaultMultiVectorProductVectorSpace<Scalar> >
f_dfdp_space_;
149 mutable Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
my_dfdx_;
int getSensitivityParamIndex() const
Get sensitivity parameter index.
Thyra::MultiVectorBase< Scalar > MultiVector
Transform a ModelEvaluator's sensitivity equations to its residual.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int p) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int j) const
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_DgDx_dot_op(int j) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
Teuchos::RCP< const Thyra::DefaultMultiVectorProductVectorSpace< Scalar > > dxdp_space_
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int p) const
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_DgDp_op(int j, int l) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > prototypeInArgs_
static Teuchos::RCP< const Teuchos::ParameterList > getValidParameters()
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > my_dfdxdot_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Teuchos::RCP< const Thyra::DefaultMultiVectorProductVectorSpace< Scalar > > x_dxdp_space_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_DgDx_op(int j) const
Teuchos::RCP< MultiVector > dxdp_init_
Teuchos::RCP< const Thyra::DefaultMultiVectorProductVectorSpace< Scalar > > f_dfdp_space_
Teuchos::RCP< MultiVector > dx_dotdp_init_
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< MultiVector > dx_dotdotdp_init_
Teuchos::ArrayView< const std::string > get_g_names(int j) const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
Teuchos::RCP< const Thyra::DefaultMultiVectorProductVectorSpace< Scalar > > dfdp_space_
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > model_
int xdotdot_tangent_index_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
bool use_dfdp_as_tangent_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
CombinedForwardSensitivityModelEvaluator(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model, const Teuchos::RCP< const Teuchos::ParameterList > &pList=Teuchos::null, const Teuchos::RCP< MultiVector > &dxdp_init=Teuchos::null, const Teuchos::RCP< MultiVector > &dx_dotdp_init=Teuchos::null, const Teuchos::RCP< MultiVector > &dx_dotdot_dp_init=Teuchos::null)
Constructor.
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getForwardModel() const
Get the underlying model 'f'.
Thyra::VectorBase< Scalar > Vector
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > prototypeOutArgs_
A ModelEvaluator decorator for sensitivity analysis.
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > my_dfdx_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > my_dfdxdotdot_