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