Simple2DModelEvaluator< Scalar > Class Template Reference

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

#include <Simple2DModelEvaluator_decl.hpp>

Inheritance diagram for Simple2DModelEvaluator< Scalar >:

Inheritance graph
[legend]
List of all members.

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
 

Friends

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

Detailed Description

template<class Scalar>
class 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 42 of file Simple2DModelEvaluator_decl.hpp.


Member Function Documentation

template<class Scalar>
void Simple2DModelEvaluator< Scalar >::set_d ( const Scalar &  d  ) 

Definition at line 29 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
void Simple2DModelEvaluator< Scalar >::set_p ( const Teuchos::ArrayView< const Scalar > &  p  ) 

Definition at line 36 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
void Simple2DModelEvaluator< Scalar >::set_x0 ( const Teuchos::ArrayView< const Scalar > &  x0  ) 

Definition at line 46 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
void Simple2DModelEvaluator< Scalar >::setShowGetInvalidArgs ( bool  showGetInvalidArg  ) 

Definition at line 57 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Simple2DModelEvaluator< Scalar >::get_x_space (  )  const [virtual]

Implements Thyra::ModelEvaluator< Scalar >.

Definition at line 68 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Simple2DModelEvaluator< Scalar >::get_f_space (  )  const [virtual]

Implements Thyra::ModelEvaluator< Scalar >.

Definition at line 76 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
Thyra::ModelEvaluatorBase::InArgs< Scalar > Simple2DModelEvaluator< Scalar >::getNominalValues (  )  const [virtual]

Reimplemented from Thyra::StateFuncModelEvaluatorBase< Scalar >.

Definition at line 84 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > Simple2DModelEvaluator< Scalar >::create_W_op (  )  const [virtual]

Reimplemented from Thyra::StateFuncModelEvaluatorBase< Scalar >.

Definition at line 92 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > Simple2DModelEvaluator< Scalar >::get_W_factory (  )  const [virtual]

Reimplemented from Thyra::StateFuncModelEvaluatorBase< Scalar >.

Definition at line 100 of file Simple2DModelEvaluator_def.hpp.

template<class Scalar>
Thyra::ModelEvaluatorBase::InArgs< Scalar > Simple2DModelEvaluator< Scalar >::createInArgs (  )  const [virtual]

Implements Thyra::ModelEvaluator< Scalar >.

Definition at line 108 of file Simple2DModelEvaluator_def.hpp.


Friends And Related Function Documentation

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

Nonmember constuctor.

Definition at line 19 of file Simple2DModelEvaluator_def.hpp.


The documentation for this class was generated from the following files:
Generated on Tue Jul 13 09:26:26 2010 for Thyra by  doxygen 1.4.7