Subversion Repositories OpenSees

Rev

Rev 1271 | 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
 
1321 fmk 21
// $Revision: 1.6 $
22
// $Date: 2003-02-25 23:32:46 $
2 fmk 23
// $Source: /usr/local/cvs/OpenSees/SRC/element/beam3d/beam3d02.h,v $
24
 
25
 
26
// Written: fmk 11/95
27
// Revised:
28
//
29
// Purpose: This file contains the class definition for beam3d02.
30
// beam3d02 is a plane frame member.
31
 
32
#ifndef beam3d02_h
33
#define beam3d02_h
34
 
35
#include <Element.h>
36
#include <Node.h>
37
#include <Matrix.h>
38
#include <Vector.h>
39
 
40
class Channel;
41
 
42
class beam3d02 : public Element
43
{
44
  public:
45
    beam3d02();        
46
    beam3d02(int tag, double A, double E, double G,
47
              double Jx, double Iy, double Iz, int Nd1, int Nd2, double theta);
48
    ~beam3d02();
49
 
50
    int getNumExternalNodes(void) const;
51
    const ID &getExternalNodes(void);
1181 fmk 52
    Node **getNodePtrs(void);
2 fmk 53
 
54
    int getNumDOF(void);
1181 fmk 55
    void setDomain(Domain *theDomain);
56
 
2 fmk 57
    int revertToLastCommit(void);        
58
 
59
    const Matrix &getTangentStiff(void);
1181 fmk 60
    const Matrix &getInitialStiff(void);
2 fmk 61
 
62
    void zeroLoad(void);       
717 fmk 63
    int addLoad(ElementalLoad *theLoad, double loadFactor);
64
    int addInertiaLoadToUnbalance(const Vector &accel);
65
 
2 fmk 66
    const Vector &getResistingForce(void);
67
    const Vector &getResistingForceIncInertia(void);            
68
 
69
    int sendSelf(int commitTag, Channel &theChannel);
70
    int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
71
 
1271 fmk 72
    void Print(OPS_Stream &s, int flag =0);    
2 fmk 73
 
74
  private:
75
    const Matrix &getStiff(void);    
76
    void formVar(void);
77
 
78
    double A,E,G,Jx,Iy,Iz,theta;
79
    double L;
80
    double dx,dy,dz,EA,twoE,fourE,twelveE,sixE;
81
 
82
    static Matrix k; // the stiffness matrix
83
    static Matrix m; // the mass matrix 
84
    static Matrix d; // the damping matrix
85
 
86
    Vector rForce;
87
    Vector load;
88
 
89
    ID  connectedExternalNodes;    
90
    int isStiffFormed;
1181 fmk 91
    Node *theNodes[2];
2 fmk 92
};
93
 
94
#endif
95
 
96