xc
PolygonSectRegion.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 //PolygonSectRegion.h
29 
30 #ifndef PolygonSectRegion_h
31 #define PolygonSectRegion_h
32 
33 #include <material/section/repres/section_geometry/region/QuadCellRegion.h>
34 #include "utility/matrix/Matrix.h"
35 #include "utility/geom/d2/2d_polygons/Polygon2d.h"
36 
37 class Polygon2d;
38 
39 namespace XC {
40 
42 //
45  {
46  private:
47  Polygon2d plg;
48  protected:
49 
50  public:
52  PolygonSectRegion(Material *, int numSubdivIJ, int numSubdivJK, const Polygon2d &);
53 
54  const Grid2d &getMesh(void) const;
55  const VectorCells &getCells(void) const;
56  SectRegion *getCopy(void) const;
57 
58  double getMaxY(void) const;
59  double getMaxZ(void) const;
60  double getMinY(void) const;
61  double getMinZ(void) const;
62  Polygon2d getPolygon(void) const;
63 
64 
65  void Print(std::ostream &s, int flag =0) const;
66  friend std::ostream &operator<<(std::ostream &, PolygonSectRegion &);
67  };
68 
69 std::ostream &operator<<(std::ostream &, PolygonSectRegion &);
70 } // end of XC namespace
71 
72 
73 #endif
74 
75 
SectRegion * getCopy(void) const
Returns a copy of the region.
Definition: PolygonSectRegion.cc:76
const VectorCells & getCells(void) const
Returns the cell container.
Definition: PolygonSectRegion.cc:68
Definition: PolygonSectRegion.h:44
Region of a section that creates quadrilateral cells.
Definition: QuadCellRegion.h:51
Base class for materials.
Definition: Material.h:93
Polígono en dos dimensiones.
Definition: Polygon2d.h:38
Grid in a two-dimensional space.
Definition: Grid2d.h:32
Polygon2d getPolygon(void) const
Return the region contour.
Definition: PolygonSectRegion.cc:57
Region of a section that corresponds with a material.
Definition: SectRegion.h:58
Cells vector.
Definition: VectorCells.h:42
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35