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

EarthquakePattern.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.1.1.1 $
00022 // $Date: 2000/09/15 08:23:19 $
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 #include <GroundMotion.h>
00040 #include <Vector.h>
00041 
00053 class EarthquakePattern : public LoadPattern
00054 {
00055   public:
00060     EarthquakePattern(int tag, int classTag);
00061 
00067     virtual ~EarthquakePattern();
00068 
00069 
00078     virtual void applyLoad(double time);
00079 
00081     virtual bool addSP_Constraint(SP_Constraint *);
00082 
00084     virtual bool addNodalLoad(NodalLoad *);
00086     virtual bool addElementalLoad(ElementalLoad *);
00087 
00089     virtual int sendSelf(int commitTag, Channel &theChannel) =0;
00091     virtual int recvSelf(int commitTag, Channel &theChannel, 
00092     FEM_ObjectBroker &theBroker) =0;
00094     virtual void Print(ostream &s, int flag =0);        
00095 
00097     virtual LoadPattern *getCopy(void) =0;
00098     
00099  protected:
00101     int addMotion(GroundMotion &theMotion);
00103     GroundMotion **theMotions;
00105     int numMotions;
00106 
00107   private:
00109     Vector *uDotG, *uDotDotG;
00110 };
00111 
00112 #endif
Copyright Contact Us