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 <list>
34 #include "material/section/repres/SectionMassProperties.h"
35 
36 class Pos2d;
37 class Polygon2d;
38 class HalfPlane2d;
39 
40 namespace XC {
41 
42 class ReinfLayer;
43 class CircReinfLayer;
44 class StraightReinfLayer;
45 class SingleBar;
46 class MaterialHandler;
47 class Vector;
48 class Matrix;
49 class SectionGeometry;
50 
52 //
54 class ListReinfLayer: public std::list<ReinfLayer *>, public SectionMassProperties
55  {
56  public:
57  typedef std::list<ReinfLayer *> l_reg;
58  typedef l_reg::reference reference;
59  typedef l_reg::const_reference const_reference;
60  typedef l_reg::iterator iterator;
61  typedef l_reg::const_iterator const_iterator;
62  private:
63  void free_mem(void);
64  void free_mem(const size_t i);
65  void copy(const ListReinfLayer &other);
66  protected:
67 
69 
70  friend class SectionGeometry;
74  public:
75  ~ListReinfLayer(void);
76 
77  ReinfLayer *push_back(const ReinfLayer &reg);
78 
79  void clear(void);
80 
81  const SectionGeometry *getSectionGeometry(void) const;
82  double getCover(void) const;
83 
84  StraightReinfLayer *newStraightReinfLayer(const std::string &);
85  CircReinfLayer *newCircReinfLayer(const std::string &);
86  SingleBar *newReinfBar(const std::string &);
87 
88 
89  size_t getNumReinfBars(void) const;
90 
91  void getBarrasIn(const Polygon2d &,ListReinfLayer &,bool );
92  void getBarrasIn(const HalfPlane2d &,ListReinfLayer &,bool );
93 
94  double getAreaGrossSection(void) const;
96  double getIyGrossSection(void) const;
97  double getIzGrossSection(void) const;
98  double getPyzGrossSection(void) const;
99 
100  Vector getCenterOfMassHomogenizedSection(const double &E0) const;
101  double getAreaHomogenizedSection(const double &E0) const;
102  double getIyHomogenizedSection(const double &E0) const;
103  double getIzHomogenizedSection(const double &E0) const;
104  double getPyzHomogenizedSection(const double &E0) const;
105 
106  void Print(std::ostream &s) const;
107  };
108 
109 } // end of XC namespace
110 
111 
112 #endif
MaterialHandler * material_handler
Material definition handler (searching,...).
Definition: ListReinfLayer.h:68
Float vector abstraction.
Definition: Vector.h:94
double getAreaHomogenizedSection(const double &E0) const
Returns the homogenized area of the regions.
Definition: ListReinfLayer.cc:182
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:305
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:74
~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:162
double getIyGrossSection(void) const
Inertia of the gross section about an axis parallel to y through its centroid.
Definition: ListReinfLayer.cc:277
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:207
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:261
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:237
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:252
void clear(void)
Erases the reinforcement layers.
Definition: ListReinfLayer.cc:116
Polígono en dos dimensiones.
Definition: Polygon2d.h:38
Single rebar (not included in a reinforcement layer).
Definition: SingleBar.h:42
Reinf layer container (list).
Definition: ListReinfLayer.h:54
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:222
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:291
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:65