DamageRecorder.hGo 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.3 $ 00022 // $Date: 2006/08/04 22:33:53 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/DamageRecorder.h,v $ 00024 00025 #ifndef DamageRecorder_h 00026 #define DamageRecorder_h 00027 00028 00029 // Written: Arash Altoontash, Gregory Deierlein, 04/04 00030 // Created: 04/04 00031 // Revision: Arash Altoontash 00032 // 00033 // Description: This file contains the class definition for DamageRecorder. 00034 // A DamageRecorder is used to obtain a response from an element section/material during 00035 // the analysis and apply the information to the damage model and record the damage index. 00036 // 00037 // What: "@(#) DamageRecorder.h, revA" 00038 00039 #include <Recorder.h> 00040 #include <fstream> 00041 using std::ofstream; 00042 00043 #include <Information.h> 00044 #include <ID.h> 00045 00046 00047 class Domain; 00048 class Vector; 00049 class Matrix; 00050 class Element; 00051 class Response; 00052 class FE_Datastore; 00053 class DamageModel; 00054 00055 class DamageRecorder: public Recorder 00056 { 00057 public: 00058 DamageRecorder( int elemid, ID &secIDs, int dofid, DamageModel *dmgPtr, Domain &theDomainPtr, 00059 bool echotimeflag, double deltat , OPS_Stream &theOutputStream); 00060 00061 ~DamageRecorder(); 00062 int record(int commitTag, double timeStamp); 00063 int playback(int commitTag); 00064 00065 int restart(void); 00066 00067 protected: 00068 00069 private: 00070 00071 int eleID, numSec, dofID; 00072 ID responseID; // integer element returns in setResponse 00073 ID sectionTags; 00074 00075 Response **theResponses; 00076 DamageModel **theDamageModels; 00077 00078 Domain *theDomain; 00079 bool echoTimeFlag; // flag indicating if pseudo time also printed 00080 00081 double deltaT; 00082 double nextTimeStampToRecord; 00083 00084 OPS_Stream *theOutput; 00085 00086 Vector *data; 00087 }; 00088 00089 00090 #endif |