SymBandEigenSOE.h

Go 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.2 $
00022 // $Date: 2004/10/05 00:17:31 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/eigenSOE/SymBandEigenSOE.h,v $
00024 
00025 // Written: MHS
00026 // Created: Oct 2001
00027 //
00028 // Description: This file contains the class definition for
00029 // SymBandEigenSOE, which stores a symmetric banded matrix, A, for
00030 // standard eigenvalue computations.
00031 
00032 #ifndef SymBandEigenSOE_h
00033 #define SymBandEigenSOE_h
00034 
00035 #include <EigenSOE.h>
00036 #include <Vector.h>
00037 
00038 class AnalysisModel;
00039 class SymBandEigenSolver;
00040 
00041 class SymBandEigenSOE : public EigenSOE
00042 {
00043   public:
00044     SymBandEigenSOE(SymBandEigenSolver &theSolver, AnalysisModel &theModel);
00045 
00046     virtual ~SymBandEigenSOE();
00047 
00048     virtual int getNumEqn(void) const;
00049     virtual int setSize(Graph &theGraph);
00050     
00051     virtual int addA(const Matrix &, const ID &, double fact = 1.0);
00052     virtual int addM(const Matrix &, const ID &, double fact = 1.0);    
00053    
00054     virtual void zeroA(void);
00055     virtual void zeroM(void);
00056     
00057     int sendSelf(int commitTag, Channel &theChannel);
00058     int recvSelf(int commitTag, Channel &theChannel, 
00059                  FEM_ObjectBroker &theBroker);
00060     
00061     friend class SymBandEigenSolver;
00062 
00063   protected:
00064     
00065   private:
00066     int size;
00067     int numSuperD;
00068     double *A;
00069     int Asize;
00070     bool factored;
00071     AnalysisModel *theModel;    
00072 
00073     double *M;  // handles diagonal mass matrix
00074     int Msize;
00075 };
00076 
00077 #endif

Generated on Mon Oct 23 15:05:27 2006 for OpenSees by doxygen 1.5.0