beam3d01.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.6 $
00022 // $Date: 2003/02/25 23:32:46 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/beam3d/beam3d01.h,v $
00024                                                                         
00025                                                                         
00026 // Written: fmk 11/95
00027 // Revised:
00028 //
00029 // Purpose: This file contains the class definition for beam3d01.
00030 // beam3d01 is a plane frame member.
00031 
00032 #ifndef beam3d01_h
00033 #define beam3d01_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 beam3d01 : public Element
00043 {
00044   public:
00045     beam3d01();        
00046     beam3d01(int tag, double A, double E, double G, 
00047               double Jx, double Iy, double Iz, int Nd1, int Nd2, double theta);
00048     ~beam3d01();
00049 
00050     int getNumExternalNodes(void) const;
00051     const ID &getExternalNodes(void);
00052     Node **getNodePtrs(void);
00053 
00054     int getNumDOF(void);
00055 
00056     int revertToLastCommit(void);        
00057     
00058     const Matrix &getTangentStiff(void);
00059     const Matrix &getInitialStiff(void);
00060 
00061     void zeroLoad(void);        
00062     int addLoad(ElementalLoad *theLoad, double loadFactor);
00063     int addInertiaLoadToUnbalance(const Vector &accel);
00064 
00065     const Vector &getResistingForce(void);
00066     const Vector &getResistingForceIncInertia(void);            
00067     
00068     int displaySelf(Renderer &theViewer, int displayMode, float fact);        
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     
00077     double A,E,G,Jx,Iy,Iz,theta;
00078     double L;
00079 
00080     Matrix k; // the stiffness matrix
00081     static Matrix m; // the mass matrix 
00082     static Matrix d; // the damping matrix
00083         
00084     Vector rForce;
00085     Vector load;
00086     
00087     ID  connectedExternalNodes;    
00088     int isStiffFormed;
00089     Node *theNodes[2];
00090 };
00091 
00092 #endif
00093 
00094 

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