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 #ifndef HystereticEnergy_h
00027 #define HystereticEnergy_h
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #include <ErrorHandler.h>
00038 #include <DamageModel.h>
00039
00040 class DamageResponse;
00041
00042
00043 class HystereticEnergy : public DamageModel
00044 {
00045 public:
00046 HystereticEnergy(int tag, double Etot , double Cpow);
00047 HystereticEnergy();
00048 ~HystereticEnergy();
00049
00050 int setTrial ( Vector trialVector );
00051 int setTrial ();
00052
00053 int setInputResponse ( Element *elem , const char **argv , int argc, int ndof );
00054
00055 double getDamage(void);
00056 double getPosDamage (void);
00057 double getNegDamage (void);
00058
00059 int commitState(void);
00060 int revertToLastCommit (void);
00061 int revertToStart (void);
00062
00063 DamageModel *getCopy (void);
00064
00065 int setVariable(const char *argv);
00066 int getVariable(int variableID, double &info);
00067
00068 int setParameter(char **argv, int argc, Information &eleInformation);
00069 int updateParameter(int responseID, Information &eleInformation);
00070
00071 Response *setResponse(char **argv, int argc, Information &info);
00072 int getResponse(int responseID, Information &info);
00073
00074 int sendSelf(int commitTag, Channel &theChannel);
00075 int recvSelf(int commitTag, Channel &theChannel,
00076 FEM_ObjectBroker &theBroker);
00077 void Print(OPS_Stream &s, int flag =0);
00078
00079
00080 void update(void) {return;}
00081
00082 protected:
00083
00084 private:
00085
00086 double Etotal,Cpower;
00087
00088
00089 double TrialInfo[8];
00090 double CommitInfo[8];
00091 double LastCommitInfo[8];
00092 };
00093
00094
00095 #endif