RectangularSeries.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.2 $
00022 // $Date: 2003/02/14 23:01:00 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/pattern/RectangularSeries.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef RectangularSeries_h
00027 #define RectangularSeries_h
00028 
00029 // File: ~/domain/pattern/RectangularSeries.h
00030 //
00031 // Written: fmk 
00032 // Created: 07/99
00033 // Revision: A
00034 //
00035 // Purpose: This file contains the class definition for RectangularSeries.
00036 // RectangularSeries is a concrete class. A RectangularSeries object provides
00037 // a rectangular pulse time series. the factor is given by the pseudoTime and 
00038 // a constant factor provided in the constructor, the duration by tStart
00039 // and tFinal;
00040 //
00041 // What: "@(#) RectangularSeries.h, revA"
00042 
00043 #include <TimeSeries.h>
00044 
00045 class RectangularSeries : public TimeSeries
00046 {
00047   public:
00048     // constructors
00049     RectangularSeries(double tStart, double tFinal, double cFactor = 1.0);
00050     RectangularSeries();
00051     
00052     // destructor
00053     ~RectangularSeries();
00054     
00055     // method to get load factor
00056     double getFactor(double pseudoTime);
00057     double getDuration () {return (tFinish - tStart);}
00058     double getPeakFactor () {return cFactor;}
00059     double getTimeIncr (double pseudoTime) {return (tFinish - tStart);}
00060     
00061     // methods for output    
00062     int sendSelf(int commitTag, Channel &theChannel);
00063     int recvSelf(int commitTag, Channel &theChannel, 
00064                  FEM_ObjectBroker &theBroker);
00065 
00066     void Print(OPS_Stream &s, int flag =0);    
00067     
00068   protected:
00069         
00070   private:
00071     double tStart;    // start time of the pulse
00072         double tFinish;   // finish time of the pulse
00073     double cFactor;   // factor = cFactor for tStart <= t <= tFinish
00074 };
00075 
00076 #endif

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