ElementRecorder.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.12 $
00022 // $Date: 2006/08/04 22:33:53 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/ElementRecorder.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ElementRecorder_h
00027 #define ElementRecorder_h
00028 
00029 
00030 // Written: fmk 
00031 // Created: 09/99
00032 // Revision: A
00033 //
00034 // Description: This file contains the class definition for ElementRecorder.
00035 // A ElementRecorder is used to obtain a response from an element during 
00036 // the analysis.
00037 //
00038 // What: "@(#) ElementRecorder.h, revA"
00039 
00040 #include <Recorder.h>
00041 #include <Information.h>
00042 #include <ID.h>
00043 
00044 class Domain;
00045 class Vector;
00046 class Matrix;
00047 class Element;
00048 class Response;
00049 class FE_Datastore;
00050 
00051 class ElementRecorder: public Recorder
00052 {
00053   public:
00054     ElementRecorder();
00055     ElementRecorder(const ID &eleID, 
00056                     const char **argv, 
00057                     int argc,
00058                     bool echoTime, 
00059                     Domain &theDomain, 
00060                     OPS_Stream &theOutputHandler,
00061                     double deltaT = 0.0);
00062 
00063     ~ElementRecorder();
00064 
00065     int record(int commitTag, double timeStamp);
00066     int restart(void);    
00067 
00068     int setDomain(Domain &theDomain);
00069     int sendSelf(int commitTag, Channel &theChannel);  
00070     int recvSelf(int commitTag, Channel &theChannel, 
00071                  FEM_ObjectBroker &theBroker);
00072     
00073   protected:
00074 
00075     
00076   private:      
00077     int initialize(void);
00078 
00079     int numEle;
00080     ID eleID;
00081 
00082     Response **theResponses;
00083 
00084     Domain *theDomain;
00085     OPS_Stream *theOutputHandler;
00086 
00087     bool echoTimeFlag;             // flag indicating if pseudo time also printed
00088 
00089     double deltaT;
00090     double nextTimeStampToRecord;
00091 
00092     Vector *data;
00093     bool initializationDone;
00094     char **responseArgs;
00095     int numArgs;
00096 };
00097 
00098 
00099 #endif

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