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

ElasticBeam2d.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/06/14 05:59:35 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/beam2d/ElasticBeam2d.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/model/ElasticBeam2d.h
00027 //
00028 // Written: fmk 11/95
00029 // Revised:
00030 //
00031 // Purpose: This file contains the class definition for ElasticBeam2d.
00032 // ElasticBeam2d is a plane frame member.
00033 
00034 #ifndef ElasticBeam2d_h
00035 #define ElasticBeam2d_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 <CrdTransf2d.h>
00045 #include <Response.h>
00046 #include <Renderer.h>
00047 
00049 class ElasticBeam2d : public Element
00050 {
00051   public:
00053     ElasticBeam2d();        
00055     ElasticBeam2d(int tag, double A, double E, double I, 
00056       int Nd1, int Nd2, CrdTransf2d &theTransf, double rho = 0.0);
00058     ~ElasticBeam2d();
00059 
00061     int getNumExternalNodes(void) const;
00063     const ID &getExternalNodes(void);
00065     int getNumDOF(void);
00067     void setDomain(Domain *theDomain);
00068     
00070     int commitState(void);
00072     int revertToLastCommit(void);        
00074     int revertToStart(void);
00075     
00077     const Matrix &getTangentStiff(void);
00079     const Matrix &getSecantStiff(void);    
00081     const Matrix &getDamp(void);    
00083     const Matrix &getMass(void);    
00084 
00086     void zeroLoad(void); 
00088     int addLoad(const Vector &load);  
00090  int addInertiaLoadToUnbalance(const Vector &accel);
00091 
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  
00113     int setParameter (char **argv, int argc, Information &info);
00115     int updateParameter (int parameterID, Information &info);
00116 
00117   private:
00119     double A,E,I;
00121     double L;
00122 
00123 
00125     double EAoverL;
00127     double EIoverL4;
00129     double EIoverL2;
00130 
00132     double rho;
00133     
00135     static Matrix K;
00137     static Vector P;
00139     Vector Q;
00140     
00142     static Matrix kb;
00144     Vector q;
00145     
00147     Node *node1Ptr, *node2Ptr;
00148     
00150     ID  connectedExternalNodes;    
00151 
00153     CrdTransf2d *theCoordTransf;
00154 };
00155 
00156 #endif
00157 
00158 
00159 ÿ
Copyright Contact Us