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

PathSeries.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/PathSeries.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef PathSeries_h
00027 #define PathSeries_h
00028 
00029 // File: ~/analysis/integrator/PathSeries.h
00030 // 
00031 // Written: fmk 
00032 // Created: 07/99
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for PathSeries.
00036 // PathSeries is a TimeSeries class which linear interpolates the
00037 // load factor using user specified control points provided in a vector object.
00038 // the points in the vector are given at regular time increments pathTimeIncr
00039 // apart. (could be provided in another vector if different)
00040 //
00041 // What: "@(#) PathSeries.h, revA"
00042 
00043 #include <TimeSeries.h>
00044 #include <iostream.h>
00045 
00046 #include <Vector.h>
00047 
00059 class PathSeries : public TimeSeries
00060 {
00061   public:
00063     PathSeries(const Vector &thePath, 
00064         double pathTimeIncr = 1.0, 
00065         double cfactor = 1.0);
00075     PathSeries(char *fileName, 
00076 
00077         double pathTimeIncr = 1.0, 
00078         double cfactor = 1.0);    
00088     PathSeries();    
00089 
00090     
00092     ~PathSeries();
00093 
00095     double getFactor(double pseudoTime);
00101  double getDuration ();
00102 
00107  double getPeakFactor ();
00108 
00115  double getTimeIncr (double pseudoTime) {return pathTimeIncr;}
00116 
00117 
00119     int sendSelf(int commitTag, Channel &theChannel);
00123     int recvSelf(int commitTag, Channel &theChannel, 
00124 
00125    FEM_ObjectBroker &theBroker);
00126 
00135     void Print(ostream &s, int flag =0);    
00136 
00137     
00138   protected:
00139     
00140   private:
00142     Vector *thePath;      
00143 
00144     double pathTimeIncr;  
00145     double cFactor;       
00146     int otherDbTag;       // a database tag needed for the vector object
00147 };
00148 
00149 #endif
00150 
Copyright Contact Us