Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ElasticBeam3d.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: 2001/07/13 23:03:45 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/beam3d/ElasticBeam3d.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/model/ElasticBeam3d.h
00027 //
00028 // Written: fmk 11/95
00029 // Revised:
00030 //
00031 // Purpose: This file contains the class definition for ElasticBeam3d.
00032 // ElasticBeam3d is a plane frame member.
00033 
00034 #ifndef ElasticBeam3d_h
00035 #define ElasticBeam3d_h
00036 
00037 #include <Element.h>
00038 #include <Node.h>
00039 #include <Matrix.h>
00040 #include <Vector.h>
00041 
00042 #include <Channel.h>
00043 #include <Information.h>
00044 #include <CrdTransf3d.h>
00045 #include <Response.h>
00046 #include <Renderer.h>
00047 
00049 class ElasticBeam3d : public Element
00050 {
00051   public:
00053     ElasticBeam3d();        
00055     ElasticBeam3d(int tag, double A, double E, double G, 
00056       double Jx, double Iy, double Iz, int Nd1, int Nd2,
00057       CrdTransf3d &theTransf, double rho = 0.0);
00059     ~ElasticBeam3d();
00060 
00062     int getNumExternalNodes(void) const;
00064     const ID &getExternalNodes(void);
00066     int getNumDOF(void);
00068     void setDomain(Domain *theDomain);
00069     
00071     int commitState(void);
00073     int revertToLastCommit(void);        
00075     int revertToStart(void);
00076     
00078     const Matrix &getTangentStiff(void);
00080     const Matrix &getSecantStiff(void);    
00082     const Matrix &getDamp(void);    
00084     const Matrix &getMass(void);    
00085 
00087     void zeroLoad(void); 
00089     int addLoad(const Vector &load);
00091  int addInertiaLoadToUnbalance(const Vector &accel);
00093     const Vector &getResistingForce(void);
00095     const Vector &getResistingForceIncInertia(void);            
00096     
00098     int sendSelf(int commitTag, Channel &theChannel);
00100     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00101     
00103     void Print(ostream &s, int flag =0);    
00105     int displaySelf(Renderer &theViewer, int displayMode, float fact);
00106 
00108  Response *setResponse (char **argv, int argc, Information &info);
00110     int getResponse (int responseID, Information &info);
00111  
00112   private:
00114     double A,E,G,Jx,Iy,Iz;
00116     double L;
00117 
00119     double rho;
00120     
00122  static Matrix K;
00124     static Vector P;
00126  Vector Q;
00127     
00129     static Matrix kb;
00131     Vector q;
00132     
00134     Node *node1Ptr, *node2Ptr;
00135     
00137     ID  connectedExternalNodes;    
00138 
00140     CrdTransf3d *theCoordTransf;
00141 };
00142 
00143 #endif
00144 
00145 
00146 ÿ
Copyright Contact Us