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