Stokhos  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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>

Inheritance diagram for Stokhos::SGQuadModelEvaluator:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::SGQuadModelEvaluator:
Collaboration graph
[legend]

Public Member Functions

 SGQuadModelEvaluator (const Teuchos::RCP< EpetraExt::ModelEvaluator > &me)
 
Overridden from EpetraExt::ModelEvaluator .
Teuchos::RCP< const Epetra_Map > get_x_map () const
 Return solution vector map.
 
Teuchos::RCP< const Epetra_Map > get_f_map () const
 Return residual vector map.
 
Teuchos::RCP< const Epetra_Map > get_p_map (int l) const
 Return parameter vector map.
 
Teuchos::RCP< const Epetra_Map > get_g_map (int l) const
 Return observation vector map.
 
Teuchos::RCP< const
Teuchos::Array< std::string > > 
get_p_names (int l) const
 Return array of parameter names.
 
Teuchos::RCP< const Epetra_Vector > get_x_init () const
 Return initial solution.
 
Teuchos::RCP< const Epetra_Vector > get_p_init (int l) const
 Return initial parameters.
 
Teuchos::RCP< Epetra_Operator > create_W () const
 Create W = alpha*M + beta*J matrix.
 
InArgs createInArgs () const
 Create InArgs.
 
OutArgs createOutArgs () const
 Create OutArgs.
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 Evaluate model on InArgs.
 

Protected Attributes

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

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.


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