XC Open source finite element analysis program
FiberSectionRepr.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.3 $
48 // $Date: 2003/02/14 23:01:37 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/section/FiberSectionRepr.h,v $
50 
51 
52 // File: FiberSectionRepr.h
53 // Written by Remo M. de Souza (November 1998)
54 // modified by rms (July 1999) - doesn't prespecify number of regions and reinf. layers
55 // rms (August 1999) - add fibers to section for the analysis
56 // modified by lcpt (September 2006) - big modification.
57 
58 #ifndef FiberSectionRepr_h
59 #define FiberSectionRepr_h
60 
61 #include <material/section/repres/section/SectionRepres.h>
62 #include <material/section/repres/section/contenedor_fibras.h>
63 #include "utility/matrix/Vector.h"
64 #include "utility/matrix/Matrix.h"
65 #include <list>
66 
67 namespace XC {
68 class Fiber;
69 class FiberSection2d;
70 class FiberSection3d;
71 class FiberSectionGJ;
72 class FiberData;
73 
74 
76 //
79  {
80  private:
81  int sectID;
82  contenedor_fibras fibras;
83 
84  protected:
85  void vacia_fibras(void);
86  void copia_fibras(const FiberSectionRepr &otro);
87  public:
88  // constructor and destructor
89  FiberSectionRepr(int sectionID,MaterialLoader *ml);
92  virtual FiberSectionRepr *getCopy(void) const;
93  ~FiberSectionRepr(void);
94 
95  // edition functions
96  int addFiber(Fiber &theFiber);
97 
98  // inquiring functions
99  int getType(void) const;
100 
101  int getNumFibers(void) const;
102  FiberData getFiberData(void) const;
103  contenedor_fibras getFibras2d(void) const;
104  FiberSection2d getFiberSection2d(int secTag) const;
105  contenedor_fibras getFibras3d(void) const;
106  FiberSection3d getFiberSection3d(int secTag) const;
107  FiberSectionGJ getFiberSectionGJ(int secTag,const double &GJ) const;
108 
109  void Print(std::ostream &s, int flag =0);
110  friend std::ostream &operator<<(std::ostream &s, FiberSectionRepr &fiberSectionRepr);
111  };
112 } // end of XC namespace
113 #endif
114 
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: FiberSectionRepr.cpp:114
virtual FiberSectionRepr * getCopy(void) const
Virtual constructor.
Definition: FiberSectionRepr.cpp:99
std::list< Fiber * > contenedor_fibras
Contenedor de fibras.
Definition: contenedor_fibras.h:36
Fiber section model in a bi-dimensional space. Sections stiffness and internal forces are obtained by...
Definition: FiberSection2d.h:74
FiberData getFiberData(void) const
Returns cells and rebars fiber data.
Definition: FiberSectionRepr.cpp:138
Fiber data.
Definition: FiberData.h:49
Fiber section with torsional stiffness.
Definition: FiberSectionGJ.h:72
Fiber section representation.
Definition: FiberSectionRepr.h:78
FiberSectionRepr(int sectionID, MaterialLoader *ml)
Constructor.
Definition: FiberSectionRepr.cpp:82
Fiber section model in a three-dimensional space. Sections stiffness and internal forces are obtained...
Definition: FiberSection3d.h:72
int getNumFibers(void) const
Returns the number of fibers of hte section.
Definition: FiberSectionRepr.cpp:134
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Section fiber.
Definition: Fiber.h:89
FiberSectionRepr & operator=(const FiberSectionRepr &otro)
Assignment operator.
Definition: FiberSectionRepr.cpp:91
================================================================================
Definition: ContinuaReprComponent.h:34
Material distribution on a cross section.
Definition: SectionRepres.h:80