beam2d02.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.4 $
00022 // $Date: 2003/02/14 23:01:05 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/beam2d/beam2d02.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/model/element/beam2d02.h
00027 //
00028 // Written: fmk 11/95
00029 // Revised:
00030 //
00031 // Purpose: This file contains the class definition for beam2d02.
00032 // beam2d02 is a linear elastic plane frame member.
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     // private attributes - a copy for each object of the class        
00084     double A,E,I,M;
00085     double L,sn,cs;
00086     ID  connectedExternalNodes;    
00087     Node *theNodes[2];
00088 
00089     Matrix Kd; // the stiffness matrix
00090     Matrix m; // the mass matrix        
00091     Matrix d; // the damping matrix
00092 
00093     Vector q;
00094     Vector rForce;
00095     Vector load;
00096     Matrix trans;  // for the transformation matrix
00097 //    int isStiffFormed;
00098     CrdTransf2d *theCoordTrans;
00099 };
00100 
00101 #endif
00102 

Generated on Mon Oct 23 15:05:04 2006 for OpenSees by doxygen 1.5.0