xc
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 HalfPlane2d;
63 class Polygon2d;
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 getBarrasIn(const Polygon2d &,ListReinfLayer &,bool );
101  void getBarrasIn(const HalfPlane2d &,ListReinfLayer &,bool );
102 
103  const GeomSection *getGeomSection(void) const;
104  double getCover(void) const;
105  Vector getCenterOfMass(void) const;
106 
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 
Cross section geometry.
Definition: GeomSection.h:63
Float vector abstraction.
Definition: Vector.h:93
VectorReinfBar & getReinfBars(void)
Return a vector containing the bars of the layer.
Definition: ReinfLayer.cpp:151
double getArea(void) const
Return the area of the bars.
Definition: ReinfLayer.h:108
ReinfLayer(ListReinfLayer *, Material *m)
Constructor.
Definition: ReinfLayer.cpp:75
void getBarrasIn(const Polygon2d &, ListReinfLayer &, bool)
Returns the barras contenidas total o parcialmente en el polígono.
Definition: ReinfLayer.cpp:127
virtual int getNumReinfBars(void) const
Returns the number of bars of the layer.
Definition: ReinfLayer.cpp:158
Base class for materials.
Definition: Material.h:91
Rebar layer.
Definition: ReinfLayer.h:73
virtual void setReinfBarArea(double reinfBarArea)
Sets the bars area.
Definition: ReinfLayer.cpp:169
virtual void setReinfBarDiameter(double reinfBarDiameter)
Sets bars diameter.
Definition: ReinfLayer.cpp:162
Reinforcement bars vector.
Definition: VectorReinfBar.h:47
const GeomSection * getGeomSection(void) const
Returns a reference to the (GeomSection) owner object.
Definition: ReinfLayer.cpp:90
Reinf layer container (list).
Definition: ListReinfLayer.h:53
virtual void Print(std::ostream &s, int flag=0) const
Imprime.
Definition: ReinfLayer.cpp:181
virtual const double & getReinfBarArea(void) const
Returns the bars area.
Definition: ReinfLayer.cpp:177
virtual const double & getReinfBarDiameter(void) const
Returns the bars diameter.
Definition: ReinfLayer.cpp:173
Vector getCenterOfMass(void) const
Returns the reinforcement layer centroid.
Definition: ReinfLayer.cpp:120
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
double getCover(void) const
Returns the minimum value for rebar cover.
Definition: ReinfLayer.cpp:100
Base class for cross-section discretization.
Definition: DiscretBase.h:45
virtual void setNumReinfBars(int numReinfBars)
Set the number or rebars in the layer.
Definition: ReinfLayer.cpp:86