GroundMotion.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.4 $
00022 // $Date: 2006/09/05 20:54:46 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/groundMotion/GroundMotion.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/earthquake/GroundMotion.h
00027 // 
00028 // Written: fmk 
00029 // Created: 05/98
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for GroundMotion.
00033 // GroundMotion is an abstract base class, i.e. no objects of it's
00034 // type can be created. A GroundMotion describes the motion of the ground
00035 // in a dynamic analysis.
00036 //
00037 // What: "@(#) GroundMotion.h, revA"
00038 
00039 #ifndef GroundMotion_h
00040 #define GroundMotion_h
00041 
00042 #include <MovableObject.h>
00043 #include <TimeSeries.h>
00044 #include <TimeSeriesIntegrator.h>
00045 #include <Vector.h>
00046 
00047 class GroundMotion : public MovableObject
00048 {
00049   public:
00050     GroundMotion(TimeSeries *dispSeries, 
00051                  TimeSeries *velSeries, 
00052                  TimeSeries *accelSeries,
00053                  TimeSeriesIntegrator *theIntegrator = 0,
00054                  double dTintegration = 0.01);
00055     
00056     GroundMotion(int classTag);
00057     virtual ~GroundMotion();
00058 
00059     virtual double getDuration(void);
00060 
00061     virtual double getPeakAccel();
00062     virtual double getPeakVel();
00063     virtual double getPeakDisp();
00064 
00065     virtual double getAccel(double time);
00066     virtual double getVel(double time);
00067     virtual double getDisp(double time);
00068     virtual const  Vector &getDispVelAccel(double time);
00069     
00070     void setIntegrator(TimeSeriesIntegrator *integrator);
00071     TimeSeries *integrate(TimeSeries *theSeries, double delta = 0.01); 
00072 
00073     int sendSelf(int commitTag, Channel &theChannel);
00074     int recvSelf(int commitTag, Channel &theChannel, 
00075                  FEM_ObjectBroker &theBroker);    
00076     
00077     // AddingSensitivity:BEGIN //////////////////////////////////////////
00078     virtual double getAccelSensitivity(double time);
00079     virtual int setParameter(const char **argv, int argc, Parameter &param);
00080     virtual int    updateParameter(int parameterID, Information &info);
00081     virtual int    activateParameter(int parameterID);
00082     // AddingSensitivity:END ///////////////////////////////////////////
00083 
00084   protected:
00085 
00086   private:
00087     TimeSeries *theAccelSeries;  // Ground acceleration
00088     TimeSeries *theVelSeries;    // Ground velocity
00089     TimeSeries *theDispSeries;   // Ground displacement
00090     TimeSeriesIntegrator *theIntegrator;
00091     
00092     Vector data;
00093     double delta;
00094 };
00095 
00096 #endif
00097 

Generated on Mon Oct 23 15:05:01 2006 for OpenSees by doxygen 1.5.0