Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

UniformExcitation.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.2 $
00022 // $Date: 2000/12/12 07:48:12 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/pattern/UniformExcitation.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/domain/load/UniformExcitation.h
00027 //
00028 // Written: fmk 11/98
00029 // Revised:
00030 //
00031 // Purpose: This file contains the class definition for UniformExcitation.
00032 // UniformExcitation is a concrete class. It sets the R for a single
00033 // ground motion acting on a structure.
00034 
00035 #ifndef UniformExcitation_h
00036 #define UniformExcitation_h
00037 
00038 #include <EarthquakePattern.h>
00039 
00051 class UniformExcitation : public EarthquakePattern
00052 {
00053   public:
00056     UniformExcitation(GroundMotion &theMotion, int dof, int tag, double vel0 = 0.0);  
00057 
00061     ~UniformExcitation();
00062 
00063 
00065     void setDomain(Domain *theDomain);    
00066 
00068     void applyLoad(double time);
00070     void Print(ostream &s, int flag =0);
00071 
00073     int sendSelf(int commitTag, Channel &theChannel);
00075     int recvSelf(int commitTag, Channel &theChannel, 
00076    FEM_ObjectBroker &theBroker);    
00077 
00079     LoadPattern *getCopy(void);
00080  protected:
00081 
00082  private:
00084     GroundMotion *theMotion; 
00085     int theDof;      
00086     double vel0;     // the initial velocity, should be neg of ug dot(0)
00087 };
00088 
00089 #endif
Copyright Contact Us