XC Open source finite element analysis program
RegionSecc.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 //RegionSecc.h
28 // Written by Remo M. de Souza
29 // December 1998
30 
31 #ifndef RegionSecc_h
32 #define RegionSecc_h
33 
34 
35 #include <iostream>
36 #include "material/section/repres/DiscretBase.h"
37 #include <material/section/repres/cell/VectorCells.h>
38 
39 class Poligono2d;
40 class Semiplano2d;
41 class Pos2d;
42 
43 namespace XC {
44 class Cell;
45 class VectorCells;
46 class Vector;
47 class Matrix;
48 class RgSccPoligono;
49 
51 //
53 //
55 //
57 class RegionSecc: public DiscretBase
58  {
59  protected:
60  mutable VectorCells cells;
61 
62  public:
64  virtual ~RegionSecc(void) {}
65 
66  // inquiring functions
68  virtual int getNumCells(void) const= 0;
70  virtual const VectorCells &getCells(void) const= 0;
72  virtual RegionSecc *getCopy(void) const= 0;
73 
74  virtual Poligono2d getPoligono(void) const;
75  RgSccPoligono Interseccion(const Semiplano2d &sp) const;
76  const Vector &Cdg(void) const;
77  double Longitud(void) const;
78  double Area(void) const;
79  double Iy(void) const;
80  double Iz(void) const;
81  double Pyz(void) const;
82  double Ix(void) const;
83  double Theta_p(void) const;
84  const Vector &DirEjeI_a(void) const;
85  const Vector &DirEjeI_b(void) const;
86  double getI1(void) const;
87  double getI2(void) const;
88  double getI(const unsigned short int &i,const unsigned short int &j) const;
89  double getI(const unsigned short int i,const unsigned short int j,const Pos2d &o) const;
90  double getI(const Pos2d &O,const Vector &e) const;
91  double getIO(const Pos2d &o);
92  Matrix &getI(void) const;
93  Matrix &getI(const Pos2d &o) const;
94 
95 
96 
97  virtual void Print(std::ostream &s, int flag= 0) const =0;
98  friend std::ostream &operator<<(std::ostream &s, const RegionSecc &rg_scc);
99  };
100 } // end of XC namespace
101 
102 
103 #endif
104 
const Vector & DirEjeI_a(void) const
Return the direction of a principal axis of inertia (we don&#39;t know yet if it&#39;s the major one or the m...
Definition: RegionSecc.cc:101
double getI1(void) const
Returns the principal major axis of inertia.
Definition: RegionSecc.cc:132
Cells vector.
Definition: VectorCells.h:42
double Area(void) const
Returns the region area.
Definition: RegionSecc.cc:76
Base class for materials.
Definition: Material.h:85
double getIO(const Pos2d &o)
Returns the momento polar de inercia with respect to the point o.
Definition: RegionSecc.cc:159
const Vector & Cdg(void) const
Returns the coordenadas of the centro de gravedad.
Definition: RegionSecc.cc:62
Definition: Vector.h:82
Definition: RgSccPoligono.h:43
virtual int getNumCells(void) const =0
Returns the number of cells of the region.
virtual RegionSecc * getCopy(void) const =0
Returns a copy of the region.
Region of a section that corresponds with a material.
Definition: RegionSecc.h:57
double Iy(void) const
Returns the moment of inertia with respect to the axis paralelo al y por el centroid.
Definition: RegionSecc.cc:80
virtual const VectorCells & getCells(void) const =0
Returns the contenedor de celdas.
double Pyz(void) const
Returns the producto de inercia respecto a los ejes paralelos por el centroid.
Definition: RegionSecc.cc:88
Matrix & getI(void) const
Returns the tensor of inertia computed with respect to the object centroid.
Definition: RegionSecc.cc:163
double Iz(void) const
Returns the moment of inertia with respect to the axis paralelo al z por el centroid.
Definition: RegionSecc.cc:84
double Theta_p(void) const
Returns the ángulo que define un principal axis of inertia.
Definition: RegionSecc.cc:96
double Ix(void) const
Returns the moment of inertia polar with respect to centroid en ejes locales.
Definition: RegionSecc.cc:92
Definition: Matrix.h:82
double Longitud(void) const
Returns the region contour lenght.
Definition: RegionSecc.cc:72
Base class for cross-section discretization.
Definition: DiscretBase.h:45
================================================================================
Definition: ContinuaReprComponent.h:34
const Vector & DirEjeI_b(void) const
Return the direction of the other (with respect to DirEjeI_a) principal axis of inertia (we don&#39;t kno...
Definition: RegionSecc.cc:113
double getI2(void) const
Returns the principal minor axis of inertia.
Definition: RegionSecc.cc:136