InterpolatedGroundMotion.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 $
00022 // $Date: 2000/12/12 07:32:38 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/groundMotion/InterpolatedGroundMotion.h,v $
00024                                                                         
00025 // File: ~/earthquake/InterpolatedGroundMotion.h
00026 // 
00027 // Written: fmk
00028 // Created: 11/00
00029 // Revision: A
00030 //
00031 // Description: This file contains the class definition for 
00032 // an InterpolatedGroundMotion, which inetrploates between 2
00033 // motions to determine a motion.
00034 //
00035 // What: "@(#) InterpolatedGroundMotion.h, revA"
00036 
00037 #ifndef InterpolatedGroundMotion_h
00038 #define InterpolatedGroundMotion_h
00039 
00040 #include <GroundMotion.h>
00041 #include <TimeSeries.h>
00042 #include <Vector.h>
00043 
00044 class InterpolatedGroundMotion : public GroundMotion
00045 {
00046   public:
00047     InterpolatedGroundMotion();
00048     InterpolatedGroundMotion(GroundMotion **groundMotions, 
00049                              const Vector &fact,
00050                              bool destroyMotions,
00051                              double deltaPeak = 0.01);
00052 
00053     virtual ~InterpolatedGroundMotion();
00054 
00055     virtual double getDuration();
00056 
00057     virtual double getPeakAccel();
00058     virtual double getPeakVel();
00059     virtual double getPeakDisp();
00060 
00061     virtual double getAccel(double time);    
00062     virtual double getVel(double time);    
00063     virtual double getDisp(double time);        
00064     virtual const  Vector &getDispVelAccel(double time);
00065     
00066     int sendSelf(int commitTag, Channel &theChannel);
00067     int recvSelf(int commitTag, Channel &theChannel, 
00068                  FEM_ObjectBroker &theBroker);    
00069     
00070   protected:
00071 
00072   private:
00073     GroundMotion **theMotions;
00074     Vector *factors;
00075     int destroyMotions;
00076     
00077     Vector data;
00078     double deltaPeak;  // increment for determining a peak response
00079 };
00080 
00081 #endif

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