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.3 $ 00022 // $Date: 2001/03/29 05:23:32 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/integrator/IncrementalIntegrator.h,v $ 00024 00025 00026 #ifndef IncrementalIntegrator_h 00027 #define IncrementalIntegrator_h 00028 00029 // File: ~/analysis/integrator/IncrementalIntegrator.h 00030 // 00031 // Written: fmk 00032 // Created: Tue Sept 17 15:54:47: 1996 00033 // Revision: A 00034 // 00035 // Description: This file contains the interface for IncrementalIntegrator. 00036 // IncrementalIntegrator is an algorithmic class for setting up the finite 00037 // element equations in an incremental analysis and for updating the nodal 00038 // response quantities based on the values in the soln vector. 00039 // 00040 // What: "@(#) IncrementalIntegrator.h, revA" 00041 00042 #include <Integrator.h> 00043 00044 #ifndef _bool_h 00045 #include <bool.h> 00046 #endif 00047 00048 #include <LinearSOE.h> 00049 #include <AnalysisModel.h> 00050 #include <FE_Element.h> 00051 #include <DOF_Group.h> 00052 #include <Vector.h> 00053 00054 #define CURRENT_TANGENT 0 00055 #define INITIAL_TANGENT 1 00056 #define CURRENT_SECANT 2 00057 00058 00072 class IncrementalIntegrator : public Integrator 00073 { 00074 public: 00080 IncrementalIntegrator(int classTag); 00081 00085 virtual ~IncrementalIntegrator(); 00086 00087 00094 virtual void setLinks(AnalysisModel &theModel, 00095 00096 LinearSOE &theSOE); 00097 00099 virtual int formTangent(int statusFlag = CURRENT_TANGENT); 00105 virtual int formUnbalance(void); 00106 00107 00109 virtual int formEleTangent(FE_Element *theEle) =0; 00116 virtual int formNodTangent(DOF_Group *theDof) =0; 00117 00119 virtual int formEleResidual(FE_Element *theEle) =0; 00120 00122 virtual int formNodUnbalance(DOF_Group *theDof) =0; 00123 00125 virtual int update(const Vector &deltaU) =0; 00127 virtual int commit(void); 00129 virtual int revertToLastStep(void); 00131 virtual int initialize(void); 00132 00134 virtual int getLastResponse(Vector &result, const ID &id); 00135 00136 00137 protected: 00139 LinearSOE *getLinearSOEPtr(void) const; 00141 AnalysisModel *getAnalysisModelPtr(void) const; 00143 virtual int formNodalUnbalance(void); 00145 virtual int formElementResidual(void); 00147 int statusFlag; 00148 00149 private: 00151 LinearSOE *theSOE; 00153 AnalysisModel *theAnalysisModel; 00154 }; 00155 00156 #endif 00157