XC Open source finite element analysis program
MeshComponent.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 //MeshComponent.h
28 
29 #ifndef MeshComponent_h
30 #define MeshComponent_h
31 
32 #include "domain/component/ContinuaReprComponent.h"
33 #include "xc_basic/src/texto/LabelContainer.h"
34 
35 class Pos3d;
36 
37 namespace XC {
38 class Matrix;
39 
42  {
43  private:
44  void check_matrices(const std::deque<Matrix> &,const int &) const;
45  void nueva_matriz(std::deque<Matrix> &,const int &) const;
46  protected:
47  mutable int index;
48  LabelContainer labels;
49 
50  void setup_matrices(std::deque<Matrix> &,const int &) const;
51  int sendIdsEtiquetas(int posDbTag,CommParameters &);
52  int recvIdsEtiquetas(int posDbTag,const CommParameters &);
53  int sendData(CommParameters &);
54  int recvData(const CommParameters &);
55 
56  public:
57  // constructors
58  MeshComponent(int classTag);
59  MeshComponent(int tag, int classTag);
60  };
61 
62 } // end of XC namespace
63 
64 #endif
65 
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: MeshComponent.cc:110
int index
Index for VTK arrays.
Definition: MeshComponent.h:47
Base class for components used to represent the material (continuum).
Definition: ContinuaReprComponent.h:37
int recvIdsEtiquetas(int posDbTag, const CommParameters &)
Receive labels through the channel being passed as parameter.
Definition: MeshComponent.cc:93
LabelContainer labels
Label container.
Definition: MeshComponent.h:48
void setup_matrices(std::deque< Matrix > &, const int &) const
Initializes the matrix container.
Definition: MeshComponent.cc:57
Base class for nodes and elements (mesh components).
Definition: MeshComponent.h:41
int sendIdsEtiquetas(int posDbTag, CommParameters &)
Send labelsthrough the channel being passed as parameter.
Definition: MeshComponent.cc:73
MeshComponent(int classTag)
Constructor.
Definition: MeshComponent.cc:65
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: MeshComponent.cc:119
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34