EpetraExt Development
Public Member Functions
EpetraModelEval2DSim Class Reference

Simple example ModelEvaluator subclass for a 2x2 set of parameterized nonlinear equations. More...

#include <EpetraModelEval2DSim.hpp>

Inheritance diagram for EpetraModelEval2DSim:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 EpetraModelEval2DSim (const double d=10.0, const double p0=2.0, const double p1=0.0, const double x00=1.0, const double x01=1.0, const bool showGetInvalidArg=false)
 

Overridden from EpetraExt::ModelEvaluator .

Teuchos::RefCountPtr< const
Epetra_Map
get_x_map () const
 
Teuchos::RefCountPtr< const
Epetra_Map
get_f_map () const
 
Teuchos::RefCountPtr< const
Epetra_Vector
get_x_init () const
 
Teuchos::RefCountPtr
< Epetra_Operator
create_W () const
 
InArgs createInArgs () const
 
OutArgs createOutArgs () const
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 

Detailed Description

Simple example ModelEvaluator subclass for a 2x2 set of parameterized nonlinear equations.

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] );

 

Definition at line 64 of file EpetraModelEval2DSim.hpp.


Constructor & Destructor Documentation

EpetraModelEval2DSim::EpetraModelEval2DSim ( const double  d = 10.0,
const double  p0 = 2.0,
const double  p1 = 0.0,
const double  x00 = 1.0,
const double  x01 = 1.0,
const bool  showGetInvalidArg = false 
)

Definition at line 49 of file EpetraModelEval2DSim.cpp.


Member Function Documentation

Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval2DSim::get_x_map ( ) const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 85 of file EpetraModelEval2DSim.cpp.

Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval2DSim::get_f_map ( ) const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 91 of file EpetraModelEval2DSim.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval2DSim::get_x_init ( ) const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 97 of file EpetraModelEval2DSim.cpp.

Teuchos::RefCountPtr< Epetra_Operator > EpetraModelEval2DSim::create_W ( ) const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 103 of file EpetraModelEval2DSim.cpp.

EpetraExt::ModelEvaluator::InArgs EpetraModelEval2DSim::createInArgs ( ) const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 109 of file EpetraModelEval2DSim.cpp.

EpetraExt::ModelEvaluator::OutArgs EpetraModelEval2DSim::createOutArgs ( ) const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 118 of file EpetraModelEval2DSim.cpp.

void EpetraModelEval2DSim::evalModel ( const InArgs inArgs,
const OutArgs outArgs 
) const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 134 of file EpetraModelEval2DSim.cpp.


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