xc
SingleBar.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 //SingleBar.h
28 
29 #ifndef SingleBar_h
30 #define SingleBar_h
31 
32 #include <material/section/repres/geom_section/reinfLayer/ReinfLayer.h>
33 #include <utility/matrix/Vector.h>
34 
35 namespace XC {
36 class ReinfBar;
37 
39 //
41 class SingleBar : public ReinfLayer
42  {
43  private:
44  Vector posit;
45  protected:
46 
47 
48  friend class ListReinfLayer;
49  friend class ReinfLayer;
51  SingleBar(ListReinfLayer *,Material *mat, double reinfBarArea, const Vector &position);
52  SingleBar(const ReinfBar &bar);
53  ReinfLayer *getCopy(void) const;
54 
55  public:
56  // edition functions
57  void setPosition(const Vector &);
58 
59  // inquiring functions
60  const VectorReinfBar &getReinfBars(void) const;
61 
62  const Vector &getPosition(void) const;
63 
64  double getMaxY(void) const;
65  double getMaxZ(void) const;
66  double getMinY(void) const;
67  double getMinZ(void) const;
68 
69 
70  void Print(std::ostream &s, int flag =0) const;
71  };
72 } // end of XC namespace
73 
74 
75 #endif
76 
double getMinY(void) const
Returns the min y coordinate.
Definition: SingleBar.cc:63
Float vector abstraction.
Definition: Vector.h:93
ReinfLayer * getCopy(void) const
Virtual constructor.
Definition: SingleBar.cc:82
void setPosition(const Vector &)
Sets the position of the bar.
Definition: SingleBar.cc:53
double getMinZ(void) const
Returns the min z coordinate.
Definition: SingleBar.cc:66
Base class for materials.
Definition: Material.h:91
Rebar layer.
Definition: ReinfLayer.h:73
double getMaxY(void) const
Returns the max y coordinate.
Definition: SingleBar.cc:57
SingleBar(ListReinfLayer *, Material *mat)
Constructor.
Definition: SingleBar.cc:39
Reinforcement bars vector.
Definition: VectorReinfBar.h:47
Single rebar (not included in a reinforcement layer).
Definition: SingleBar.h:41
const VectorReinfBar & getReinfBars(void) const
Returns a rebars array.
Definition: SingleBar.cc:70
Reinf layer container (list).
Definition: ListReinfLayer.h:53
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Reinforcing bar.
Definition: ReinfBar.h:76
double getMaxZ(void) const
Returns the max z coordinate.
Definition: SingleBar.cc:60
void Print(std::ostream &s, int flag=0) const
Displays information about the bar.
Definition: SingleBar.cc:86
const Vector & getPosition(void) const
Returns the position of the bar.
Definition: SingleBar.cc:78