OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
This class implements the class NumericalMethod instance Generalized Jacobi Eigen Value Problem Solver. More...
#include <inverseit.h>
Public Member Functions | |
InverseIteration (Domain *d, EngngModel *m) | |
virtual | ~InverseIteration () |
virtual NM_Status | solve (SparseMtrx &A, SparseMtrx &B, FloatArray &x, FloatMatrix &v, double rtol, int nroot) |
Solves the given sparse generalized eigen value system of equations . 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... | |
EngngModel * | giveEngngModel () |
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 | nitem |
Additional Inherited Members | |
Protected Attributes inherited from oofem::NumericalMethod | |
Domain * | domain |
Pointer to domain. More... | |
EngngModel * | engngModel |
Pointer to engineering model. More... | |
This class implements the class NumericalMethod instance Generalized Jacobi Eigen Value Problem Solver.
DESCRIPTION : Perform solution of eigen value problem in the form K y = (omega)^2 M y
TASKS :
Variable description :
A(N,N) = STIFFNESS MATRIX (ASSUMED POZITIVE DEFINITE) * B(N,N) = MASS MATRIX (ASSUMED POZITIVE DEFINITE) * X(N,N) = MATRIX STORING EIGENVECTORS ON SOLUTION EXIT * EIGV(N) = VECTOR STORING EIGENVALUES ON SOLUTION EXIT * D(N) = WORKING VECTOR * N = ORDER OF WORKING AREA MATRICES A AND B * RTOL = CONVERGENCE TOLERANCE (USUALLY SET TO 10.**-12) * NSMAX = MAXIMUM NUMBER OF SWEEPS ALLOVED * (USUALLY SET TO 15) *
OUTPUT : (after call solveYourselfAt) A(N,N) = DIAGONALIZED STIFFNESS MATRIX * B(N,N) = DIAGONALIZED MASS MATRIX * X(N,N) = EIGENVECTORS STORED COLUMNWISE * EIGV(N) = EIGENVALUES *
Definition at line 86 of file inverseit.h.
oofem::InverseIteration::InverseIteration | ( | Domain * | d, |
EngngModel * | m | ||
) |
Definition at line 47 of file inverseit.C.
References nitem.
|
virtual |
Definition at line 54 of file inverseit.C.
|
inlinevirtual |
Implements oofem::SparseGeneralEigenValueSystemNM.
Definition at line 96 of file inverseit.h.
|
virtual |
Solves the given sparse generalized eigen value system of equations .
A | coefficient matrix. |
B | coefficient matrix. |
v | eigen vector(s). |
x | eigen value(s). |
rtol | tolerance |
nroot | number of required eigenvalues. |
Implements oofem::SparseGeneralEigenValueSystemNM.
Definition at line 57 of file inverseit.C.
References oofem::IntArray::at(), oofem::FloatArray::at(), oofem::SparseMtrx::at(), oofem::IntArray::begin(), oofem::ClassFactory::createSparseLinSolver(), oofem::NumericalMethod::domain, oofem::IntArray::end(), oofem::NumericalMethod::engngModel, oofem::IntArray::enumerate(), oofem::GiveClassFactory(), oofem::SparseMtrx::giveNumberOfColumns(), oofem::min(), nitem, NM_Success, OOFEM_ERROR, OOFEM_LOG_INFO, OOFEM_WARNING, oofem::FloatArray::resize(), oofem::FloatMatrix::resize(), oofem::FloatMatrix::setColumn(), oofem::SparseLinearSystemNM::solve(), oofem::sort(), oofem::ST_Direct, and oofem::SparseMtrx::times().
|
private |
Definition at line 89 of file inverseit.h.
Referenced by InverseIteration(), and solve().