Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
Stokhos::SGQuadModelEvaluator Class Reference

ModelEvaluator adaptor that implements the stochastic Galerkin residual and Jacobian computations using quadrature. More...

#include <Stokhos_SGQuadModelEvaluator.hpp>

Inherits ModelEvaluator.

Public Member Functions

 SGQuadModelEvaluator (const Teuchos::RCP< EpetraExt::ModelEvaluator > &me)
 

Protected Attributes

Teuchos::RCP
< EpetraExt::ModelEvaluator > 
me
 Underlying model evaluator. More...
 
int num_p
 Number of parameter vectors. More...
 
int num_g
 Number of response vectors. More...
 
Teuchos::RCP< Epetra_Vectorx_dot_qp
 Time derivative vector. More...
 
Teuchos::RCP< Epetra_Vectorx_qp
 Solution vector. More...
 
Teuchos::Array< Teuchos::RCP
< Epetra_Vector > > 
p_qp
 Parameter vectors. More...
 
Teuchos::RCP< Epetra_Vectorf_qp
 Residual vector. More...
 
Teuchos::RCP< Epetra_OperatorW_qp
 W operator. More...
 
Teuchos::Array
< EpetraExt::ModelEvaluator::Derivative > 
dfdp_qp
 Residual derivatives. More...
 
Teuchos::Array< Teuchos::RCP
< Epetra_Vector > > 
g_qp
 Response vectors. More...
 
Teuchos::Array
< EpetraExt::ModelEvaluator::Derivative > 
dgdx_qp
 Response derivative. More...
 
Teuchos::Array
< EpetraExt::ModelEvaluator::Derivative > 
dgdx_dot_qp
 Response derivative. More...
 
Teuchos::Array< Teuchos::Array
< EpetraExt::ModelEvaluator::Derivative > > 
dgdp_qp
 Response sensitivities. More...
 

Overridden from EpetraExt::ModelEvaluator .

Teuchos::RCP< const Epetra_Mapget_x_map () const
 Return solution vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_f_map () const
 Return residual vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_p_map (int l) const
 Return parameter vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_g_map (int l) const
 Return observation vector map. More...
 
Teuchos::RCP< const
Teuchos::Array< std::string > > 
get_p_names (int l) const
 Return array of parameter names. More...
 
Teuchos::RCP< const Epetra_Vectorget_x_init () const
 Return initial solution. More...
 
Teuchos::RCP< const Epetra_Vectorget_p_init (int l) const
 Return initial parameters. More...
 
Teuchos::RCP< Epetra_Operatorcreate_W () const
 Create W = alpha*M + beta*J matrix. More...
 
InArgs createInArgs () const
 Create InArgs. More...
 
OutArgs createOutArgs () const
 Create OutArgs. More...
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 Evaluate model on InArgs. More...
 

Detailed Description

ModelEvaluator adaptor that implements the stochastic Galerkin residual and Jacobian computations using quadrature.

This class provides a ModelEvaluator implementation to adapt a non-SG capable ModelEvaluator to one that can be used by Stokhos::SGModelEvaluator. It does so be implementing the SG residual and Jacobian calculations by sampling a deterministic ModelEvaluator at a set of quadrature points.

Definition at line 31 of file Stokhos_SGQuadModelEvaluator.hpp.

Constructor & Destructor Documentation

Stokhos::SGQuadModelEvaluator::SGQuadModelEvaluator ( const Teuchos::RCP< EpetraExt::ModelEvaluator > &  me)

Definition at line 22 of file Stokhos_SGQuadModelEvaluator.cpp.

Member Function Documentation

Teuchos::RCP< const Epetra_Map > Stokhos::SGQuadModelEvaluator::get_x_map ( ) const

Return solution vector map.

Definition at line 141 of file Stokhos_SGQuadModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::SGQuadModelEvaluator::get_f_map ( ) const

Return residual vector map.

Definition at line 148 of file Stokhos_SGQuadModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::SGQuadModelEvaluator::get_p_map ( int  l) const

Return parameter vector map.

Definition at line 155 of file Stokhos_SGQuadModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::SGQuadModelEvaluator::get_g_map ( int  l) const

