00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef DriftRecorder_h
00026 #define DriftRecorder_h
00027
00028
00029
00030
00031
00032
00033
00034 #include <Recorder.h>
00035 #include <ID.h>
00036 #include <Vector.h>
00037
00038 class Domain;
00039 class Node;
00040
00041 class DriftRecorder: public Recorder
00042 {
00043 public:
00044 DriftRecorder();
00045 DriftRecorder(int ndI, int ndJ, int dof, int perpDirn,
00046 Domain &theDomain,
00047 OPS_Stream &theHandler,
00048 bool echoTime = false);
00049
00050 DriftRecorder(const ID &ndI, const ID &ndJ, int dof, int perpDirn,
00051 Domain &theDomain,
00052 OPS_Stream &theHandler,
00053 bool echoTime = false);
00054
00055 ~DriftRecorder();
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;
00073 int dof;
00074 int perpDirn;
00075 Vector *oneOverL;
00076 Vector *data;
00077
00078 Domain *theDomain;
00079 OPS_Stream *theOutputHandler;
00080
00081 bool initializationDone;
00082 int numNodes;
00083 bool echoTimeFlag;
00084 };
00085
00086 #endif