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 #ifndef beam2d02_h
00035 #define beam2d02_h
00036
00037 #include <Element.h>
00038 #include <Node.h>
00039 #include <Matrix.h>
00040 #include <Vector.h>
00041 #include <Channel.h>
00042 class CrdTransf2d;
00043
00044 class beam2d02 : public Element
00045 {
00046 public:
00047 beam2d02();
00048 beam2d02(int tag, double A, double E, double I, int Nd1, int Nd2,
00049 CrdTransf2d &theTrans, double rho = 0.0);
00050 ~beam2d02();
00051
00052 int getNumExternalNodes(void) const;
00053 const ID &getExternalNodes(void);
00054 Node **getNodePtrs(void);
00055
00056 int getNumDOF(void);
00057 void setDomain(Domain *theDomain);
00058
00059 int commitState(void);
00060 int revertToLastCommit(void);
00061 int revertToStart(void);
00062
00063 const Matrix &getTangentStiff(void);
00064 const Matrix &getInitialStiff(void);
00065 const Matrix &getMass(void);
00066
00067 void zeroLoad(void);
00068 int addLoad(ElementalLoad *theLoad, double loadFactor);
00069 int addInertiaLoadToUnbalance(const Vector &accel);
00070
00071 const Vector &getResistingForce(void);
00072 const Vector &getResistingForceIncInertia(void);
00073
00074 int sendSelf(int commitTag, Channel &theChannel);
00075 int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00076
00077 int displaySelf(Renderer &theViewer, int displayMode, float fact);
00078 void Print(OPS_Stream &s, int flag =0);
00079
00080 private:
00081 const Matrix &getStiff(void);
00082
00083
00084 double A,E,I,M;
00085 double L,sn,cs;
00086 ID connectedExternalNodes;
00087 Node *theNodes[2];
00088
00089 Matrix Kd;
00090 Matrix m;
00091 Matrix d;
00092
00093 Vector q;
00094 Vector rForce;
00095 Vector load;
00096 Matrix trans;
00097
00098 CrdTransf2d *theCoordTrans;
00099 };
00100
00101 #endif
00102