NLBeamColumn2d.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.16 $
00022 // $Date: 2004/06/07 23:42:46 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/nonlinearBeamColumn/element/NLBeamColumn2d.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/model/element/NLBeamColumn2d.h
00027 //
00028 // Written by Remo Magalhaes de Souza on  09/98 
00029 // Revised: rms 10/98 (uses section class)
00030 //          rms 01/99 (with distributed loads)
00031 //          rms 07/99 (using setDomain)
00032 //          rms 08/99 (included P-Delta effect)
00033 //          fmk 10/99 setResponse() & getResponse()
00034 //          rms 11/99 (included rigid joint offsets)
00035 //          rms 04/00 (using transformation class w/ linear or corotational transf)
00036 //          rms 04/00 (generalized to iterative/non-iterative algorithm)
00037 //          mhs 06/00 (using new section class w/ variable dimensions)
00038 //          rms 06/00 (torsional stiffness considered at the section level)
00039 //          rms 06/00 (making copy of the sections)
00040 //          rms 06/00 (storing section history variables at the element level)
00041 //
00042 //
00043 // Purpose: This file contains the class definition for NLBeamColumn2d.
00044 // NLBeamColumn2d is a materially nonlinear flexibility based frame element.
00045 
00046 #ifndef NLBeamColumn2d_h
00047 #define NLBeamColumn2d_h
00048 
00049 #include <Element.h>
00050 #include <Node.h>
00051 #include <Matrix.h>
00052 #include <Vector.h>
00053 #include <Channel.h>
00054 #include <SectionForceDeformation.h>
00055 #include <CrdTransf2d.h>
00056 #include <GaussLobattoQuadRule1d01.h>
00057 
00058 class Response;
00059 
00060 class NLBeamColumn2d: public Element
00061 {
00062   public:
00063     NLBeamColumn2d ();
00064     NLBeamColumn2d (int tag, int nodeI, int nodeJ, 
00065                     int numSections, SectionForceDeformation *sectionPtrs[], 
00066                     CrdTransf2d &coordTransf, double massDensPerUnitLength = 0.0, 
00067                     int maxNumIters = 10, double tolerance = 1e-12, int maxSub = 10);
00068     
00069     ~NLBeamColumn2d();
00070 
00071     int getNumExternalNodes(void) const;
00072     const ID &getExternalNodes(void);
00073     Node **getNodePtrs(void);
00074 
00075     int getNumDOF(void);
00076     void setDomain(Domain *theDomain);
00077 
00078     int commitState(void);
00079     int revertToLastCommit(void);        
00080     int revertToStart(void);
00081     int update(void);    
00082     
00083     const Matrix &getTangentStiff(void);
00084     const Matrix &getInitialStiff(void);
00085     const Matrix &getMass(void);
00086 
00087     void zeroLoad(void);        
00088     int addLoad(ElementalLoad *theLoad, double loadFactor);
00089     int addInertiaLoadToUnbalance(const Vector &accel);
00090 
00091     const Vector &getResistingForce(void);
00092     const Vector &getResistingForceIncInertia(void);            
00093     
00094     bool isSubdomain(void);
00095 
00096     int sendSelf(int cTag, Channel &theChannel);
00097     int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00098     int displaySelf(Renderer &theViewer, int displayMode, float fact);        
00099 
00100     friend OPS_Stream &operator<<(OPS_Stream &s, NLBeamColumn2d &E);        
00101     void Print(OPS_Stream &s, int flag =0);    
00102 
00103     Response *setResponse(const char **argv, int argc, Information &eleInformation);
00104     int getResponse(int responseID, Information &eleInformation);
00105     
00106     int setParameter(const char **argv, int argc, Information &info);
00107     int updateParameter(int parameterID, Information &info);
00108 
00109   private:
00110     void getGlobalDispls(Vector &dg) const;
00111     void getGlobalAccels(Vector &ag) const;      
00112     void getForceInterpolatMatrix(double xi, Matrix &b, const ID &code);
00113     void getDistrLoadInterpolatMatrix(double xi, Matrix &bp, const ID &code);
00114     void compSectionDisplacements(Vector sectionCoords[], Vector sectionDispls[]) const;
00115     void initializeSectionHistoryVariables (void);
00116  
00117 
00118     // internal data
00119     ID     connectedExternalNodes; // tags of the end nodes
00120     int    nSections;              // number of sections (integration 
00121                                    // points) along the element
00122     SectionForceDeformation **sections;          // array of pointers to sections
00123     CrdTransf2d *crdTransf;        // pointer to coordinate tranformation object 
00124                                    // (performs the transformation between the global and basic system)
00125     double rho;                    // mass density per unit length
00126     int    maxIters;               // maximum number of local iterations
00127     double tol;                    // tolerance for relative energy norm for local iterations
00128 
00129     // THESE SHOULD BE REMOVED!!! -- MHS
00130     double cosTheta, sinTheta;     // cossine directors
00131 
00132     int    initialFlag;            // indicates if the element has been initialized
00133     
00134     Node *theNodes[2];
00135 
00136     Vector load;                   // equivalent nodal loads ????
00137 
00138     Matrix kv;                     // stiffness matrix in the basic system 
00139     Vector Se;                     // element resisting forces in the basic system
00140 
00141     Matrix kvcommit;               // commited stiffness matrix in the basic system
00142     Vector Secommit;               // commited element end forces in the basic system
00143 
00144     Matrix *fs;                    // array of section flexibility matrices
00145     Vector *vs;                    // array of section deformation vectors
00146     Vector *Ssr;                   // array of section resisting force vectors
00147 
00148     Vector *vscommit;              // array of commited section deformation vectors
00149 
00150     Matrix *sp;  // Applied section forces due to element loads, 3 x nSections
00151     double p0[3]; // Reactions in the basic system due to element loads
00152 
00153     Matrix *Ki;
00154     int maxSubdivisions;
00155 
00156     
00157     static Matrix theMatrix;
00158     static Vector theVector;
00159     static GaussLobattoQuadRule1d01 quadRule;
00160     static double workArea[];
00161 
00162     static Vector *vsSubdivide; 
00163     static Matrix *fsSubdivide; 
00164     static Vector *SsrSubdivide;
00165     static int maxNumSections;
00166 };
00167 
00168 #endif
00169 
00170 

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