Rev 1231 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2 | fmk | 1 | /* ****************************************************************** ** |
| 2 | ** OpenSees - Open System for Earthquake Engineering Simulation ** |
||
| 3 | ** Pacific Earthquake Engineering Research Center ** |
||
| 4 | ** ** |
||
| 5 | ** ** |
||
| 6 | ** (C) Copyright 1999, The Regents of the University of California ** |
||
| 7 | ** All Rights Reserved. ** |
||
| 8 | ** ** |
||
| 9 | ** Commercial use of this program without express permission of the ** |
||
| 10 | ** University of California, Berkeley, is strictly prohibited. See ** |
||
| 11 | ** file 'COPYRIGHT' in main directory for information on usage and ** |
||
| 12 | ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** |
||
| 13 | ** ** |
||
| 14 | ** Developed by: ** |
||
| 15 | ** Frank McKenna (fmckenna@ce.berkeley.edu) ** |
||
| 16 | ** Gregory L. Fenves (fenves@ce.berkeley.edu) ** |
||
| 17 | ** Filip C. Filippou (filippou@ce.berkeley.edu) ** |
||
| 18 | ** ** |
||
| 19 | ** ****************************************************************** */ |
||
| 20 | |||
| 1271 | fmk | 21 | // $Revision: 1.5 $ |
| 22 | // $Date: 2003-02-14 23:01:05 $ |
||
| 2 | fmk | 23 | // $Source: /usr/local/cvs/OpenSees/SRC/element/beam3d/beam3d02.h,v $ |
| 24 | |||
| 25 | |||
| 26 | // File: ~/model/beam3d02.h |
||
| 27 | // |
||
| 28 | // Written: fmk 11/95 |
||
| 29 | // Revised: |
||
| 30 | // |
||
| 31 | // Purpose: This file contains the class definition for beam3d02. |
||
| 32 | // beam3d02 is a plane frame member. |
||
| 33 | |||
| 34 | #ifndef beam3d02_h |
||
| 35 | #define beam3d02_h |
||
| 36 | |||
| 37 | #include <Element.h> |
||
| 38 | #include <Node.h> |
||
| 39 | #include <Matrix.h> |
||
| 40 | #include <Vector.h> |
||
| 41 | |||
| 42 | class Channel; |
||
| 43 | |||
| 44 | class beam3d02 : public Element |
||
| 45 | { |
||
| 46 | public: |
||
| 47 | beam3d02(); |
||
| 48 | beam3d02(int tag, double A, double E, double G, |
||
| 49 | double Jx, double Iy, double Iz, int Nd1, int Nd2, double theta); |
||
| 50 | ~beam3d02(); |
||
| 51 | |||
| 52 | int getNumExternalNodes(void) const; |
||
| 53 | const ID &getExternalNodes(void); |
||
| 1181 | fmk | 54 | Node **getNodePtrs(void); |
| 2 | fmk | 55 | |
| 56 | int getNumDOF(void); |
||
| 1181 | fmk | 57 | void setDomain(Domain *theDomain); |
| 58 | |||
| 2 | fmk | 59 | int revertToLastCommit(void); |
| 60 | |||
| 61 | const Matrix &getTangentStiff(void); |
||
| 1181 | fmk | 62 | const Matrix &getInitialStiff(void); |
| 2 | fmk | 63 | |
| 64 | void zeroLoad(void); |
||
| 717 | fmk | 65 | int addLoad(ElementalLoad *theLoad, double loadFactor); |
| 66 | int addInertiaLoadToUnbalance(const Vector &accel); |
||
| 67 | |||
| 2 | fmk | 68 | const Vector &getResistingForce(void); |
| 69 | const Vector &getResistingForceIncInertia(void); |
||
| 70 | |||
| 71 | int sendSelf(int commitTag, Channel &theChannel); |
||
| 72 | int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker); |
||
| 73 | |||
| 1271 | fmk | 74 | void Print(OPS_Stream &s, int flag =0); |
| 2 | fmk | 75 | |
| 76 | private: |
||
| 77 | const Matrix &getStiff(void); |
||
| 78 | void formVar(void); |
||
| 79 | |||
| 80 | double A,E,G,Jx,Iy,Iz,theta; |
||
| 81 | double L; |
||
| 82 | double dx,dy,dz,EA,twoE,fourE,twelveE,sixE; |
||
| 83 | |||
| 84 | static Matrix k; // the stiffness matrix |
||
| 85 | static Matrix m; // the mass matrix |
||
| 86 | static Matrix d; // the damping matrix |
||
| 87 | |||
| 88 | Vector rForce; |
||
| 89 | Vector load; |
||
| 90 | |||
| 91 | ID connectedExternalNodes; |
||
| 92 | int isStiffFormed; |
||
| 1181 | fmk | 93 | Node *theNodes[2]; |
| 2 | fmk | 94 | }; |
| 95 | |||
| 96 | #endif |
||
| 97 | |||
| 98 |