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
00026
00027
00028 #ifndef EnvelopeNodeRecorder_h
00029 #define EnvelopeNodeRecorder_h
00030
00031
00032
00033
00034
00035
00036
00037
00038
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;
00088
00089 double deltaT;
00090 double nextTimeStampToRecord;
00091
00092 bool first;
00093 bool initializationDone;
00094 int numValidNodes;
00095
00096 bool echoTimeFlag;
00097 };
00098
00099 #endif