EigenAlgorithm.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:41 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/eigenAlgo/EigenAlgorithm.h,v $ 00024 00025 00026 // File: ~/analysis/algorithm/eigenAlgo/EigenAlgorithm.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 EigenAlgorithm. 00033 // EigenAlgorithm is a class which performs a eigen solution algorithm 00034 // to solve the equations. 00035 // 00036 // This class is inheritanted from the base class of SolutionAlgorithm 00037 // which was created by fmk (Frank). 00038 00039 00040 #ifndef EigenAlgorithm_h 00041 #define EigenAlgorithm_h 00042 00043 #include <SolutionAlgorithm.h> 00044 #include <OPS_Globals.h> 00045 00046 class AnalysisModel; 00047 class EigenSOE; 00048 class EigenIntegrator; 00049 00050 class EigenAlgorithm : public SolutionAlgorithm 00051 { 00052 public: 00053 EigenAlgorithm(int classTag); 00054 virtual ~EigenAlgorithm(); 00055 00056 // public functions defined for subclasses 00057 virtual void setLinks(AnalysisModel &theModel, 00058 EigenIntegrator &theIntegrator, 00059 EigenSOE &theSOE); 00060 00061 // pure virtural functions 00062 virtual int solveCurrentStep(int numModes) = 0; 00063 virtual void Print(OPS_Stream &s, int flag=0) = 0; 00064 00065 virtual AnalysisModel *getAnalysisModelPtr() const; 00066 virtual EigenIntegrator *getEigenIntegratorPtr() const; 00067 virtual EigenSOE *getEigenSOEptr() const; 00068 00069 protected: 00070 00071 private: 00072 AnalysisModel *theModel; 00073 EigenIntegrator *theIntegrator; 00074 EigenSOE *theSOE; 00075 00076 }; 00077 00078 #endif |