EnvelopeDriftRecorder.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: 2006/08/17 22:25:03 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/EnvelopeDriftRecorder.h,v $
00024                                                                         
00025 #ifndef EnvelopeDriftRecorder_h
00026 #define EnvelopeDriftRecorder_h
00027 
00028 // Written: fmk
00029 // Created: 08/06
00030 //
00031 // Description: This file contains the class definition for 
00032 // EnvelopeDriftRecorder. 
00033 
00034 #include <Recorder.h>
00035 #include <ID.h>
00036 #include <Vector.h>
00037 
00038 class Domain;
00039 class Node;
00040 
00041 class EnvelopeDriftRecorder: public Recorder
00042 {
00043  public:
00044   EnvelopeDriftRecorder();
00045   EnvelopeDriftRecorder(int ndI, int ndJ, int dof, int perpDirn,
00046                         Domain &theDomain, 
00047                         OPS_Stream &theHandler,
00048                         bool echoTime = false);
00049   
00050   EnvelopeDriftRecorder(const ID &ndI, const ID &ndJ, int dof, int perpDirn,
00051                         Domain &theDomain, 
00052                         OPS_Stream &theHandler,
00053                         bool echoTime = false);
00054   
00055   ~EnvelopeDriftRecorder();
00056   
00057   int record(int commitTag, double timeStamp);
00058   int restart(void);    
00059   
00060   int setDomain(Domain &theDomain);
00061   int sendSelf(int commitTag, Channel &theChannel);  
00062   int recvSelf(int commitTag, Channel &theChannel, 
00063                FEM_ObjectBroker &theBroker);
00064   
00065  protected:
00066   
00067  private:       
00068   int initialize(void);
00069 
00070   ID *ndI;
00071   ID *ndJ;
00072   Node **theNodes; // i & j nodes
00073   int dof;
00074   int perpDirn;
00075   Vector *oneOverL;
00076   
00077   Vector *currentData;
00078   Matrix *data;
00079   
00080   Domain *theDomain;
00081   OPS_Stream *theOutputHandler;
00082 
00083   bool first;  
00084   bool initializationDone;
00085   int numNodes;
00086   bool echoTimeFlag;   // flag indicating whether time to be included in o/p
00087 };
00088 
00089 #endif

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