Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
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_Vector > | x_dot_qp |
Time derivative vector. More... | |
Teuchos::RCP< Epetra_Vector > | x_qp |
Solution vector. More... | |
Teuchos::Array< Teuchos::RCP < Epetra_Vector > > | p_qp |
Parameter vectors. More... | |
Teuchos::RCP< Epetra_Vector > | f_qp |
Residual vector. More... | |
Teuchos::RCP< Epetra_Operator > | W_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_Map > | get_x_map () const |
Return solution vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_f_map () const |
Return residual vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_p_map (int l) const |
Return parameter vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_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_Vector > | get_x_init () const |
Return initial solution. More... | |
Teuchos::RCP< const Epetra_Vector > | get_p_init (int l) const |
Return initial parameters. More... | |
Teuchos::RCP< Epetra_Operator > | create_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... | |
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 63 of file Stokhos_SGQuadModelEvaluator.hpp.
Stokhos::SGQuadModelEvaluator::SGQuadModelEvaluator | ( | const Teuchos::RCP< EpetraExt::ModelEvaluator > & | me | ) |
Definition at line 54 of file Stokhos_SGQuadModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGQuadModelEvaluator::get_x_map | ( | ) | const |
Return solution vector map.
Definition at line 173 of file Stokhos_SGQuadModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGQuadModelEvaluator::get_f_map | ( | ) | const |
Return residual vector map.
Definition at line 180 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 187 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 194 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 201 of file Stokhos_SGQuadModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Vector > Stokhos::SGQuadModelEvaluator::get_x_init | ( | ) | const |
Return initial solution.
Definition at line 208 of file Stokhos_SGQuadModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Vector > Stokhos::SGQuadModelEvaluator::get_p_init | ( | int | l | ) | const |
Return initial parameters.
Definition at line 215 of file Stokhos_SGQuadModelEvaluator.cpp.
Teuchos::RCP< Epetra_Operator > Stokhos::SGQuadModelEvaluator::create_W | ( | ) | const |
Create W = alpha*M + beta*J matrix.
Definition at line 222 of file Stokhos_SGQuadModelEvaluator.cpp.
EpetraExt::ModelEvaluator::InArgs Stokhos::SGQuadModelEvaluator::createInArgs | ( | ) | const |
Create InArgs.
Definition at line 229 of file Stokhos_SGQuadModelEvaluator.cpp.
EpetraExt::ModelEvaluator::OutArgs Stokhos::SGQuadModelEvaluator::createOutArgs | ( | ) | const |
Create OutArgs.
Definition at line 254 of file Stokhos_SGQuadModelEvaluator.cpp.
void Stokhos::SGQuadModelEvaluator::evalModel | ( | const InArgs & | inArgs, |
const OutArgs & | outArgs | ||
) | const |
Evaluate model on InArgs.
Definition at line 301 of file Stokhos_SGQuadModelEvaluator.cpp.
|
protected |
Underlying model evaluator.
Definition at line 112 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Number of parameter vectors.
Definition at line 115 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Number of response vectors.
Definition at line 118 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Time derivative vector.
Definition at line 121 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Solution vector.
Definition at line 124 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Parameter vectors.
Definition at line 127 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Residual vector.
Definition at line 130 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
W operator.
Definition at line 133 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Residual derivatives.
Definition at line 136 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response vectors.
Definition at line 139 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 142 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 145 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response sensitivities.
Definition at line 148 of file Stokhos_SGQuadModelEvaluator.hpp.