Thyra Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Private Attributes | Related Functions | List of all members
Simple2DTpetraModelEvaluator< Scalar > Class Template Reference

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

#include <Simple2DTpetraModelEvaluator_decl.hpp>

Inherits StateFuncModelEvaluatorBase< Scalar >.

Private Attributes

Teuchos::RCP< const
Thyra::VectorSpaceBase< Scalar > > 
x_space_
 
Teuchos::RCP< const
Thyra::VectorSpaceBase< Scalar > > 
f_space_
 
Thyra::ModelEvaluatorBase::InArgs
< Scalar > 
nominalValues_
 
Scalar d_
 
Teuchos::RCP< Tpetra::Vector
< Scalar > > 
x0_
 
Teuchos::Array< Scalar > p_
 
Teuchos::RCP< Tpetra::CrsGraph<> > W_op_graph_
 
Thyra::ModelEvaluatorBase::InArgs
< Scalar > 
prototypeInArgs_
 
Thyra::ModelEvaluatorBase::OutArgs
< Scalar > 
prototypeOutArgs_
 

Related Functions

(Note that these are not member functions.)

template<class Scalar >
Teuchos::RCP
< Simple2DTpetraModelEvaluator
< Scalar > > 
simple2DTpetraModelEvaluator ()
 Non-member constructor. More...
 

Constructors/Initializers/Accessors

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

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
 
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 Simple2DTpetraModelEvaluator< Scalar >

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

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_op = d(f)/d(x) is implemented as a Thyra::TpetraLinearOp object and all of the other objects are Thyra wrappers for Tpetra objects.

Definition at line 36 of file Simple2DTpetraModelEvaluator_decl.hpp.

Constructor & Destructor Documentation

template<class Scalar >
Simple2DTpetraModelEvaluator< Scalar >::Simple2DTpetraModelEvaluator ( )

Member Function Documentation

template<class Scalar >
void Simple2DTpetraModelEvaluator< Scalar >::set_d ( const Scalar &  d)
template<class Scalar >
void Simple2DTpetraModelEvaluator< Scalar >::set_p ( const Teuchos::ArrayView< const Scalar > &  p)
template<class Scalar >
void Simple2DTpetraModelEvaluator< Scalar >::set_x0 ( const Teuchos::ArrayView< const Scalar > &  x0)
template<class Scalar >
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Simple2DTpetraModelEvaluator< Scalar >::get_x_space ( ) const

Definition at line 127 of file Simple2DTpetraModelEvaluator_def.hpp.

template<class Scalar >
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Simple2DTpetraModelEvaluator< Scalar >::get_f_space ( ) const

Definition at line 135 of file Simple2DTpetraModelEvaluator_def.hpp.

template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs< Scalar > Simple2DTpetraModelEvaluator< Scalar >::getNominalValues ( ) const

Definition at line 143 of file Simple2DTpetraModelEvaluator_def.hpp.

template<class Scalar >
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > Simple2DTpetraModelEvaluator< Scalar >::create_W_op ( ) const
template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs< Scalar > Simple2DTpetraModelEvaluator< Scalar >::createInArgs ( ) const

Definition at line 163 of file Simple2DTpetraModelEvaluator_def.hpp.

template<class Scalar >
Thyra::ModelEvaluatorBase::OutArgs< Scalar > Simple2DTpetraModelEvaluator< Scalar >::createOutArgsImpl ( ) const
private

Definition at line 174 of file Simple2DTpetraModelEvaluator_def.hpp.

template<class Scalar >
void Simple2DTpetraModelEvaluator< Scalar >::evalModelImpl ( const Thyra::ModelEvaluatorBase::InArgs< Scalar > &  inArgs,
const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &  outArgs 
) const
private

Definition at line 181 of file Simple2DTpetraModelEvaluator_def.hpp.

References f(), and nonnull().

Friends And Related Function Documentation

template<class Scalar >
Teuchos::RCP< Simple2DTpetraModelEvaluator< Scalar > > simple2DTpetraModelEvaluator ( )
related

Non-member constructor.

Definition at line 110 of file Simple2DTpetraModelEvaluator_decl.hpp.

References Teuchos::rcp().

Member Data Documentation

template<class Scalar >
Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> > Simple2DTpetraModelEvaluator< Scalar >::x_space_
private
template<class Scalar >
Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> > Simple2DTpetraModelEvaluator< Scalar >::f_space_
private
template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs<Scalar> Simple2DTpetraModelEvaluator< Scalar >::nominalValues_
private
template<class Scalar >
Scalar Simple2DTpetraModelEvaluator< Scalar >::d_
private

Definition at line 94 of file Simple2DTpetraModelEvaluator_decl.hpp.

template<class Scalar >
Teuchos::RCP<Tpetra::Vector<Scalar> > Simple2DTpetraModelEvaluator< Scalar >::x0_
private
template<class Scalar >
Teuchos::Array<Scalar> Simple2DTpetraModelEvaluator< Scalar >::p_
private
template<class Scalar >
Teuchos::RCP<Tpetra::CrsGraph<> > Simple2DTpetraModelEvaluator< Scalar >::W_op_graph_
private
template<class Scalar >
Thyra::ModelEvaluatorBase::InArgs<Scalar> Simple2DTpetraModelEvaluator< Scalar >::prototypeInArgs_
private
template<class Scalar >
Thyra::ModelEvaluatorBase::OutArgs<Scalar> Simple2DTpetraModelEvaluator< Scalar >::prototypeOutArgs_
private

The documentation for this class was generated from the following files: