GroundMotionRecord.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.3 $
00022 // $Date: 2003/02/25 23:32:40 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/groundMotion/GroundMotionRecord.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/earthquake/GroundMotionRecord.h
00027 // 
00028 // Written: MHS
00029 // Created: 09/99
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for 
00033 // a GroundMotionRecord, which creates a GroundMotion from
00034 // user supplied data contained in an input file.
00035 //
00036 // What: "@(#) GroundMotionRecord.h, revA"
00037 
00038 #ifndef GroundMotionRecord_h
00039 #define GroundMotionRecord_h
00040 
00041 #include <GroundMotion.h>
00042 #include <TimeSeries.h>
00043 #include <Vector.h>
00044 
00045 class GroundMotionRecord : public GroundMotion
00046 {
00047   public:
00048     GroundMotionRecord();
00049     GroundMotionRecord(const char *fileNameAccel, double timeStep,
00050                        double fact = 1.0, double dTintegration = 0.01);
00051     GroundMotionRecord(const char *fileNameAccel, const char *fileNameTime,
00052                        double fact = 1.0, double dTintegration = 0.01);
00053     // ADD CONSTRUCTORS FOR OTHER INPUT FORMATS
00054 
00055     virtual ~GroundMotionRecord();
00056 
00057     virtual double getDuration();
00058 
00059     virtual double getPeakAccel();
00060     virtual double getPeakVel();
00061     virtual double getPeakDisp();
00062 
00063     virtual double getAccel(double time);    
00064     virtual double getVel(double time);    
00065     virtual double getDisp(double time);        
00066     virtual const  Vector &getDispVelAccel(double time);
00067     
00068     int sendSelf(int commitTag, Channel &theChannel);
00069     int recvSelf(int commitTag, Channel &theChannel, 
00070                  FEM_ObjectBroker &theBroker);    
00071     
00072   protected:
00073 
00074   private:
00075     TimeSeries *theAccelTimeSeries;  // Ground acceleration
00076     TimeSeries *theVelTimeSeries;        // Ground velocity
00077     TimeSeries *theDispTimeSeries;       // Ground displacement
00078     
00079     Vector data;
00080     double delta;
00081 };
00082 
00083 #endif

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