EnvelopeNodeRecorder.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 
00022 // $Revision: 1.8 $
00023 // $Date: 2006/08/04 22:33:53 $
00024 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/EnvelopeNodeRecorder.h,v $
00025                                                                         
00026 
00027                                                                         
00028 #ifndef EnvelopeNodeRecorder_h
00029 #define EnvelopeNodeRecorder_h
00030 
00031 // Written: fmk 
00032 //
00033 // Description: This file contains the class definition for EnvelopeRecorder.
00034 // A EnvelopeRecorder is used to record the envelop of specified dof responses 
00035 // at a collection of nodes over an analysis. (between commitTag of 0 and
00036 // last commitTag).
00037 //
00038 // What: "@(#) EnvelopeNodeRecorder.h, revA"
00039 
00040 
00041 #include <Recorder.h>
00042 #include <ID.h>
00043 #include <Vector.h>
00044 #include <Matrix.h>
00045 
00046 class Domain;
00047 class FE_Datastore;
00048 class Node;
00049 
00050 class EnvelopeNodeRecorder: public Recorder
00051 {
00052   public:
00053     EnvelopeNodeRecorder();
00054     EnvelopeNodeRecorder(const ID &theDof, 
00055                          const ID &theNodes, 
00056                          const char *dataToStore,
00057                          Domain &theDomain,
00058                          OPS_Stream &theOutputHandler,
00059                          double deltaT = 0.0,
00060                          bool echoTimeFlag = false); 
00061     
00062     ~EnvelopeNodeRecorder();
00063 
00064     int record(int commitTag, double timeStamp);
00065     int restart(void);    
00066 
00067     int setDomain(Domain &theDomain);
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     int initialize(void);
00076 
00077     ID *theDofs;
00078     ID *theNodalTags;
00079     Node **theNodes;
00080 
00081     Vector *currentData;
00082     Matrix *data;
00083 
00084     Domain *theDomain;
00085     OPS_Stream *theHandler;
00086 
00087     int dataFlag; // flag indicating what it is to be stored in recorder
00088 
00089     double deltaT;
00090     double nextTimeStampToRecord;
00091 
00092     bool first;
00093     bool initializationDone;
00094     int numValidNodes;
00095 
00096     bool echoTimeFlag;   // flag indicating whether time to be included in o/p
00097 };
00098 
00099 #endif

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