FiberSection3d.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.10 $
00022 // $Date: 2006/09/05 23:29:17 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/FiberSection3d.h,v $
00024                                                                         
00025 // Written: fmk
00026 // Created: 04/01
00027 //
00028 // Description: This file contains the class definition for 
00029 // FiberSection3d.h. FiberSection3d 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 FiberSection3d_h
00034 #define FiberSection3d_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 FiberSection3d : public SectionForceDeformation
00045 {
00046   public:
00047     FiberSection3d(); 
00048     FiberSection3d(int tag, int numFibers, Fiber **fibers); 
00049     ~FiberSection3d();
00050 
00051     const char *getClassType(void) const {return "FiberSection3d";};
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, 
00074                           Information &info,
00075                           OPS_Stream &s);
00076     int getResponse(int responseID, Information &info);
00077 
00078     int addFiber(Fiber &theFiber);
00079 
00080     int setParameter(const char **argv, int argc, Parameter &param);
00081 
00082   protected:
00083     
00084   private:
00085     int numFibers;                   // number of fibers in the section
00086     UniaxialMaterial **theMaterials; // array of pointers to materials
00087     double   *matData;               // data for the materials [yloc and area]
00088     double   kData[9];               // data for ks matrix 
00089     double   sData[3];               // data for s vector 
00090     
00091     double yBar;       // Section centroid
00092     double zBar;
00093   
00094     static ID code;
00095 
00096     Vector e;          // trial section deformations 
00097     Vector eCommit;    // committed section deformations 
00098     Vector *s;         // section resisting forces  (axial force, bending moment)
00099     Matrix *ks;        // section stiffness
00100 };
00101 
00102 #endif

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