XC Open source finite element analysis program
DiscretBase.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 //DiscretBase.h
28 
29 #ifndef DiscretBase_h
30 #define DiscretBase_h
31 
32 
33 #include "xc_utils/src/nucleo/EntConNmb.h"
34 
35 namespace XC {
36  class Material;
37 
39 //
41 //
45 class DiscretBase: public EntConNmb
46  {
47  private:
48  Material *mat;
49  protected:
50 
51  public:
52  DiscretBase(Material *mat);
53 
54  virtual double getMaxY(void) const= 0;
55  virtual double getMaxZ(void) const= 0;
56  virtual double getMinY(void) const= 0;
57  virtual double getMinZ(void) const= 0;
58 
59  void setMaterialPtr(Material *mat);
60  Material *getMaterialPtr(void) const;
61 
62  };
63 } // end of XC namespace
64 
65 
66 #endif
67 
Base class for materials.
Definition: Material.h:85
Base class for cross-section discretization.
Definition: DiscretBase.h:45
================================================================================
Definition: ContinuaReprComponent.h:34