NodeRecorder.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.13 $
00022 // $Date: 2006/08/04 22:33:53 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/NodeRecorder.h,v $
00024                                                                         
00025 #ifndef NodeRecorder_h
00026 #define NodeRecorder_h
00027 
00028 // Written: fmk 
00029 // Created: 09/00
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for 
00033 // NodeRecorder. A NodeRecorder is used to store the specified nodal dof responses
00034 // for the specified nodes in a file.
00035 //
00036 // What: "@(#) NodeRecorder.h, revA"
00037 
00038 
00039 #include <Recorder.h>
00040 #include <ID.h>
00041 #include <Vector.h>
00042 
00043 class Domain;
00044 class FE_Datastore;
00045 class Node;
00046 
00047 class NodeRecorder: public Recorder
00048 {
00049   public:
00050     NodeRecorder();
00051     NodeRecorder(const ID &theDof, 
00052                  const ID &theNodes, 
00053                  int sensitivity,
00054                  const char *dataToStore,
00055                  Domain &theDomain,
00056                  OPS_Stream &theOutputHandler,
00057                  double deltaT = 0.0,
00058                  bool echoTimeFlag = true); 
00059     
00060     ~NodeRecorder();
00061 
00062     int record(int commitTag, double timeStamp);
00063 
00064     int setDomain(Domain &theDomain);
00065     int sendSelf(int commitTag, Channel &theChannel);  
00066     int recvSelf(int commitTag, Channel &theChannel, 
00067                  FEM_ObjectBroker &theBroker);
00068 
00069   protected:
00070 
00071   private:      
00072     int initialize(void);
00073 
00074     ID *theDofs;
00075     ID *theNodalTags;
00076     Node **theNodes;
00077     Vector response;
00078 
00079     Domain *theDomain;
00080     OPS_Stream *theOutputHandler;
00081 
00082     bool echoTimeFlag;   // flag indicating whether time to be included in o/p
00083     int dataFlag;        // flag indicating what it is to be stored in recorder
00084 
00085     double deltaT;
00086     double nextTimeStampToRecord;
00087 
00088     // AddingSensitivity:BEGIN //////////////////////////////
00089     int sensitivity;
00090     // AddingSensitivity:END ////////////////////////////////
00091 
00092     bool initializationDone;
00093     int numValidNodes;
00094 };
00095 
00096 #endif

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