EigenIntegrator.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.2 $ 00022 // $Date: 2003/02/14 23:00:48 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/integrator/EigenIntegrator.h,v $ 00024 00025 00026 // File: ~/analysis/integrator/eigenIntegrator/EigenIntegrator.h 00027 // 00028 // Written: Jun Peng 00029 // Created: Wed Jan 27, 1999 00030 // Revision: A 00031 // 00032 // Description: This file contains the class definition of EigenIntegrator. 00033 // EigenIntegrator is an algorithmic class for setting up the finite element 00034 // equations for a eigen problem analysis. 00035 // 00036 // This class is inheritanted from the base class of Integrator which was 00037 // created by fmk (Frank). 00038 00039 00040 #ifndef EigenIntegrator_h 00041 #define EigenIntegrator_h 00042 00043 #include <Integrator.h> 00044 00045 class EigenSOE; 00046 class AnalysisModel; 00047 class FE_Element; 00048 class DOF_Group; 00049 class Vector; 00050 00051 class EigenIntegrator : public Integrator 00052 { 00053 public: 00054 EigenIntegrator(); 00055 virtual ~EigenIntegrator(); 00056 00057 virtual void setLinks(AnalysisModel &theModel, 00058 EigenSOE &theSOE); 00059 00060 // methods to form the M and K matrices. 00061 virtual int formK(); 00062 virtual int formM(); 00063 00064 // methods to instruct the FE_Element and DOF_Group objects 00065 // how to determing their contribution to M and K 00066 virtual int formEleTangK(FE_Element *theEle); 00067 virtual int formEleTangM(FE_Element *theEle); 00068 virtual int formNodTangM(DOF_Group *theDof); 00069 virtual int update(const Vector &deltaU); 00070 00071 virtual int formEleTangent(FE_Element *theEle); 00072 virtual int formNodTangent(DOF_Group *theDof); 00073 virtual int formEleResidual(FE_Element *theEle); 00074 virtual int formNodUnbalance(DOF_Group *theDof); 00075 00076 virtual int newStep(void); 00077 00078 virtual int getLastResponse(Vector &result, const ID &id); 00079 00080 virtual int sendSelf(int commitTag, Channel &theChannel); 00081 virtual int recvSelf(int commitTag, Channel &theChannel, 00082 FEM_ObjectBroker &theBroker); 00083 virtual void Print(OPS_Stream &s, int flag = 0); 00084 00085 protected: 00086 virtual EigenSOE *getEigenSOEPtr() const; 00087 virtual AnalysisModel *getAnalysisModelPtr() const; 00088 00089 private: 00090 EigenSOE *theSOE; 00091 AnalysisModel *theAnalysisModel; 00092 int flagK; 00093 00094 }; 00095 00096 #endif 00097 00098 00099 00100 |