XC Open source finite element analysis program
MeshRegion.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.3 $
48 // $Date: 2003/02/14 23:01:02 $
49 // $Source: domain/mesh/region/MeshRegion.h,v $
50 
51 
52 // Written: fmk
53 //
54 // Description: This file contains the class definition for MeshRegion.
55 // A Region is a part of the domain which is defined by a set of
56 // Elements and Nodes (all the end nodes of the elements are in the region,
57 // as are all elements whose end nodes are in the region)
58 //
59 // What: "@(#) Region.h, revA"
60 
61 #ifndef MeshRegion_h
62 #define MeshRegion_h
63 
64 #include "domain/component/ContinuaReprComponent.h"
65 #include "domain/mesh/element/utils/RayleighDampingFactors.h"
66 
67 namespace XC {
68 class Element;
69 class Node;
70 class ElementRecorder;
71 class NodeRecorder;
72 class ID;
73 
75  {
76  private:
77  RayleighDampingFactors rayFactors;
78 
79  ID *theNodes;
80  ID *theElements;
81 
82  int currentGeoTag;
83  int lastGeoSendTag;
84 
85  void libera(void);
86  void copia(const MeshRegion &otra);
87  int sendData(CommParameters &);
88  int recvData(const CommParameters &);
89  public:
90  MeshRegion(int tag);
91  MeshRegion(int tag, int classTag);
92  MeshRegion(const MeshRegion &);
94  virtual ~MeshRegion(void);
95  virtual MeshRegion *getCopy(void) const;
96 
97  // methods dealing with setting up the region
98  virtual int setNodes(const ID &theNodes);
99  virtual int setElements(const ID &theEles);
100 
101  // methods getting the ID's of nodes & ele
102  virtual const ID &getNodes(void);
103  virtual const ID &getElements(void);
104 
105  // methods dealing with setting parameters in the region
106  virtual int setRayleighDampingFactors(const RayleighDampingFactors &rF);
107 
108  // methods to send & recv data for database/parallel applications
109  virtual int sendSelf(CommParameters &);
110  virtual int recvSelf(const CommParameters &);
111  virtual void Print(std::ostream &s, int flag =0);
112  };
113 } // end of XC namespace
114 
115 
116 #endif
117 
virtual void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: MeshRegion.cpp:361
Definition: MeshRegion.h:74
Base class for components used to represent the material (continuum).
Definition: ContinuaReprComponent.h:37
Definition: ID.h:77
virtual MeshRegion * getCopy(void) const
Virtual constructor.
Definition: MeshRegion.cpp:128
MeshRegion & operator=(const MeshRegion &)
Assignment operator.
Definition: MeshRegion.cpp:117
Rayleigh damping factors.
Definition: RayleighDampingFactors.h:45
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34