xc
ListReinfLayer.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //ListReinfLayer.h
29 
30 #ifndef ListReinfLayer_h
31 #define ListReinfLayer_h
32 
33 #include <set>
34 #include <list>
35 #include "material/section/repres/SectionMassProperties.h"
36 
37 class Pos2d;
38 class Polygon2d;
39 class HalfPlane2d;
40 class BND2d;
41 
42 namespace XC {
43 class Material;
44 class ReinfLayer;
45 class CircReinfLayer;
46 class StraightReinfLayer;
47 class SingleBar;
48 class MaterialHandler;
49 class Vector;
50 class Matrix;
51 class SectionGeometry;
52 
54 //
56 class ListReinfLayer: public std::list<ReinfLayer *>, public SectionMassProperties
57  {
58  public:
59  typedef std::list<ReinfLayer *> l_reg;
60  typedef l_reg::reference reference;
61  typedef l_reg::const_reference const_reference;
62  typedef l_reg::iterator iterator;
63  typedef l_reg::const_iterator const_iterator;
64  private:
65  void free_mem(void);
66  void free_mem(const size_t i);
67  void copy(const ListReinfLayer &other);
68  protected:
69 
71 
72  friend class SectionGeometry;
76  public:
77  ~ListReinfLayer(void);
78 
79  ReinfLayer *push_back(const ReinfLayer &reg);
80 
81  void clear(void);
82 
83  const SectionGeometry *getSectionGeometry(void) const;
84  double getCover(void) const;
85 
86  StraightReinfLayer *newStraightReinfLayer(const std::string &);
87  CircReinfLayer *newCircReinfLayer(const std::string &);
88  SingleBar *newReinfBar(const std::string &);
89 
90 
91  size_t getNumReinfBars(void) const;
92 
93  std::set<const Material *>getMaterials(void) const;
94  std::set<Material *>getMaterials(void);
95  boost::python::list getMaterialsPy(void);
96 
97  void getBarrasIn(const Polygon2d &,ListReinfLayer &,bool );
98  void getBarrasIn(const HalfPlane2d &,ListReinfLayer &,bool );
99 
100  BND2d getBnd(void) const;
101 
102  double getAreaGrossSection(void) const;
104  double getIyGrossSection(void) const;
105  double getIzGrossSection(void) const;
106  double getPyzGrossSection(void) const;
107 
108  Vector getCenterOfMassHomogenizedSection(const double &E0) const;
109  double getAreaHomogenizedSection(const double &E0) const;
110  double getIyHomogenizedSection(const double &E0) const;
111  double getIzHomogenizedSection(const double &E0) const;
112  double getPyzHomogenizedSection(const double &E0) const;
113 
114  void Print(std::ostream &s) const;
115  };
116 
117 } // end of XC namespace
118 
119 
120 #endif
MaterialHandler * material_handler
Material definition handler (searching,...).
Definition: ListReinfLayer.h:70
"boundary" en dos dimensiones.
Definition: BND2d.h:38
Float vector abstraction.
Definition: Vector.h:94
double getAreaHomogenizedSection(const double &E0) const
Returns the homogenized area of the regions.
Definition: ListReinfLayer.cc:245
std::set< const Material * > getMaterials(void) const
Return a list of const pointers to the different reinforcing layers materials.
Definition: ListReinfLayer.cc:161
Set of rebars distributed along a segment.
Definition: StraightReinfLayer.h:72
SingleBar * newReinfBar(const std::string &)
Returns a single bar with the material with the identifier being passed as parameter.
Definition: ListReinfLayer.cc:103
Posición en dos dimensiones.
Definition: Pos2d.h:41
ListReinfLayer & operator=(const ListReinfLayer &)
Assignment operator.
Definition: ListReinfLayer.cc:71
double getPyzGrossSection(void) const
Product of inertia of the gross section about y and z axis through its centroid.
Definition: ListReinfLayer.cc:368
Arc of a circle shaped reinforcement layer.
Definition: CircReinfLayer.h:71
ReinfLayer * push_back(const ReinfLayer &reg)
Adds a rebar layer to the container.
Definition: ListReinfLayer.cc:120
Reinforcement bars layer.
Definition: ReinfLayer.h:75
~ListReinfLayer(void)
Destructor.
Definition: ListReinfLayer.cc:112
void getBarrasIn(const Polygon2d &, ListReinfLayer &, bool)
Returns the rebar subset which center lies inside the polygon.
Definition: ListReinfLayer.cc:210
double getIyGrossSection(void) const
Inertia of the gross section about an axis parallel to y through its centroid.
Definition: ListReinfLayer.cc:340
double getIyHomogenizedSection(const double &E0) const
Returns homogenized moment of inertia of the cross-section with respecto to the axis parallel to y pa...
Definition: ListReinfLayer.cc:270
size_t getNumReinfBars(void) const
Returns the total number of cells (reinforcing bars).
Definition: ListReinfLayer.cc:151
Vector getCenterOfMassGrossSection(void) const
Returns gross section centroid position.
Definition: ListReinfLayer.cc:324
double getPyzHomogenizedSection(const double &E0) const
Returns homogenized product of inertia of the cross-section with respecto to the axis parallel to y a...
Definition: ListReinfLayer.cc:300
const SectionGeometry * getSectionGeometry(void) const
Returns a reference to the SectionGeometry object that owns this one.
Definition: ListReinfLayer.cc:129
double getAreaGrossSection(void) const
Returns region&#39;s gross section area.
Definition: ListReinfLayer.cc:315
void clear(void)
Erases the reinforcement layers.
Definition: ListReinfLayer.cc:116
Polígono en dos dimensiones.
Definition: Polygon2d.h:38
BND2d getBnd(void) const
Return the reinforcement layers boundary.
Definition: ListReinfLayer.cc:230
Single rebar (not included in a reinforcement layer).
Definition: SingleBar.h:42
Reinf layer container (list).
Definition: ListReinfLayer.h:56
double getCover(void) const
Returns the minimum value of the bars concrete cover.
Definition: ListReinfLayer.cc:139
double getIzHomogenizedSection(const double &E0) const
Returns homogenized moment of inertia of the cross-section with respecto to the axis parallel to z pa...
Definition: ListReinfLayer.cc:285
Material handler (definition, searching,...).
Definition: MaterialHandler.h:46
double getIzGrossSection(void) const
Inertia of the gross section about an axis parallel to z through its centroid.
Definition: ListReinfLayer.cc:354
boost::python::list getMaterialsPy(void)
Return a Python list of pointers to the different reinforcing layers materials.
Definition: ListReinfLayer.cc:191
Half plane in a two-dimensional space.
Definition: HalfPlane2d.h:38
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Cross-section representation able to return mechanical propertis a area, moments of inertia...
Definition: SectionMassProperties.h:51
ListReinfLayer(SectionGeometry *, MaterialHandler *ml)
Constructor.
Definition: ListReinfLayer.cc:62
Cross section geometry.
Definition: SectionGeometry.h:66