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