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

NLBeamColumn3d.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/12 21:54:57 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/nonlinearBeamColumn/element/NLBeamColumn3d.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/model/element/NLBeamColumn3d.h
00027 //
00028 // Written: Remo Magalhaes de Souza on 03/99 
00029 // Revised: rms 06/99 (mass matrix)
00030 //          rms 07/99 (using setDomain)
00031 //          rms 08/99 (included P-Delta effect)
00032 //     fmk 10/99 setResponse() & getResponse()
00033 //          rms 04/00 (using CrdTransf class)
00034 //          mhs 06/00 (using new section class)
00035 //          mhs 06/00 (using new section class w/ variable dimensions)
00036 //          rms 06/00 (torsional stiffness considered at the section level)
00037 //          rms 06/00 (making copy of the sections)
00038 //          rms 06/00 (storing section history variables at the element level)
00039 //            
00040 // Purpose: This file contains the class definition for NLBeamColumn3d.
00041 // NLBeamColumn3d is a materially nonlinear flexibility based frame element.
00042 
00043 #ifndef NLBeamColumn3d_h
00044 #define NLBeamColumn3d_h
00045 
00046 #include <Element.h>
00047 #include <Node.h>
00048 #include <Matrix.h>
00049 #include <Vector.h>
00050 #include <Channel.h>
00051 #include <SectionForceDeformation.h>
00052 #include <CrdTransf3d.h>
00053 
00054 #include <Response.h>
00055 
00057 class NLBeamColumn3d: public Element
00058 {
00059   public:
00061     NLBeamColumn3d ();
00063     NLBeamColumn3d (int tag, int nodeI, int nodeJ,  
00064                     int numSections, SectionForceDeformation *sectionPtrs[], 
00065                     CrdTransf3d &coordTransf, double massDensPerUnitLength = 0.0, 
00066       int maxNumIters = 1, double tolerance = 1e-10);
00067     
00069     ~NLBeamColumn3d();
00070 
00072     int getNumExternalNodes(void) const;
00074     const ID &getExternalNodes(void);
00075 
00077     int getNumDOF(void);
00078     
00080     void setDomain(Domain *theDomain);
00082     int commitState(void);
00084     int revertToLastCommit(void);        
00086     int revertToStart(void);
00088     int update(void);    
00089     
00091     const Matrix &getTangentStiff(void);
00093     const Matrix &getSecantStiff(void);    
00095     const Matrix &getDamp(void);    
00097     const Matrix &getMass(void);    
00098 
00100     void zeroLoad(void); 
00102     int addLoad(const Vector &load);    
00104     const Vector &getResistingForce(void);
00106     const Vector &getResistingForceIncInertia(void);            
00107     
00109     bool isSubdomain(void);
00110 
00112     int sendSelf(int cTag, Channel &theChannel);
00114     int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00116     int displaySelf(Renderer &theViewer, int displayMode, float fact);
00117 
00118     
00120     friend ostream &operator<<(ostream &s, NLBeamColumn3d &E);        
00122     void Print(ostream &s, int flag =0);    
00123 
00125     Response *setResponse(char **argv, int argc, Information &eleInformation);
00127     int getResponse(int responseID, Information &eleInformation);
00128     
00129   private:
00131     void getGlobalDispls(Vector &dg) const;
00133     void getGlobalAccels(Vector &ag) const;             
00135     void getForceInterpolatMatrix(double xi, Matrix &b, const ID &code);
00137     void getDistrLoadInterpolatMatrix(double xi, Matrix &bp, const ID &code);
00139     void compSectionDisplacements(Vector sectionCoords[], Vector sectionDispls[]) const;
00141     void setSectionInterpolation (void);
00143     void initializeSectionHistoryVariables (void);
00144     
00145     
00147  
00148     ID     connectedExternalNodes; 
00149     int    nSections;              // number of sections (integration 
00151     SectionForceDeformation **sections;          /// array of pointers to sections
00152     CrdTransf3d *crdTransf;        // pointer to coordinate tranformation object 
00154     double rho;                    /// mass density per unit length
00155     int    maxIters;               
00156     double tol;                    
00157 
00158     double L;                      
00159     int    initialFlag;            
00160     bool isTorsion;
00161  
00163     Node   *node1Ptr, *node2Ptr;   
00164 
00165     Matrix K;                      
00166     Matrix m;                      
00167     Matrix d;                      
00168     
00169     Vector P;                      
00170     Vector Pinert;                 
00171     Vector load;                   
00172 
00173     Vector prevDistrLoad;          
00174     Vector Uepr;                   
00175     Matrix kv;                     
00176     Vector Se;                     
00177 
00178     Vector distrLoadcommit;        
00179     Vector Uecommit;               
00180     Matrix kvcommit;               
00181     Vector Secommit;               
00182 
00183     Matrix *b;                     
00184     Matrix *bp;                    
00185 
00186     Matrix *fs;                    
00187     Vector *vs;                    
00188     Vector *Ssr;                   
00189  
00190     Vector *vscommit;              // array of commited section deformation vectors
00191 };
00192 
00193 #endif
00194 
00195 ÿ
Copyright Contact Us