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
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef Isolator2spring_h
00037 #define Isolator2spring_h
00038 #include <SectionForceDeformation.h>
00039
00040 #include <Matrix.h>
00041 #include <Vector.h>
00042 #include <ID.h>
00043
00044 class Isolator2spring : public SectionForceDeformation
00045 {
00046 public:
00047 Isolator2spring(int tag, double tol_in, double k1_in, double Fy_in, double kb_in, double kvo_in,
00048 double hb_in, double Pe_in, double po_in);
00049 Isolator2spring();
00050 ~Isolator2spring();
00051
00052 int setTrialSectionDeformation(const Vector &v);
00053 const Matrix &getSectionTangent(void);
00054 const Matrix &getInitialTangent(void);
00055 const Vector &getStressResultant(void);
00056 const Vector &getSectionDeformation(void);
00057
00058 int commitState(void);
00059 int revertToLastCommit(void);
00060 int revertToStart(void);
00061
00062 SectionForceDeformation *getCopy(void);
00063 const ID &getType(void);
00064 int getOrder(void) const;
00065
00066 int sendSelf(int commitTag, Channel &theChannel);
00067 int recvSelf(int commitTag, Channel &theChannel,
00068 FEM_ObjectBroker &theBroker);
00069
00070 void Print(OPS_Stream &s, int flag = 0);
00071
00072 protected:
00073
00074 private:
00075 double tol;
00076 double k1;
00077 double Fyo;
00078 double kbo;
00079 double kvo;
00080 double h;
00081 double Pe;
00082 double po;
00083
00084 double utpt[2];
00085 double sP_n;
00086 double sP_n1;
00087
00088 double q_n;
00089 double q_n1;
00090
00091 double H;
00092 double pcr;
00093
00094 Vector x0;
00095 Matrix ks;
00096 static Vector f0;
00097 static Matrix df;
00098 static Vector s;
00099 static Vector s3;
00100 static ID code;
00101 };
00102
00103 #endif