Return observation vector map.

Definition at line 162 of file Stokhos_SGQuadModelEvaluator.cpp.

Teuchos::RCP< const Teuchos::Array< std::string > > Stokhos::SGQuadModelEvaluator::get_p_names ( int  l) const

Return array of parameter names.

Definition at line 169 of file Stokhos_SGQuadModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Vector > Stokhos::SGQuadModelEvaluator::get_x_init ( ) const

Return initial solution.

Definition at line 176 of file Stokhos_SGQuadModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Vector > Stokhos::SGQuadModelEvaluator::get_p_init ( int  l) const

Return initial parameters.

Definition at line 183 of file Stokhos_SGQuadModelEvaluator.cpp.

Teuchos::RCP< Epetra_Operator > Stokhos::SGQuadModelEvaluator::create_W ( ) const

Create W = alpha*M + beta*J matrix.

Definition at line 190 of file Stokhos_SGQuadModelEvaluator.cpp.

EpetraExt::ModelEvaluator::InArgs Stokhos::SGQuadModelEvaluator::createInArgs ( ) const

Create InArgs.

Definition at line 197 of file Stokhos_SGQuadModelEvaluator.cpp.

EpetraExt::ModelEvaluator::OutArgs Stokhos::SGQuadModelEvaluator::createOutArgs ( ) const

Create OutArgs.

Definition at line 222 of file Stokhos_SGQuadModelEvaluator.cpp.

void Stokhos::SGQuadModelEvaluator::evalModel ( const InArgs &  inArgs,
const OutArgs &  outArgs 
) const

Evaluate model on InArgs.

Definition at line 269 of file Stokhos_SGQuadModelEvaluator.cpp.

Member Data Documentation

Teuchos::RCP<EpetraExt::ModelEvaluator> Stokhos::SGQuadModelEvaluator::me
protected

Underlying model evaluator.

Definition at line 80 of file Stokhos_SGQuadModelEvaluator.hpp.

int Stokhos::SGQuadModelEvaluator::num_p
protected

Number of parameter vectors.

Definition at line 83 of file Stokhos_SGQuadModelEvaluator.hpp.

int Stokhos::SGQuadModelEvaluator::num_g
protected

Number of response vectors.

Definition at line 86 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::RCP<Epetra_Vector> Stokhos::SGQuadModelEvaluator::x_dot_qp
protected

Time derivative vector.

Definition at line 89 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::RCP<Epetra_Vector> Stokhos::SGQuadModelEvaluator::x_qp
protected

Solution vector.

Definition at line 92 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::Array< Teuchos::RCP<Epetra_Vector> > Stokhos::SGQuadModelEvaluator::p_qp
protected

Parameter vectors.

Definition at line 95 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::RCP<Epetra_Vector> Stokhos::SGQuadModelEvaluator::f_qp
protected

Residual vector.

Definition at line 98 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::RCP<Epetra_Operator> Stokhos::SGQuadModelEvaluator::W_qp
protected

W operator.

Definition at line 101 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::Array<EpetraExt::ModelEvaluator::Derivative> Stokhos::SGQuadModelEvaluator::dfdp_qp
protected

Residual derivatives.

Definition at line 104 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::Array< Teuchos::RCP<Epetra_Vector> > Stokhos::SGQuadModelEvaluator::g_qp
protected

Response vectors.

Definition at line 107 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::Array<EpetraExt::ModelEvaluator::Derivative> Stokhos::SGQuadModelEvaluator::dgdx_qp
protected

Response derivative.

Definition at line 110 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::Array<EpetraExt::ModelEvaluator::Derivative> Stokhos::SGQuadModelEvaluator::dgdx_dot_qp
protected

Response derivative.

Definition at line 113 of file Stokhos_SGQuadModelEvaluator.hpp.

Teuchos::Array< Teuchos::Array<EpetraExt::ModelEvaluator::Derivative> > Stokhos::SGQuadModelEvaluator::dgdp_qp
protected

Response sensitivities.

Definition at line 116 of file Stokhos_SGQuadModelEvaluator.hpp.


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