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