xc
ShellBData.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //ShellBData.h,v $
29 
30 #ifndef ShellBData_h
31 #define ShellBData_h
32 
33 #include <cstdlib>
34 #include <vector>
35 
36 namespace XC {
37 
38 class Matrix;
39 
41 //
44  {
45  private:
46 
47  //B-bar data
48  std::vector<Matrix> GammaB1pointer;
49  std::vector<Matrix> GammaD1pointer;
50  std::vector<Matrix> GammaA2pointer;
51  std::vector<Matrix> GammaC2pointer;
52 
53  //Bhat data
54  std::vector<Matrix> Bhat;
55 
56 
57  void shear_matrix_ptrs_setup(void);
58  void bhat_setup(void);
59  public:
60  ShellBData(void);
61 
62  const Matrix &getGammaB1(const size_t &node) const;
63  Matrix &getGammaB1(const size_t &node);
64  const Matrix &getGammaD1(const size_t &node) const;
65  Matrix &getGammaD1(const size_t &node);
66  const Matrix &getGammaA2(const size_t &node) const;
67  Matrix &getGammaA2(const size_t &node);
68  const Matrix &getGammaC2(const size_t &node) const;
69  Matrix &getGammaC2(const size_t &node);
70  const Matrix &getBhat(const size_t &j) const;
71  Matrix &getBhat(const size_t &j);
72 
73  void ZeroBHat(void);
74  void DivideBHat(const double &);
75  const Matrix &computeBshear(const size_t &,const double shp[3][4] ) const;
76  const Matrix &computeBbarShear(const size_t &,const double &,const double &,const Matrix &) const;
77  void computeB(const double shp[3][4],const double &,const double &,const Matrix &,const double &);
78  };
79 
80 } // end of XC namespace
81 #endif
const Matrix & computeBshear(const size_t &, const double shp[3][4]) const
compute standard Bshear matrix
Definition: ShellBData.cc:135
const Matrix & computeBbarShear(const size_t &, const double &, const double &, const Matrix &) const
compute Bbar shear matrix
Definition: ShellBData.cc:160
Auxiliary data for shell elements.
Definition: ShellBData.h:43
ShellBData(void)
Constructor.
Definition: ShellBData.cc:90
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111