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.9 $
00022 // $Date: 2006/08/04 19:08:07 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/elasticBeamColumn/ElasticBeam3d.h,v $
00024                                                                         
00025                                                                         
00026 // Written: fmk 11/95
00027 // Revised:
00028 //
00029 // Purpose: This file contains the class definition for ElasticBeam3d.
00030 // ElasticBeam3d is a plane frame member.
00031 
00032 #ifndef ElasticBeam3d_h
00033 #define ElasticBeam3d_h
00034 
00035 #include <Element.h>
00036 #include <Node.h>
00037 #include <Matrix.h>
00038 #include <Vector.h>
00039 
00040 class Channel;
00041 class Information;
00042 class CrdTransf3d;
00043 class Response;
00044 class Renderer;
00045 class SectionForceDeformation;
00046 
00047 class ElasticBeam3d : public Element
00048 {
00049   public:
00050     ElasticBeam3d();        
00051     ElasticBeam3d(int tag, double A, double E, double G, 
00052                   double Jx, double Iy, double Iz, int Nd1, int Nd2,
00053                   CrdTransf3d &theTransf, double rho = 0.0, int sectionTag = 0);
00054 
00055     ElasticBeam3d(int tag, int Nd1, int Nd2, SectionForceDeformation *section, 
00056                   CrdTransf3d &theTransf, double rho = 0.0);
00057 
00058     ~ElasticBeam3d();
00059 
00060     const char *getClassType(void) const {return "ElasticBeam3d";};
00061 
00062     int getNumExternalNodes(void) const;
00063     const ID &getExternalNodes(void);
00064     Node **getNodePtrs(void);
00065 
00066     int getNumDOF(void);
00067     void setDomain(Domain *theDomain);
00068     
00069     int commitState(void);
00070     int revertToLastCommit(void);        
00071     int revertToStart(void);
00072     
00073     int update(void);
00074     const Matrix &getTangentStiff(void);
00075     const Matrix &getInitialStiff(void);
00076     const Matrix &getMass(void);    
00077 
00078     void zeroLoad(void);        
00079     int addLoad(ElementalLoad *theLoad, double loadFactor);
00080     int addInertiaLoadToUnbalance(const Vector &accel);
00081 
00082     const Vector &getResistingForce(void);
00083     const Vector &getResistingForceIncInertia(void);            
00084     
00085     int sendSelf(int commitTag, Channel &theChannel);
00086     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00087     
00088     void Print(OPS_Stream &s, int flag =0);    
00089     int displaySelf(Renderer &theViewer, int displayMode, float fact);
00090 
00091     Response *setResponse (const char **argv, int argc, Information &info, OPS_Stream &s);
00092     int getResponse (int responseID, Information &info);
00093  
00094   private:
00095     double A,E,G,Jx,Iy,Iz;
00096 
00097     double rho;
00098     int sectionTag;
00099 
00100     static Matrix K;
00101     static Vector P;
00102     Vector Q;
00103     
00104     static Matrix kb;
00105     Vector q;
00106     double q0[5];  // Fixed end forces in basic system (no torsion)
00107     double p0[5];  // Reactions in basic system (no torsion)
00108  
00109     Node *theNodes[2];
00110 
00111     ID  connectedExternalNodes;    
00112 
00113     CrdTransf3d *theCoordTransf;
00114 };
00115 
00116 #endif
00117 
00118 

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