OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::SLEPcSolver Class Reference

#include <slepcsolver.h>

+ Inheritance diagram for oofem::SLEPcSolver:
+ Collaboration diagram for oofem::SLEPcSolver:

Public Member Functions

 SLEPcSolver (Domain *d, EngngModel *m)
 
virtual ~SLEPcSolver ()
 
virtual NM_Status solve (SparseMtrx &a, SparseMtrx &b, FloatArray &v, FloatMatrix &x, double rtol, int nroot)
 Solves the given sparse generalized eigen value system of equations $ Av = x^2 Bv $. More...
 
virtual const char * giveClassName () const
 
- Public Member Functions inherited from oofem::SparseGeneralEigenValueSystemNM
 SparseGeneralEigenValueSystemNM (Domain *d, EngngModel *m)
 Constructor. More...
 
virtual ~SparseGeneralEigenValueSystemNM ()
 Destructor. More...
 
std::string errorInfo (const char *func)
 
- Public Member Functions inherited from oofem::NumericalMethod
 NumericalMethod (Domain *d, EngngModel *m)
 Constructor. More...
 
virtual ~NumericalMethod ()
 Destructor. More...
 
EngngModelgiveEngngModel ()
 
virtual IRResultType initializeFrom (InputRecord *ir)
 
virtual void reinitialize ()
 Reinitializes the receiver. More...
 
virtual void setDomain (Domain *d)
 
virtual contextIOResultType saveContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 
virtual contextIOResultType restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 

Private Attributes

PetscSparseMtrxA
 
PetscSparseMtrxB
 
EPS eps
 Eigenvalue solver context. More...
 
bool epsInit
 Flag if context initialized. More...
 

Additional Inherited Members

- Protected Attributes inherited from oofem::NumericalMethod
Domaindomain
 Pointer to domain. More...
 
EngngModelengngModel
 Pointer to engineering model. More...
 

Detailed Description

Definition at line 52 of file slepcsolver.h.

Constructor & Destructor Documentation

oofem::SLEPcSolver::SLEPcSolver ( Domain d,
EngngModel m 
)

Definition at line 53 of file slepcsolver.C.

References A, B, and epsInit.

oofem::SLEPcSolver::~SLEPcSolver ( )
virtual

Definition at line 60 of file slepcsolver.C.

References eps, and epsInit.

Member Function Documentation

virtual const char* oofem::SLEPcSolver::giveClassName ( ) const
inlinevirtual

Implements oofem::SparseGeneralEigenValueSystemNM.

Definition at line 67 of file slepcsolver.h.

NM_Status oofem::SLEPcSolver::solve ( SparseMtrx A,
SparseMtrx B,
FloatArray x,
FloatMatrix v,
double  rtol,
int  nroot 
)
virtual

Member Data Documentation

PetscSparseMtrx* oofem::SLEPcSolver::A
private

Definition at line 55 of file slepcsolver.h.

Referenced by SLEPcSolver(), and solve().

PetscSparseMtrx* oofem::SLEPcSolver::B
private

Definition at line 56 of file slepcsolver.h.

Referenced by SLEPcSolver(), and solve().

EPS oofem::SLEPcSolver::eps
private

Eigenvalue solver context.

Definition at line 58 of file slepcsolver.h.

Referenced by solve(), and ~SLEPcSolver().

bool oofem::SLEPcSolver::epsInit
private

Flag if context initialized.

Definition at line 60 of file slepcsolver.h.

Referenced by SLEPcSolver(), solve(), and ~SLEPcSolver().


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:41 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011