XC Open source finite element analysis program
EntMdlrBase.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 //EntMdlrBase.h
28 
29 #ifndef ENTMDLRBASE_H
30 #define ENTMDLRBASE_H
31 
32 #include "xc_utils/src/nucleo/EntConNmb.h"
33 #include "xc_basic/src/texto/LabelContainer.h"
34 #include "utility/actor/actor/MovableObject.h"
35 
36 namespace XC {
37 class Preprocessor;
38 class Pnt;
39 class Edge;
40 class Face;
41 
45 class EntMdlrBase: public EntConNmb, public MovableObject
46  {
47  private:
48  Preprocessor *preprocessor;
49  protected:
50  LabelContainer labels;
51 
52  const Preprocessor *get_preprocessor(void) const;
54  bool check_preprocessor(void) const;
55  int sendIdsEtiquetas(const int &,const int &, CommParameters &);
56  int recvIdsEtiquetas(const int &,const int &, const CommParameters &);
57  int sendData(CommParameters &);
58  int recvData(const CommParameters &);
59  public:
60  EntMdlrBase(const std::string &nmb="",Preprocessor *preprocessor= nullptr);
61  EntMdlrBase(const EntMdlrBase &otro);
62  EntMdlrBase &operator=(const EntMdlrBase &otro);
63  inline const Preprocessor *GetPreprocessor(void) const
64  { return get_preprocessor(); }
65  inline Preprocessor *GetPreprocessor(void)
66  { return get_preprocessor(); }
67 
68  size_t GetTag(void) const;
69 
70  Pnt *BuscaPnt(const size_t &);
71  const Pnt *BuscaPnt(const size_t &) const;
72  Edge *BuscaEdge(const size_t &);
73  const Edge *BuscaEdge(const size_t &) const;
74  Face *BuscaFace(const size_t &);
75  const Face *BuscaFace(const size_t &) const;
76  virtual int sendSelf(CommParameters &);
77  virtual int recvSelf(const CommParameters &);
78  };
79 
80 } //end of XC namespace
81 #endif
int recvData(const CommParameters &)
Receive members through the channel being passed as parameter.
Definition: EntMdlrBase.cc:213
Base class for one-dimensional geometry objects.
Definition: Edge.h:46
Surface.
Definition: Face.h:41
LabelContainer labels
Label container.
Definition: EntMdlrBase.h:50
Pnt * BuscaPnt(const size_t &)
Return a pointer to the point identified by the tag being passed as parameter.
Definition: EntMdlrBase.cc:89
int sendIdsEtiquetas(const int &, const int &, CommParameters &)
Send labels through the channel being passed as parameter.
Definition: EntMdlrBase.cc:166
bool check_preprocessor(void) const
Check for preprocessor.
Definition: EntMdlrBase.cc:73
virtual int recvSelf(const CommParameters &)
Receive objects through the channel being passed as parameter.
Definition: EntMdlrBase.cc:237
Face * BuscaFace(const size_t &)
Return a pointer to the face identified by the tag being passed as parameter.
Definition: EntMdlrBase.cc:141
const Preprocessor * get_preprocessor(void) const
Return a pointer to the preprocessor.
Definition: EntMdlrBase.cc:41
Object that can move between processes.
Definition: MovableObject.h:91
Finite element model generation tools.
Definition: Preprocessor.h:58
Edge * BuscaEdge(const size_t &)
Return a pointer to the edge identified by the tag being passed as parameter.
Definition: EntMdlrBase.cc:115
size_t GetTag(void) const
Return the object identifier in the model (tag).
Definition: EntMdlrBase.cc:66
Punto (KPoint).
Definition: Pnt.h:49
Base class of the preprocessor objects.
Definition: EntMdlrBase.h:45
EntMdlrBase & operator=(const EntMdlrBase &otro)
Assignment operator.
Definition: EntMdlrBase.cc:57
virtual int sendSelf(CommParameters &)
Send objects through the channel being passed as parameter.
Definition: EntMdlrBase.cc:223
int recvIdsEtiquetas(const int &, const int &, const CommParameters &)
Receive labels through the channel being passed as parameter.
Definition: EntMdlrBase.cc:187
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: EntMdlrBase.cc:205
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
EntMdlrBase(const std::string &nmb="", Preprocessor *preprocessor=nullptr)
Constructor.
Definition: EntMdlrBase.cc:48