Thyra Package Browser (Single Doxygen Collection) Version of the Day
Private Member Functions | Private Attributes | Friends
Thyra::Simple2DModelEvaluator< Scalar > Class Template Reference

Simple 2d simulation only ModelEvaluator for f(x) = 0. More...

#include <Thyra_Simple2DModelEvaluator_decl.hpp>

Inheritance diagram for Thyra::Simple2DModelEvaluator< Scalar >:
Inheritance graph
[legend]

List of all members.

Private Member Functions

 Simple2DModelEvaluator ()

Private Attributes

Teuchos::RCP< const
Thyra::VectorSpaceBase< Scalar > > 
x_space_
Teuchos::RCP< const
Thyra::VectorSpaceBase< Scalar > > 
f_space_
Teuchos::RCP< const
Thyra::LinearOpWithSolveFactoryBase
< Scalar > > 
W_factory_
Thyra::ModelEvaluatorBase::InArgs
< Scalar > 
nominalValues_
Scalar d_
Teuchos::RCP
< Thyra::VectorBase< Scalar > > 
x0_
Teuchos::Array< Scalar > p_
bool showGetInvalidArg_
Thyra::ModelEvaluatorBase::InArgs
< Scalar > 
prototypeInArgs_
Thyra::ModelEvaluatorBase::OutArgs
< Scalar > 
prototypeOutArgs_

Friends

Teuchos::RCP
< Simple2DModelEvaluator
< Scalar > > 
simple2DModelEvaluator ()
 Nonmember constuctor.

Initializers/Accessors

void set_d (const Scalar &d)
 
void set_p (const Teuchos::ArrayView< const Scalar > &p)
 
void set_x0 (const Teuchos::ArrayView< const Scalar > &x0)
 
void setShowGetInvalidArgs (bool showGetInvalidArg)
 

Public functions overridden from ModelEvaulator.

Teuchos::RCP< const
Thyra::VectorSpaceBase< Scalar > > 
get_x_space () const
 
Teuchos::RCP< const
Thyra::VectorSpaceBase< Scalar > > 
get_f_space () const
 
Thyra::ModelEvaluatorBase::InArgs
< Scalar > 
getNominalValues () const
 
Teuchos::RCP
< Thyra::LinearOpBase< Scalar > > 
create_W_op () const
 
Teuchos::RCP< const
Thyra::LinearOpWithSolveFactoryBase
< Scalar > > 
get_W_factory () const
 
Thyra::ModelEvaluatorBase::InArgs
< Scalar > 
createInArgs () const
 

Private functions overridden from ModelEvaulatorDefaultBase.

Thyra::ModelEvaluatorBase::OutArgs
< Scalar > 
createOutArgsImpl () const
 
