FiberSection.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.6 $
00022 // $Date: 2003/02/25 23:33:33 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/FiberSection.h,v $
00024                                                                         
00025 // Written: MHS
00026 // Created: Aug 2000
00027 //
00028 // Description: This file contains the class definition for 
00029 // FiberSection.h. FiberSection provides the abstraction of a 
00030 // section discretized by fibers. The section stiffness and
00031 // stress resultants are obtained by summing fiber contributions.
00032 
00033 #ifndef FiberSection_h
00034 #define FiberSection_h
00035 
00036 #include <SectionForceDeformation.h>
00037 #include <Vector.h>
00038 #include <Matrix.h>
00039 
00040 class Fiber;
00041 class Response;
00042 
00043 class FiberSection : public SectionForceDeformation
00044 {
00045   public:
00046     FiberSection(); 
00047     FiberSection(int tag, int estNumFibers = 8); 
00048     FiberSection(int tag, int numFibers, Fiber **fibers); 
00049     ~FiberSection();
00050 
00051     int   setTrialSectionDeformation(const Vector &deforms); 
00052     const Vector &getSectionDeformation(void);
00053 
00054     const Vector &getStressResultant(void);
00055     const Matrix &getSectionTangent(void);
00056 
00057     int   commitState(void);
00058     int   revertToLastCommit(void);    
00059     int   revertToStart(void);
00060  
00061     SectionForceDeformation *getCopy(void);
00062     const ID &getType (void);
00063     int getOrder (void) const;
00064     
00065     int sendSelf(int cTag, Channel &theChannel);
00066     int recvSelf(int cTag, Channel &theChannel, 
00067                  FEM_ObjectBroker &theBroker);
00068     void Print(OPS_Stream &s, int flag = 0);
00069             
00070     Response *setResponse(const char **argv, int argc, Information &info);
00071     int getResponse(int responseID, Information &info);
00072     
00073     int addFiber(Fiber &theFiber);
00074 
00075   protected:
00076     
00077   private:
00078     int numFibers;  // number of fibers in the section
00079     Fiber **theFibers;   // array of pointers to fibers
00080                                  // that form the section
00081     int sizeFibers;              // size of the fibers array
00082     
00083         int order;
00084         ID *code;
00085 
00086     Vector *e;       // section trial deformations 
00087         Vector *eCommit;
00088     Vector *s;       // section resisting forces  (axial force, bending moment)
00089     Matrix *ks;       // section stiffness
00090 
00091         int otherDbTag;
00092 };
00093 
00094 #endif

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