UniformExcitation.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.6 $ 00022 // $Date: 2003/03/04 00: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 00040 class UniformExcitation : public EarthquakePattern 00041 { 00042 public: 00043 UniformExcitation(); 00044 UniformExcitation(GroundMotion &theMotion, 00045 int dof, int tag, double vel0 = 0.0); 00046 ~UniformExcitation(); 00047 00048 void setDomain(Domain *theDomain); 00049 void applyLoad(double time); 00050 void Print(OPS_Stream &s, int flag =0); 00051 00052 int sendSelf(int commitTag, Channel &theChannel); 00053 int recvSelf(int commitTag, Channel &theChannel, 00054 FEM_ObjectBroker &theBroker); 00055 00056 LoadPattern *getCopy(void); 00057 00058 // AddingSensitivity:BEGIN ///////////////////////////////// 00059 void applyLoadSensitivity(double time); 00060 // AddingSensitivity:END /////////////////////////////////// 00061 00062 protected: 00063 00064 private: 00065 GroundMotion *theMotion; // the ground motion 00066 int theDof; // the dof corrseponding to the ground motion 00067 double vel0; // the initial velocity, should be neg of ug dot(0) 00068 }; 00069 00070 #endif |