void evalModelImpl (const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
 

Detailed Description

template<class Scalar>
class Thyra::Simple2DModelEvaluator< Scalar >

Simple 2d simulation only ModelEvaluator for f(x) = 0.

The equations modeled are:


    f[0] =       x[0]      + x[1]*x[1] - p[0];
    f[1] = d * ( x[0]*x[0] - x[1]      - p[1] );

 

The Matrix W = d(f)/d(x) is implemented as a Thyra::MultiVectorBase object and the class Thyra::DefaultSerialDenseLinearOpWithSolveFactory is used to create the linear solver.

This is really more of a mock test driver model for Thyra than an example of implementing a real simulation-constrained ModelEvaluator subclass. That is really what the EpetraExt::ModelEvaluator is for.

Definition at line 45 of file Thyra_Simple2DModelEvaluator_decl.hpp.


Constructor & Destructor Documentation

template<class Scalar >
Thyra::Simple2DModelEvaluator< Scalar >::Simple2DModelEvaluator ( ) [private]

Member Function Documentation

template<class Scalar >
void Thyra::Simple2DModelEvaluator< Scalar >::set_d ( const Scalar &  d)
template<class Scalar >
void Thyra::Simple2DModelEvaluator< Scalar >::set_p ( const Teuchos::ArrayView< const Scalar > &  p)
template<class Scalar >
void Thyra::Simple2DModelEvaluator< Scalar >::set_x0 ( const Teuchos::ArrayView< const Scalar > &  x0)
template<class Scalar >
void Thyra::Simple2DModelEvaluator< Scalar >::setShowGetInvalidArgs ( bool  showGetInvalidArg)

Definition at line 60 of file Thyra_Simple2DModelEvaluator_def.hpp.

template<class Scalar >
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Thyra::Simple2DModelEvaluator< Scalar >::get_x_space ( ) const [virtual]
template<class Scalar >
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Thyra::Simple2DModelEvaluator< Scalar >::get_f_space ( ) const [virtual]
template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs< Scalar > Thyra::Simple2DModelEvaluator< Scalar >::getNominalValues ( ) const [virtual]
template<class Scalar >
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > Thyra::Simple2DModelEvaluator< Scalar >::create_W_op ( ) const [virtual]
template<class Scalar >
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > Thyra::Simple2DModelEvaluator< Scalar >::get_W_factory ( ) const [virtual]
template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs< Scalar > Thyra::Simple2DModelEvaluator< Scalar >::createInArgs ( ) const [virtual]
template<class Scalar >
Thyra::ModelEvaluatorBase::OutArgs< Scalar > Thyra::Simple2DModelEvaluator< Scalar >::createOutArgsImpl ( ) const [private, virtual]
template<class Scalar >
void Thyra::Simple2DModelEvaluator< Scalar >::evalModelImpl ( const Thyra::ModelEvaluatorBase::InArgs< Scalar > &  inArgs,
const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &  outArgs 
) const [private, virtual]

Friends And Related Function Documentation

template<class Scalar >
Teuchos::RCP< Simple2DModelEvaluator< Scalar > > simple2DModelEvaluator ( ) [friend]

Nonmember constuctor.

Definition at line 22 of file Thyra_Simple2DModelEvaluator_def.hpp.


Member Data Documentation

template<class Scalar >
Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> > Thyra::Simple2DModelEvaluator< Scalar >::x_space_ [private]
template<class Scalar >
Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> > Thyra::Simple2DModelEvaluator< Scalar >::f_space_ [private]

Definition at line 111 of file Thyra_Simple2DModelEvaluator_decl.hpp.

template<class Scalar >
Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> > Thyra::Simple2DModelEvaluator< Scalar >::W_factory_ [private]

Definition at line 112 of file Thyra_Simple2DModelEvaluator_decl.hpp.

template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs<Scalar> Thyra::Simple2DModelEvaluator< Scalar >::nominalValues_ [private]
template<class Scalar >
Scalar Thyra::Simple2DModelEvaluator< Scalar >::d_ [private]

Definition at line 114 of file Thyra_Simple2DModelEvaluator_decl.hpp.

template<class Scalar >
Teuchos::RCP<Thyra::VectorBase<Scalar> > Thyra::Simple2DModelEvaluator< Scalar >::x0_ [private]
template<class Scalar >
Teuchos::Array<Scalar> Thyra::Simple2DModelEvaluator< Scalar >::p_ [private]

Definition at line 116 of file Thyra_Simple2DModelEvaluator_decl.hpp.

template<class Scalar >
bool Thyra::Simple2DModelEvaluator< Scalar >::showGetInvalidArg_ [private]

Definition at line 117 of file Thyra_Simple2DModelEvaluator_decl.hpp.

template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs<Scalar> Thyra::Simple2DModelEvaluator< Scalar >::prototypeInArgs_ [private]
template<class Scalar >
Thyra::ModelEvaluatorBase::OutArgs<Scalar> Thyra::Simple2DModelEvaluator< Scalar >::prototypeOutArgs_ [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines