Newmark.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.8 $
00022 // $Date: 2005/12/19 22:43:36 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/integrator/Newmark.h,v $
00024 
00025 
00026 #ifndef Newmark_h
00027 #define Newmark_h
00028 
00029 // Written : fmk 
00030 // Created : 11/98
00031 // Modified: 02/05 ahs
00032 // Revision: A
00033 //
00034 // Description: This file contains the class definition for Newmark.
00035 // Newmark is an algorithmic class for performing a transient analysis
00036 // using the Newmark integration scheme.
00037 //
00038 // What: "@(#) Newmark.h, revA"
00039 
00040 #include <TransientIntegrator.h>
00041 
00042 class DOF_Group;
00043 class FE_Element;
00044 class Vector;
00045 
00046 class Newmark : public TransientIntegrator
00047 {
00048 public:
00049     // constructors
00050     Newmark();
00051     Newmark(double gamma, double beta, bool disp = true);
00052     Newmark(double gamma, double beta, double alphaM, double betaK,
00053         double betaKi, double betaKc, bool disp = true);
00054 
00055     // destructor
00056     ~Newmark();
00057     
00058     // methods which define what the FE_Element and DOF_Groups add
00059     // to the system of equation object.
00060     int formEleTangent(FE_Element *theEle);
00061     int formNodTangent(DOF_Group *theDof);        
00062     
00063     int domainChanged(void);    
00064     int newStep(double deltaT);    
00065     int revertToLastStep(void);        
00066     int update(const Vector &deltaU);
00067     
00068     virtual int sendSelf(int commitTag, Channel &theChannel);
00069     virtual int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00070     
00071     void Print(OPS_Stream &s, int flag = 0);        
00072     
00073     // AddingSensitivity:BEGIN //////////////////////////////////
00074     int revertToStart();
00075     // AddingSensitivity:END ////////////////////////////////////
00076     
00077 protected:
00078     bool displ;      // a flag indicating whether displ or accel increments
00079     double gamma;
00080     double beta;
00081     
00082     // rayleigh damping factors
00083     double alphaM;
00084     double betaK;
00085     double betaKi;
00086     double betaKc;
00087     
00088     double c1, c2, c3;              // some constants we need to keep
00089     Vector *Ut, *Utdot, *Utdotdot;  // response quantities at time t
00090     Vector *U, *Udot, *Udotdot;     // response quantities at time t+deltaT
00091     bool determiningMass;           // flag to check if just want the mass contribution
00092     
00093 private:
00094 };
00095 
00096 #endif

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