xc
ReinfBar.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 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.2 $
49 // $Date: 2003/02/14 23:01:37 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/section_geometry/reinfBar/ReinfBar.h,v $
51 
52 
53 // File: ReinfBar.h
54 //
55 // Written by Remo M. de Souza
56 // November 1998
57 
58 
59 #ifndef ReinfBar_h
60 #define ReinfBar_h
61 
62 #include "utility/matrix/Vector.h"
63 #include "material/section/repres/DiscretBase.h"
64 
65 class Pos2d;
66 
67 namespace XC {
68 class Matrix;
69 
73 //
75 //
77 class ReinfBar: public DiscretBase
78  {
79  private:
80  double diameter;
81  double area;
82  Vector posit;
83  public:
84  ReinfBar(Material *mat= nullptr);
85  ReinfBar(const double &barArea, Material *, const Vector &position);
86  ReinfBar(const double &barArea,const double &barDiameter, Material *, const Vector &);
87  virtual ReinfBar *getCopy(void) const;
88  virtual ~ReinfBar(void) {}
89 
90  // edition functions
91 
92  void setDiameter(const double &barDiameter);
93  void setArea(const double &barArea);
94  void setPosition(const Vector &position);
95 
96  // reinforcing bar inquiring functions
97 
98  double getDiameter(void) const;
99  double getArea(void) const;
100  double Iy(void) const;
101  double Iz(void) const;
102  double Pyz(void) const;
103  double Ix(void) const;
104  double Theta_p(void) const;
105  const Vector &IAxisDir_a(void) const;
106  const Vector &IAxisDir_b(void) const;
107  double getI1(void) const;
108  double getI2(void) const;
109  double getI(const unsigned short int &i,const unsigned short int &j) const;
110  double getI(const unsigned short int i,const unsigned short int j,const Pos2d &o) const;
111  double getI(const Pos2d &O,const Vector &e) const;
112  double getIO(const Pos2d &o) const;
113  Matrix &getI(void) const;
114  Matrix &getI(const Pos2d &o) const;
115 
116  const Vector &getPosition(void) const;
117  Pos2d getPos2d(void) const;
118 
119  double getMaxY(void) const;
120  double getMaxZ(void) const;
121  double getMinY(void) const;
122  double getMinZ(void) const;
123 
124  virtual void Print(std::ostream &s, int flag =0) const;
125 
126  };
127 } // end of XC namespace
128 
129 
130 #endif
131 
Float vector abstraction.
Definition: Vector.h:94
const Vector & IAxisDir_a(void) const
Return the direcction of one of the principal axis of inertia (we don&#39;t know yet if it&#39;s the major on...
Definition: ReinfBar.cpp:126
double Ix(void) const
Return the moment of inertia polar with respect to centroid in local coordinates. ...
Definition: ReinfBar.cpp:117
Posición en dos dimensiones.
Definition: Pos2d.h:41
double Iy(void) const
Return the moment of inertia with respect to the axis parallel to y axis through the centroid...
Definition: ReinfBar.cpp:105
Base class for materials.
Definition: Material.h:93
double getDiameter(void) const
Return the bar diameter.
Definition: ReinfBar.cpp:97
virtual ReinfBar * getCopy(void) const
Copy constructor.
Definition: ReinfBar.cpp:81
double getArea(void) const
Return the bar area.
Definition: ReinfBar.cpp:101
const Vector & IAxisDir_b(void) const
Return the direcction of the other (with respect to IAxisDir_a) principal axis of inertia (we don&#39;t k...
Definition: ReinfBar.cpp:137
double Theta_p(void) const
Return the angle that defines a principal axis of inertia.
Definition: ReinfBar.cpp:121
double getIO(const Pos2d &o) const
Return the polar moment of inertia with respect to the point o.
Definition: ReinfBar.cpp:195
double getI2(void) const
Return the principal minor axis of inertia.
Definition: ReinfBar.cpp:159
double Iz(void) const
Return the moment of inertia with respect to the axis parallel to z axis through the centroid...
Definition: ReinfBar.cpp:109
double getI1(void) const
Return the principal major axis of inertia.
Definition: ReinfBar.cpp:155
Matrix & getI(void) const
Return the inertia tensor computed with respect to the object centroid.
Definition: ReinfBar.cpp:199
ReinfBar(Material *mat=nullptr)
Constructor.
Definition: ReinfBar.cpp:67
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
double Pyz(void) const
Return the product of inertia with respect to the parallel axes through the centroid.
Definition: ReinfBar.cpp:113
Reinforcing bar.
Definition: ReinfBar.h:77
Base class for cross-section discretization.
Definition: DiscretBase.h:46