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