EquiSolnAlgo.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.6 $
00022 // $Date: 2006/09/05 23:01:06 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/EquiSolnAlgo.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef EquiSolnAlgo_h
00027 #define EquiSolnAlgo_h
00028 
00029 // File: ~/OOP/analysis/algorithm/EquiSolnAlgo.h 
00030 // 
00031 // Written: fmk 
00032 // Created: 11/96 
00033 // Revision: A 
00034 //
00035 
00036 // Description: This file contains the class definition for 
00037 // EquiSolnAlgo. EquiSolnAlgo is an abstract base class, 
00038 // i.e. no objects of it's type can be created.  Its subclasses deifine
00039 // the sequence of operations to be performed in the analysis by static
00040 // equilibrium of a finite element model.  
00041 // 
00042 // What: "@(#)EquiSolnAlgo.h, revA"
00043 
00044 #include <SolutionAlgorithm.h>
00045 #include <IncrementalIntegrator.h>
00046 
00047 class AnalysisModel;
00048 class LinearSOE;
00049 class ConvergenceTest;
00050 
00051 class EquiSolnAlgo: public SolutionAlgorithm
00052 {
00053   public:
00054     EquiSolnAlgo(int classTag);
00055     virtual ~EquiSolnAlgo();
00056 
00057     // public functions defined for subclasses
00058     void setLinks(AnalysisModel &theModel, 
00059                   IncrementalIntegrator &theIntegrator,
00060                   LinearSOE &theSOE);
00061     
00062     // virtual functions
00063     virtual int solveCurrentStep(void) =0;
00064     virtual int setConvergenceTest(ConvergenceTest *theNewTest) =0;    
00065     virtual ConvergenceTest *getConvergenceTest(void);     
00066     virtual void Print(OPS_Stream &s, int flag =0) =0;    
00067 
00068     virtual int getNumFactorizations(void) {return 0;}
00069     virtual double getTotalTimeCPU(void)   {return 0.0;}
00070     virtual double getTotalTimeReal(void)  {return 0.0;}
00071     virtual double getSolveTimeCPU(void)   {return 0.0;}
00072     virtual double getSolveTimeReal(void)  {return 0.0;}
00073     virtual double getAccelTimeCPU(void)   {return 0.0;}
00074     virtual double getAccelTimeReal(void)  {return 0.0;}
00075  
00076     // the following are not protected as convergence test
00077     // may need access to them
00078     AnalysisModel           *getAnalysisModelPtr(void) const;
00079     IncrementalIntegrator   *getIncrementalIntegratorPtr(void) const;
00080     LinearSOE               *getLinearSOEptr(void) const;
00081 
00082   protected:
00083     
00084   private:
00085     AnalysisModel         *theModel;
00086     IncrementalIntegrator *theIntegrator;
00087     LinearSOE             *theSysOfEqn;
00088     
00089 };
00090 
00091 #endif
00092 
00093 

Generated on Mon Oct 23 15:04:57 2006 for OpenSees by doxygen 1.5.0