RBGen  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
List of all members
RBGen::AnasaziPOD Class Reference

Class for producing a basis using the Anasazi eigensolver. More...

#include <RBGen_AnasaziPOD.h>

Inheritance diagram for RBGen::AnasaziPOD:
RBGen::Method< Epetra_MultiVector, Epetra_Operator > RBGen::PODMethod< double >

Public Member Functions

Constructor/Destructor.
 AnasaziPOD ()
 Default constructor. More...
 
virtual ~AnasaziPOD ()
 Destructor. More...
 
Computation Methods
void computeBasis ()
 Compute a basis for the provided snapshots. More...
 
void updateBasis (const Teuchos::RCP< Epetra_MultiVector > &update_ss)
 Append new snapshots to the set, and update the basis. More...
 
Get Methods
Teuchos::RCP< const
Epetra_MultiVector
getBasis () const
 Get the basis computed by the reduced basis method. More...
 
std::vector< double > getSingularValues () const
 Returns the singular values computed corresponding to the reduced basis. More...
 
double getCompTime () const
 Returns the computational time taken to compute the reduced basis. More...
 
Set Methods
void Initialize (const Teuchos::RCP< Teuchos::ParameterList > &params, const Teuchos::RCP< const Epetra_MultiVector > &ss, const Teuchos::RCP< RBGen::FileIOHandler< Epetra_Operator > > &fileio=Teuchos::null)
 Initialize the method with the given parameter list and snapshot set. More...
 
void Reset (const Teuchos::RCP< Epetra_MultiVector > &new_ss)
 Reset the snapshot set used to compute the reduced basis. More...
 
void ResetOp (const Teuchos::RCP< Epetra_Operator > &new_op)
 Reset the operator used to weight the Anasazi operator $A^T W A$ or $A W A^T$. More...
 
void ResetInnerProdOp (const Teuchos::RCP< Epetra_Operator > &new_op)
 Reset the operator used to weight the inner product. More...
 
Status Methods
bool isInitialized ()
 
- Public Member Functions inherited from RBGen::Method< Epetra_MultiVector, Epetra_Operator >
 Method ()
 Default constructor. More...
 
virtual ~Method ()
 Destructor. More...
 
- Public Member Functions inherited from RBGen::PODMethod< double >
 PODMethod ()
 Default constructor. More...
 
virtual ~PODMethod ()
 Destructor. More...
 

Detailed Description

Class for producing a basis using the Anasazi eigensolver.

Definition at line 17 of file RBGen_AnasaziPOD.h.

Constructor & Destructor Documentation

RBGen::AnasaziPOD::AnasaziPOD ( )

Default constructor.

Definition at line 21 of file RBGen_AnasaziPOD.cpp.

virtual RBGen::AnasaziPOD::~AnasaziPOD ( )
inlinevirtual

Destructor.

Definition at line 27 of file RBGen_AnasaziPOD.h.

Member Function Documentation

void RBGen::AnasaziPOD::computeBasis ( )
virtual

Compute a basis for the provided snapshots.

Computes bases for the provided snapshots using Anasazi to solve the eigenproblem defined by $ A^T A $, where A is the snapshot matrix.

Implements RBGen::Method< Epetra_MultiVector, Epetra_Operator >.

Definition at line 67 of file RBGen_AnasaziPOD.cpp.

void RBGen::AnasaziPOD::updateBasis ( const Teuchos::RCP< Epetra_MultiVector > &  update_ss)
inlinevirtual

Append new snapshots to the set, and update the basis.

Note
This method is not supported by AnasaziPOD. Calling it has no effect.

Implements RBGen::Method< Epetra_MultiVector, Epetra_Operator >.

Definition at line 43 of file RBGen_AnasaziPOD.h.

Teuchos::RCP<const Epetra_MultiVector> RBGen::AnasaziPOD::getBasis ( ) const
inlinevirtual

Get the basis computed by the reduced basis method.

Implements RBGen::Method< Epetra_MultiVector, Epetra_Operator >.

Definition at line 50 of file RBGen_AnasaziPOD.h.

std::vector<double> RBGen::AnasaziPOD::getSingularValues ( ) const
inlinevirtual

Returns the singular values computed corresponding to the reduced basis.

Implements RBGen::PODMethod< double >.

Definition at line 52 of file RBGen_AnasaziPOD.h.

double RBGen::AnasaziPOD::getCompTime ( ) const
inlinevirtual

Returns the computational time taken to compute the reduced basis.

Implements RBGen::Method< Epetra_MultiVector, Epetra_Operator >.

Definition at line 54 of file RBGen_AnasaziPOD.h.

void RBGen::AnasaziPOD::Initialize ( const Teuchos::RCP< Teuchos::ParameterList > &  params,
const Teuchos::RCP< const Epetra_MultiVector > &  ss,
const Teuchos::RCP< RBGen::FileIOHandler< Epetra_Operator > > &  fileio = Teuchos::null 
)
virtual

Initialize the method with the given parameter list and snapshot set.

Implements RBGen::Method< Epetra_MultiVector, Epetra_Operator >.

Definition at line 29 of file RBGen_AnasaziPOD.cpp.

void RBGen::AnasaziPOD::Reset ( const Teuchos::RCP< Epetra_MultiVector > &  new_ss)
inlinevirtual

Reset the snapshot set used to compute the reduced basis.

Implements RBGen::Method< Epetra_MultiVector, Epetra_Operator >.

Definition at line 66 of file RBGen_AnasaziPOD.h.

void RBGen::AnasaziPOD::ResetOp ( const Teuchos::RCP< Epetra_Operator > &  new_op)
inline

Reset the operator used to weight the Anasazi operator $A^T W A$ or $A W A^T$.

Definition at line 69 of file RBGen_AnasaziPOD.h.

void RBGen::AnasaziPOD::ResetInnerProdOp ( const Teuchos::RCP< Epetra_Operator > &  new_op)
inline

Reset the operator used to weight the inner product.

Definition at line 72 of file RBGen_AnasaziPOD.h.


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