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 #ifndef beam3d02_h
00033 #define beam3d02_h
00034
00035 #include <Element.h>
00036 #include <Node.h>
00037 #include <Matrix.h>
00038 #include <Vector.h>
00039
00040 class Channel;
00041
00042 class beam3d02 : public Element
00043 {
00044 public:
00045 beam3d02();
00046 beam3d02(int tag, double A, double E, double G,
00047 double Jx, double Iy, double Iz, int Nd1, int Nd2, double theta);
00048 ~beam3d02();
00049
00050 int getNumExternalNodes(void) const;
00051 const ID &getExternalNodes(void);
00052 Node **getNodePtrs(void);
00053
00054 int getNumDOF(void);
00055 void setDomain(Domain *theDomain);
00056
00057 int revertToLastCommit(void);
00058
00059 const Matrix &getTangentStiff(void);
00060 const Matrix &getInitialStiff(void);
00061
00062 void zeroLoad(void);
00063 int addLoad(ElementalLoad *theLoad, double loadFactor);
00064 int addInertiaLoadToUnbalance(const Vector &accel);
00065
00066 const Vector &getResistingForce(void);
00067 const Vector &getResistingForceIncInertia(void);
00068
00069 int sendSelf(int commitTag, Channel &theChannel);
00070 int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00071
00072 void Print(OPS_Stream &s, int flag =0);
00073
00074 private:
00075 const Matrix &getStiff(void);
00076 void formVar(void);
00077
00078 double A,E,G,Jx,Iy,Iz,theta;
00079 double L;
00080 double dx,dy,dz,EA,twoE,fourE,twelveE,sixE;
00081
00082 static Matrix k;
00083 static Matrix m;
00084 static Matrix d;
00085
00086 Vector rForce;
00087 Vector load;
00088
00089 ID connectedExternalNodes;
00090 int isStiffFormed;
00091 Node *theNodes[2];
00092 };
00093
00094 #endif
00095
00096