FiberSectionGJ.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.5 $
00022 // $Date: 2006/09/05 23:29:17 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/FiberSectionGJ.h,v $
00024                                                                         
00025 // Written: fmk
00026 // Created: 04/01
00027 //
00028 // Description: This file contains the class definition for 
00029 // FiberSectionGJ.h. FiberSectionGJ provides the abstraction of a 
00030 // 3d beam section discretized by fibers. The section stiffness and
00031 // stress resultants are obtained by summing fiber contributions.
00032 
00033 #ifndef FiberSectionGJ_h
00034 #define FiberSectionGJ_h
00035 
00036 #include <SectionForceDeformation.h>
00037 #include <Vector.h>
00038 #include <Matrix.h>
00039 
00040 class UniaxialMaterial;
00041 class Fiber;
00042 class Response;
00043 
00044 class FiberSectionGJ : public SectionForceDeformation
00045 {
00046  public:
00047   FiberSectionGJ(); 
00048   FiberSectionGJ(int tag, int numFibers, Fiber **fibers, double GJ = 1.0e10); 
00049   ~FiberSectionGJ();
00050 
00051     const char *getClassType(void) const {return "FiberSectionGJ";};
00052   
00053   int   setTrialSectionDeformation(const Vector &deforms); 
00054   const Vector &getSectionDeformation(void);
00055   
00056   const Vector &getStressResultant(void);
00057   const Matrix &getSectionTangent(void);
00058   const Matrix &getInitialTangent(void);
00059   
00060   int   commitState(void);
00061   int   revertToLastCommit(void);    
00062   int   revertToStart(void);
00063   
00064   SectionForceDeformation *getCopy(void);
00065   const ID &getType (void);
00066   int getOrder (void) const;
00067   
00068   int sendSelf(int cTag, Channel &theChannel);
00069   int recvSelf(int cTag, Channel &theChannel, 
00070                FEM_ObjectBroker &theBroker);
00071   void Print(OPS_Stream &s, int flag = 0);
00072   
00073   Response *setResponse(const char **argv, int argc, Information &info, OPS_Stream &s);
00074   int getResponse(int responseID, Information &info);
00075   
00076   int addFiber(Fiber &theFiber);
00077   
00078   int setParameter(const char **argv, int argc, Parameter &param);
00079   
00080  protected:
00081   
00082  private:
00083   int numFibers;                   // number of fibers in the section
00084   UniaxialMaterial **theMaterials; // array of pointers to materials
00085   double *matData;               // data for the materials [yloc and area]
00086   double kData[6];               // data for ks matrix 
00087   double sData[3];               // data for s vector 
00088   
00089   double yBar;       // Section centroid
00090   double zBar;
00091   
00092   Vector e;          // trial section deformations 
00093   Vector eCommit;    // committed section deformations 
00094   
00095   static ID code;
00096   static Vector s;         // section resisting forces
00097   static Matrix ks;        // section stiffness
00098   
00099   double GJ;
00100 };
00101 
00102 #endif

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