beam2d04.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.5 $
00022 // $Date: 2003/02/14 23:01:05 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/beam2d/beam2d04.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/element/beam2d04.h
00027 //
00028 // Written: fmk 11/95
00029 // Revised:
00030 //
00031 // Purpose: This file contains the class definition for beam2d04.
00032 // beam2d04 is a plane frame member.
00033 
00034 #ifndef beam2d04_h
00035 #define beam2d04_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 beam2d04 : public Element
00045 {
00046   public:
00047     beam2d04();        
00048     beam2d04(int tag, double A, double E, double I, int Nd1, int Nd2);
00049     ~beam2d04();
00050 
00051     int getNumExternalNodes(void) const;
00052     const ID &getExternalNodes(void);
00053     Node **getNodePtrs(void);
00054 
00055     int getNumDOF(void);
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 sendSelf(int commitTag, Channel &theChannel);
00069     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00070     
00071     void Print(OPS_Stream &s, int flag =0);    
00072     
00073   private:
00074     const Matrix &getStiff(void);    
00075     void formVar(void);
00076     
00077     double A,E,I;
00078     double L,sn,cs;
00079     
00080     double oneEA;
00081     double twoEI; 
00082     double fourEI;
00083     double twelveEI;
00084     double sixEI;
00085     
00086     ID  connectedExternalNodes;    
00087     Node *theNodes[2];
00088 
00089     Vector rForce;
00090     Vector load;
00091     int isStiffFormed;
00092 
00093     static Matrix k;
00094     static Matrix trans;  // hold part of transformation matrix
00095     
00096 };
00097 
00098 #endif
00099 
00100 

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