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

This class implements the Generalized Jacobi Eigenvalue Problem Solver. More...

#include <gjacobi.h>

+ Inheritance diagram for oofem::GJacobi:
+ Collaboration diagram for oofem::GJacobi:

Public Member Functions

 GJacobi (Domain *d, EngngModel *m)
 
virtual ~GJacobi ()
 
virtual NM_Status solve (FloatMatrix &K, FloatMatrix &M, FloatArray &w, FloatMatrix &x)
 Solves the given sparse generalized eigenvalue system of equations $ K\cdot x = w^2 M\cdot x $. More...
 
virtual const char * giveClassName () const
 
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

int nsmax
 
double rtol
 

Additional Inherited Members

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

Detailed Description

This class implements the Generalized Jacobi Eigenvalue Problem Solver.

Perform solution of eigenvalue problem in the form

\[ K\cdot x = \omega^2 M\cdot x \]

Definition at line 53 of file gjacobi.h.

Constructor & Destructor Documentation

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

Definition at line 42 of file gjacobi.C.

References nsmax, and rtol.

oofem::GJacobi::~GJacobi ( )
virtual

Definition at line 49 of file gjacobi.C.

Member Function Documentation

std :: string oofem::GJacobi::errorInfo ( const char *  func)
inline

Definition at line 74 of file gjacobi.h.

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

Definition at line 73 of file gjacobi.h.

NM_Status oofem::GJacobi::solve ( FloatMatrix K,
FloatMatrix M,
FloatArray w,
FloatMatrix x 
)
virtual

Solves the given sparse generalized eigenvalue system of equations $ K\cdot x = w^2 M\cdot x $.

Parameters
KCoefficient matrix.
MCoefficient matrix.
xEigenvector(s).
wEigenvalue(s).
Returns
Status.

Definition at line 55 of file gjacobi.C.

References oofem::FloatArray::at(), oofem::FloatMatrix::at(), oofem::FloatMatrix::beUnitMatrix(), oofem::FloatMatrix::giveNumberOfRows(), GJacobi_ZERO_CHECK_TOL, oofem::FloatMatrix::isSquare(), NM_Success, nsmax, OOFEM_ERROR, OOFEM_LOG_DEBUG, oofem::FloatArray::printYourself(), oofem::FloatMatrix::printYourself(), oofem::FloatArray::resize(), oofem::FloatMatrix::resize(), and rtol.

Referenced by oofem::SubspaceIteration::solve().

Member Data Documentation

int oofem::GJacobi::nsmax
private

Definition at line 56 of file gjacobi.h.

Referenced by GJacobi(), and solve().

double oofem::GJacobi::rtol
private

Definition at line 57 of file gjacobi.h.

Referenced by GJacobi(), and solve().


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:36 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011