SymBandEigenSolver.hGo to the documentation of this file.00001 /* ****************************************************************** ** 00002 ** OpenSees - Open System for Earthquake Engineering Simulation ** 00003 ** Pacific Earthquake Engineering Research Center ** 00004 ** ** 00005 ** ** 00006 ** (C) Copyright 1999, The Regents of the University of California ** 00007 ** All Rights Reserved. ** 00008 ** ** 00009 ** Commercial use of this program without express permission of the ** 00010 ** University of California, Berkeley, is strictly prohibited. See ** 00011 ** file 'COPYRIGHT' in main directory for information on usage and ** 00012 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** 00013 ** ** 00014 ** Developed by: ** 00015 ** Frank McKenna (fmckenna@ce.berkeley.edu) ** 00016 ** Gregory L. Fenves (fenves@ce.berkeley.edu) ** 00017 ** Filip C. Filippou (filippou@ce.berkeley.edu) ** 00018 ** ** 00019 ** ****************************************************************** */ 00020 00021 // $Revision: 1.1 $ 00022 // $Date: 2001/11/19 22:44:00 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/eigenSOE/SymBandEigenSolver.h,v $ 00024 00025 // Written: MHS 00026 // Created: Oct 2001 00027 // 00028 // Description: This file contains the class definition for 00029 // SymBandEigenSolver, which computes the eigenvalues and eigenvectors 00030 // of a symmetric banded matrix using the LAPACK subroutine dsbevx. 00031 00032 #ifndef SymBandEigenSolver_h 00033 #define SymBandEigenSolver_h 00034 00035 #include <EigenSolver.h> 00036 #include <SymBandEigenSOE.h> 00037 00038 class SymBandEigenSolver : public EigenSolver 00039 { 00040 public: 00041 SymBandEigenSolver(); 00042 virtual ~SymBandEigenSolver(); 00043 00044 virtual int solve(void) {return this->solve(theSOE->size);} 00045 virtual int solve(int nModes); 00046 virtual int setSize(void); 00047 virtual int setEigenSOE(SymBandEigenSOE &theSOE); 00048 00049 virtual const Vector &getEigenvector(int mode); 00050 virtual double getEigenvalue(int mode); 00051 00052 int sendSelf(int commitTag, Channel &theChannel); 00053 int recvSelf(int commitTag, Channel &theChannel, 00054 FEM_ObjectBroker &theBroker); 00055 00056 protected: 00057 00058 private: 00059 SymBandEigenSOE *theSOE; 00060 int numModes; 00061 00062 double *eigenvalue; 00063 double *eigenvector; 00064 Vector *eigenV; 00065 double *work; 00066 }; 00067 00068 #endif |