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.1.1 $
00022 // $Date: 2000/09/15 08:23:17 $
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 #include <EigenSOE.h>
00046 #include <AnalysisModel.h>
00047 #include <FE_Element.h>
00048 #include <DOF_Group.h>
00049 #include <Vector.h>
00050
00052 class EigenIntegrator : public Integrator
00053 {
00054 public:
00056 EigenIntegrator();
00058 virtual ~EigenIntegrator();
00059
00061 virtual void setLinks(AnalysisModel &theModel,
00062 EigenSOE &theSOE);
00063
00065 virtual int formK();
00067 virtual int formM();
00068
00069 // methods to instruct the FE_Element and DOF_Group objects
00071 virtual int formEleTangK(FE_Element *theEle);
00073 virtual int formEleTangM(FE_Element *theEle);
00075 virtual int formNodTangM(DOF_Group *theDof);
00077 virtual int update(const Vector &deltaU);
00078
00080 virtual int formEleTangent(FE_Element *theEle);
00082 virtual int formNodTangent(DOF_Group *theDof);
00084 virtual int formEleResidual(FE_Element *theEle);
00086 virtual int formNodUnbalance(DOF_Group *theDof);
00087
00089 virtual int newStep(void);
00090
00092 virtual int getLastResponse(Vector &result, const ID &id);
00093
00095 virtual int sendSelf(int commitTag, Channel &theChannel);
00097 virtual int recvSelf(int commitTag, Channel &theChannel,
00098 FEM_ObjectBroker &theBroker);
00100 virtual void Print(ostream &s, int flag = 0);
00101
00102 protected:
00104 virtual EigenSOE *getEigenSOEPtr() const;
00106 virtual AnalysisModel *getAnalysisModelPtr() const;
00107
00108 private:
00110 EigenSOE *theSOE;
00112 AnalysisModel *theAnalysisModel;
00114 int flagK;
00115
00116 };
00117
00118 #endif
00119
00120
00121
00122
00123 ÿ