XC Open source finite element analysis program
SectionMatrices.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 //SectionMatrices.h
28 
29 #ifndef SectionMatrices_h
30 #define SectionMatrices_h
31 
32 #include "utility/actor/actor/MovableObject.h"
33 #include "utility/matrix/Vector.h"
34 #include "utility/matrix/Matrix.h"
35 
36 namespace XC {
37 
39 //
42  {
43  private:
44  std::vector<Vector> vsSubdivide;
45  std::vector<Vector> SsrSubdivide;
46  std::vector<Matrix> fsSubdivide;
47 
48  public:
49  static const size_t maxNumSections= 10;
50  private:
51  void alloc(const size_t &sz);
52  void free(void);
53 
54  public:
55  SectionMatrices(const size_t &sz= 10);
56 
57  static const size_t &getMaxNumSections(void)
58  { return maxNumSections; }
59 
60  const std::vector<Vector> &getVsSubdivide(void) const
61  { return vsSubdivide; }
62  const std::vector<Vector> &getSsrSubdivide(void) const
63  { return SsrSubdivide; }
64  const std::vector<Matrix> &getFsSubdivide(void) const
65  { return fsSubdivide; }
66  std::vector<Vector> &getVsSubdivide(void)
67  { return vsSubdivide; }
68  std::vector<Vector> &getSsrSubdivide(void)
69  { return SsrSubdivide; }
70  std::vector<Matrix> &getFsSubdivide(void)
71  { return fsSubdivide; }
72 
73  void resize(const size_t &sz);
74 
75  void initialize(const size_t &i,const int &order);
76 
77  int sendSelf(CommParameters &);
78  int recvSelf(const CommParameters &);
79  };
80 
81 } //end of XC namespace
82 #endif
Matrices for each section (used in BeamColumnWithSectionFD)
Definition: SectionMatrices.h:41
void initialize(const size_t &i, const int &order)
Initializes the i-th elements.
Definition: SectionMatrices.cc:62
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: SectionMatrices.cc:86
Object that can move between processes.
Definition: MovableObject.h:91
void resize(const size_t &sz)
Redimensiona los objetos.
Definition: SectionMatrices.cc:58
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: SectionMatrices.cc:70
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34