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 LinearCrdTransf2d_h
00040 #define LinearCrdTransf2d_h
00041
00042 #include <CrdTransf2d.h>
00043 #include <Vector.h>
00044 #include <Matrix.h>
00045
00046
00048 class LinearCrdTransf2d: public CrdTransf2d
00049 {
00050 public:
00052 LinearCrdTransf2d (int tag);
00054 LinearCrdTransf2d (int tag,
00055 const Vector &rigJntOffsetI,
00056 const Vector &rigJntOffsetJ);
00057
00059 LinearCrdTransf2d();
00061 ~LinearCrdTransf2d();
00062
00064 int initialize(Node *node1Pointer, Node *node2Pointer);
00066 int update(void);
00068 double getInitialLength(void);
00070 double getDeformedLength(void);
00071
00073 int commitState(void);
00075 int revertToLastCommit(void);
00077 int revertToStart(void);
00078
00080 const Vector &getBasicTrialDisp (void);
00082 const Vector &getBasicIncrDisp (void);
00084 const Vector &getBasicIncrDeltaDisp (void);
00085
00087 const Vector &getGlobalResistingForce (const Vector &basicForce, const Vector &uniformLoad);
00089 const Matrix &getGlobalStiffMatrix (const Matrix &basicStiff, const Vector &basicForce);
00090
00092 CrdTransf2d *getCopy(void);
00093
00095 int sendSelf(int cTag, Channel &theChannel);
00097 int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00098
00100 void Print(ostream &s, int flag =0);
00101
00103 const Vector &getPointGlobalCoordFromLocal (const Vector &localCoords);
00105 const Vector &getPointGlobalDisplFromBasic (double xi, const Vector &basicDisps);
00106
00107 private:
00109 int computeElemtLengthAndOrient (void);
00110
00112 Node *nodeIPtr,
00113 *nodeJPtr;
00114
00115 double *nodeIOffset, *nodeJOffset;
00116
00117 double cosTheta, sinTheta;
00118
00120 double L;
00121 };
00122
00123 #endif
00124
00125 ÿ