EarthquakePattern.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: 2006/09/05 20:51:38 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/pattern/EarthquakePattern.h,v $ 00024 00025 00026 #ifndef EarthquakePattern_h 00027 #define EarthquakePattern_h 00028 00029 // File: ~/domain/pattern/EarthquakePattern.h 00030 // 00031 // Written: fmk 11/98 00032 // Revised: 00033 // 00034 // Purpose: This file contains the class definition for EarthquakePattern. 00035 // EarthquakePattern is an abstract class. 00036 00037 #include <LoadPattern.h> 00038 00039 class GroundMotion; 00040 class Vector; 00041 00042 class EarthquakePattern : public LoadPattern 00043 { 00044 public: 00045 EarthquakePattern(int tag, int classTag); 00046 virtual ~EarthquakePattern(); 00047 00048 virtual void applyLoad(double time); 00049 virtual bool addSP_Constraint(SP_Constraint *); 00050 virtual bool addNodalLoad(NodalLoad *); 00051 virtual bool addElementalLoad(ElementalLoad *); 00052 00053 // methods for o/p 00054 virtual int sendSelf(int commitTag, Channel &theChannel) =0; 00055 virtual int recvSelf(int commitTag, Channel &theChannel, 00056 FEM_ObjectBroker &theBroker) =0; 00057 virtual void Print(OPS_Stream &s, int flag =0); 00058 00059 // method to obtain a blank copy of the LoadPattern 00060 virtual LoadPattern *getCopy(void) =0; 00061 00062 // AddingSensitivity:BEGIN ////////////////////////////////////////// 00063 virtual void applyLoadSensitivity(double pseudoTime = 0.0); 00064 virtual int setParameter(const char **argv, int argc, Parameter ¶m); 00065 virtual int updateParameter(int parameterID, Information &info); 00066 virtual int activateParameter(int parameterID); 00067 // AddingSensitivity:END /////////////////////////////////////////// 00068 00069 protected: 00070 int addMotion(GroundMotion &theMotion); 00071 GroundMotion **theMotions; 00072 int numMotions; 00073 00074 private: 00075 Vector *uDotG, *uDotDotG; 00076 double currentTime; 00077 00078 // AddingSensitivity:BEGIN ////////////////////////////////////////// 00079 int parameterID; 00080 // AddingSensitivity:END /////////////////////////////////////////// 00081 }; 00082 00083 #endif |