CorotTrussSection.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.7 $
00022 // $Date: 2006/08/04 19:13:02 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/truss/CorotTrussSection.h,v $
00024 
00025 #ifndef CorotTrussSection_h
00026 #define CorotTrussSection_h
00027 
00028 // Written: MHS 
00029 // Created: May 2001
00030 //
00031 // Description: This file contains the class definition for CorotTrussSection,
00032 // a small strain, large displacement corotational space truss element,
00033 // as described by Crisfield in "Nonlinear Finite Element Analysis of
00034 // Solids and Structures", Vol. 1, 1991, J.T. Wiley.
00035 
00036 #include <Element.h>
00037 #include <Matrix.h>
00038 #include <Vector.h>
00039 
00040 class Node;
00041 class Channel;
00042 class SectionForceDeformation;
00043 
00044 class CorotTrussSection : public Element
00045 {
00046   public:
00047     CorotTrussSection(int tag, int dim,
00048           int Nd1, int Nd2, 
00049           SectionForceDeformation &theMaterial,
00050           double rho=0.0);
00051     
00052     CorotTrussSection();    
00053     ~CorotTrussSection();
00054 
00055     const char *getClassType(void) const {return "CorotTrussSection";};
00056 
00057     // public methods to obtain inforrmation about dof & connectivity    
00058     int getNumExternalNodes(void) const;
00059     const ID &getExternalNodes(void);
00060     Node **getNodePtrs(void);
00061 
00062     int getNumDOF(void);        
00063     void setDomain(Domain *theDomain);
00064 
00065     // public methods to set the state of the element    
00066     int commitState(void);
00067     int revertToLastCommit(void);        
00068     int revertToStart(void);        
00069     int update(void);
00070     
00071     // public methods to obtain stiffness, mass, damping and residual information    
00072     const Matrix &getTangentStiff(void);
00073     const Matrix &getInitialStiff(void);
00074     const Matrix &getMass(void);
00075 
00076     void zeroLoad(void);        
00077     int addLoad(ElementalLoad *theLoad, double loadFactor);
00078     int addInertiaLoadToUnbalance(const Vector &accel);
00079 
00080     const Vector &getResistingForce(void);
00081     const Vector &getResistingForceIncInertia(void);            
00082 
00083     // public methods for element output
00084     int sendSelf(int commitTag, Channel &theChannel);
00085     int recvSelf(int commitTag, Channel &theChannel,
00086                  FEM_ObjectBroker &theBroker);
00087     int displaySelf(Renderer &theViewer, int displayMode, float fact);    
00088     void Print(OPS_Stream &s, int flag =0);    
00089 
00090     Response *setResponse(const char **argv, int argc, Information &eleInfo, OPS_Stream &s);
00091     int getResponse(int responseID, Information &eleInformation);
00092 
00093   protected:
00094     
00095   private:
00096    
00097     // private attributes - a copy for each object of the class
00098     SectionForceDeformation *theSection;  // pointer to a material
00099     ID  connectedExternalNodes;     // contains the tags of the end nodes
00100     int numDOF;                     // number of dof for CorotTrussSection
00101     int numDIM;                     // number of dimensions
00102 
00103     double Lo;      // initial length of truss
00104     double Ln;      // current length of truss
00105     double d21[3];  // current displacement offsets in basic system
00106     double rho;     // mass density per unit length
00107 
00108     Node *theNodes[2];
00109 
00110     Matrix R;   // Rotation matrix
00111 
00112     Matrix *theMatrix;
00113 
00114     static Matrix M2;
00115     static Matrix M4;
00116     static Matrix M6;
00117     static Matrix M12;
00118     
00119     Vector *theVector;
00120 
00121     static Vector V2;
00122     static Vector V4;
00123     static Vector V6;
00124     static Vector V12;
00125 };
00126 
00127 #endif
00128 
00129 
00130 
00131 

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