XC Open source finite element analysis program
ReinfLayer.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/geom_section/reinfLayer/ReinfLayer.h,v $
50 
51 
52 // File: ReinfLayer.h
53 // Written by Remo M. de Souza
54 // December 1998
55 
56 #ifndef ReinfLayer_h
57 #define ReinfLayer_h
58 
59 #include "material/section/repres/DiscretBase.h"
60 #include <material/section/repres/geom_section/reinfBar/VectorReinfBar.h>
61 
62 class Semiplano2d;
63 class Poligono2d;
64 
65 namespace XC {
66 class ReinfBar;
67 class ListReinfLayer;
68 class GeomSection;
69 
71 //
73 class ReinfLayer: public DiscretBase
74  {
75  private:
76  int nReinfBars;
77  double barDiam;
78  double area;
79  protected:
80  mutable VectorReinfBar reinfBars;
81 
82 
83 
84  friend class ListReinfLayer;
86  ReinfLayer(ListReinfLayer *,Material *mat,const int &numReinfBars,const double &bDiam=0.0,const double &bArea= 0.0);
87  virtual ReinfLayer *getCopy(void) const= 0;
88  public:
89  virtual ~ReinfLayer(void) {}
90 
91  // edition functions
92  virtual void setNumReinfBars(int numReinfBars);
93  virtual int getNumReinfBars(void) const;
94  virtual void setReinfBarDiameter(double reinfBarDiameter);
95  virtual const double &getReinfBarDiameter(void) const;
96  virtual void setReinfBarArea(double reinfBarArea);
97  virtual const double &getReinfBarArea(void) const;
98 
99  // reinforcing layer inquiring functions
100  //void Cumplen(const std::string &,ListReinfLayer &,bool );
101  void getBarrasIn(const Poligono2d &,ListReinfLayer &,bool );
102  void getBarrasIn(const Semiplano2d &,ListReinfLayer &,bool );
103 
104  const GeomSection *getGeomSection(void) const;
105  double getRecubrimiento(void) const;
106  Vector getCdg(void) const;
107 
108  inline double getArea(void) const
109  { return area*nReinfBars; }
111  virtual const VectorReinfBar &getReinfBars(void) const= 0;
112 
113 
114  virtual void Print(std::ostream &s, int flag =0) const;
115  friend std::ostream &operator<<(std::ostream &, const ReinfLayer &);
116  };
117 
118 std::ostream &operator<<(std::ostream &s, const ReinfLayer &);
119 
120 } // end of XC namespace
121 
122 
123 #endif
124 
Vector de barras de armadura.
Definition: VectorReinfBar.h:47
virtual const double & getReinfBarDiameter(void) const
Returns the bars diameter.
Definition: ReinfLayer.cpp:186
Base class for materials.
Definition: Material.h:85
Definition: Vector.h:82
virtual void setReinfBarDiameter(double reinfBarDiameter)
Sets bars diameter.
Definition: ReinfLayer.cpp:175
double getRecubrimiento(void) const
Returns the minimum value for rebar cover.
Definition: ReinfLayer.cpp:100
virtual void setNumReinfBars(int numReinfBars)
Set the number or rebars in the layer.
Definition: ReinfLayer.cpp:86
virtual void Print(std::ostream &s, int flag=0) const
Imprime.
Definition: ReinfLayer.cpp:194
virtual const double & getReinfBarArea(void) const
Returns the bars area.
Definition: ReinfLayer.cpp:190
Vector getCdg(void) const
Returns the centro de gravedad de las armaduras.
Definition: ReinfLayer.cpp:120
virtual void setReinfBarArea(double reinfBarArea)
Sets the bars area.
Definition: ReinfLayer.cpp:182
Rebar layer.
Definition: ReinfLayer.h:73
VectorReinfBar & getReinfBars(void)
Returns a vector con las barras de la capa de armadura.
Definition: ReinfLayer.cpp:164
virtual int getNumReinfBars(void) const
Returns the número de barras de la capa.
Definition: ReinfLayer.cpp:171
ReinfLayer(ListReinfLayer *, Material *m)
Constructor.
Definition: ReinfLayer.cpp:75
const GeomSection * getGeomSection(void) const
Returns a reference to the (GeomSection) owner object.
Definition: ReinfLayer.cpp:90
Base class for cross-section discretization.
Definition: DiscretBase.h:45
Contenedor (lista) de capas de armadura.
Definition: ListReinfLayer.h:53
================================================================================
Definition: ContinuaReprComponent.h:34
void getBarrasIn(const Poligono2d &, ListReinfLayer &, bool)
Returns the barras contenidas total o parcialmente en el polígono.
Definition: ReinfLayer.cpp:140
Cross section geometry.
Definition: GeomSection.h:62