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 beam2d03_h
00035 #define beam2d03_h
00036
00037 #include <Element.h>
00038 #include <Node.h>
00039 #include <Matrix.h>
00040 #include <Vector.h>
00041
00042 class Channel;
00043
00044 class beam2d03 : public Element
00045 {
00046 public:
00047 beam2d03();
00048 beam2d03(int tag, double A, double E, double I, int Nd1, int Nd2);
00049 ~beam2d03();
00050
00051 void setDomain(Domain *theDomain);
00052 int getNumExternalNodes(void) const;
00053 const ID &getExternalNodes(void);
00054 Node **getNodePtrs(void);
00055
00056 int getNumDOF(void);
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 double A,E,I;
00077 double L,sn,cs;
00078 ID connectedExternalNodes;
00079 Node *theNodes[2];
00080
00081 Matrix k;
00082
00083 Vector rForce;
00084 Vector load;
00085 Matrix trans;
00086 };
00087
00088 #endif
00089
00090