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 31 of file Stokhos_SGQuadModelEvaluator.hpp.
Stokhos::SGQuadModelEvaluator::SGQuadModelEvaluator | ( | const Teuchos::RCP< EpetraExt::ModelEvaluator > & | me | ) |
Definition at line 22 of file Stokhos_SGQuadModelEvaluator.cpp.
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.
|
protected |
Underlying model evaluator.
Definition at line 80 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Number of parameter vectors.
Definition at line 83 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Number of response vectors.
Definition at line 86 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Time derivative vector.
Definition at line 89 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Solution vector.
Definition at line 92 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Parameter vectors.
Definition at line 95 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Residual vector.
Definition at line 98 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
W operator.
Definition at line 101 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Residual derivatives.
Definition at line 104 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response vectors.
Definition at line 107 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 110 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 113 of file Stokhos_SGQuadModelEvaluator.hpp.
|
protected |
Response sensitivities.
Definition at line 116 of file Stokhos_SGQuadModelEvaluator.hpp.