FiberSectionRepr.hGo 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.3 $ 00022 // $Date: 2003/02/14 23:01:37 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/section/FiberSectionRepr.h,v $ 00024 00025 00026 // File: FiberSectionRepr.h 00027 // Written by Remo M. de Souza (November 1998) 00028 // modified by rms (July 1999) - doesn't prespecify number of patches and reinf. layers 00029 // rms (August 1999) - add fibers to section for the analysis 00030 00031 #ifndef FiberSectionRepr_h 00032 #define FiberSectionRepr_h 00033 00034 #include <SectionRepres.h> 00035 00036 class Patch; 00037 class ReinfLayer; 00038 class Fiber; 00039 00040 #define SEC_TAG_FiberSection 1 00041 00042 class FiberSectionRepr: public SectionRepres 00043 { 00044 public: 00045 00046 // constructor and destructor 00047 00048 FiberSectionRepr(int sectionID); 00049 FiberSectionRepr(int sectionID, int maxNumPatches, int maxNumReinfLayers); 00050 FiberSectionRepr(int sectionID, int numPatches, Patch **patches, 00051 int numReinfLayers, ReinfLayer **reinfLayers); 00052 00053 ~FiberSectionRepr(); 00054 00055 // edition functions 00056 void setNumPatches (int numPatches); 00057 int setPatches (Patch **patches); 00058 void setNumReinfLayers (int numReinfLayers); 00059 int setReinfLayers (ReinfLayer **reinfLayers); 00060 00061 int addPatch (const Patch & aPatch); 00062 int addReinfLayer (const ReinfLayer & aReinfLayer); 00063 int addFiber(Fiber &theFiber); 00064 00065 // inquiring functions 00066 int getType(void) const; 00067 00068 int getNumPatches (void) const; 00069 int getNumReinfLayers (void) const; 00070 int getNumFibers(void) const; 00071 Patch **getPatches (void) const; 00072 ReinfLayer **getReinfLayers (void) const; 00073 Fiber **getFibers(void) const; 00074 00075 void Print(OPS_Stream &s, int flag =0); 00076 friend OPS_Stream &operator<<(OPS_Stream &s, FiberSectionRepr &fiberSectionRepr); 00077 00078 00079 protected: 00080 00081 private: 00082 00083 int sectID; 00084 int maxNPatches; // maximum number of patches that can be stored 00085 int maxNReinfLayers; // maximum number of reinforcing layers that can be stored 00086 Patch **patch; // patch array (change to linked list later!!!!) 00087 ReinfLayer **reinfLayer; // reinforcing bar array (change to linked 00088 // list later!!!!!!!!) 00089 int nPatches; // current number of patches 00090 int nReinfLayers; // current number of reinforcing layers 00091 00092 int numFibers; // number of fibers in the section 00093 Fiber **theFibers; // array of pointers to fibers 00094 // that form the section 00095 int sizeFibers; // size of the fibers array 00096 }; 00097 00098 00099 #endif 00100 |