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
00037
00038
00039 #ifndef PDeltaCrdTransf2d_h
00040 #define PDeltaCrdTransf2d_h
00041
00042 #include <CrdTransf2d.h>
00043 #include <Vector.h>
00044 #include <Matrix.h>
00045
00046 class PDeltaCrdTransf2d: public CrdTransf2d
00047 {
00048 public:
00049 PDeltaCrdTransf2d(int tag);
00050 PDeltaCrdTransf2d(int tag,
00051 const Vector &rigJntOffsetI,
00052 const Vector &rigJntOffsetJ);
00053
00054 PDeltaCrdTransf2d();
00055 ~PDeltaCrdTransf2d();
00056
00057 int initialize(Node *node1Pointer, Node *node2Pointer);
00058 int update(void);
00059 double getInitialLength(void);
00060 double getDeformedLength(void);
00061
00062 int commitState(void);
00063 int revertToLastCommit(void);
00064 int revertToStart(void);
00065
00066 const Vector &getBasicTrialDisp(void);
00067 const Vector &getBasicIncrDisp(void);
00068 const Vector &getBasicIncrDeltaDisp(void);
00069 const Vector &getBasicTrialVel(void);
00070 const Vector &getBasicTrialAccel(void);
00071
00072 const Vector &getGlobalResistingForce(const Vector &basicForce, const Vector &p0);
00073 const Matrix &getGlobalStiffMatrix(const Matrix &basicStiff, const Vector &basicForce);
00074 const Matrix &getInitialGlobalStiffMatrix(const Matrix &basicStiff);
00075
00076 CrdTransf2d *getCopy(void);
00077
00078 int sendSelf(int cTag, Channel &theChannel);
00079 int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00080
00081 void Print(OPS_Stream &s, int flag = 0);
00082
00083
00084 const Vector &getPointGlobalCoordFromLocal(const Vector &localCoords);
00085 const Vector &getPointGlobalDisplFromBasic(double xi, const Vector &basicDisps);
00086
00087 private:
00088 int computeElemtLengthAndOrient(void);
00089
00090
00091 Node *nodeIPtr, *nodeJPtr;
00092
00093 double *nodeIOffset, *nodeJOffset;
00094
00095 double cosTheta, sinTheta;
00096
00097 double L;
00098 double ul14;
00099
00100 double *nodeIInitialDisp, *nodeJInitialDisp;
00101 bool initialDispChecked;
00102 };
00103
00104 #endif
00105