xc
ElasticPlateBase.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 //ElasticPlateBase.h
29 
30 #ifndef ElasticPlateBase_h
31 #define ElasticPlateBase_h
32 
33 #include "PlateBase.h"
34 #include <utility/matrix/Vector.h>
35 #include <utility/matrix/Matrix.h>
36 
37 namespace XC {
38 
40 //
44  {
45  protected:
46  double E;
47  double nu;
48 
49  static const double five6; // =5/6 = shear correction factor
50 
51  int sendData(Communicator &comm);
52  int recvData(const Communicator &comm);
53 
54  public :
55  ElasticPlateBase(int tag,int classTag);
56  ElasticPlateBase(int classTag);
57  ElasticPlateBase(int tag,int classTag, double E, double nu, double h, double rho);
58 
59  int commitState(void);
60  int revertToLastCommit(void);
61  int revertToStart(void);
62 
63  inline double getE(void) const
64  { return E; }
65  void setE(const double &d)
66  { E= d; }
67  inline double getnu(void) const
68  { return nu; }
69  void setnu(const double &d)
70  { nu= d; }
71 
72  inline double membraneModulus(void) const
73  { return (E/(1.0-nu*nu)*h); }
74  inline double shearModulus(void) const
75  { return (0.5*E/(1.0+nu)*h); }
76  inline double bendingModulus(void) const
77  { return (E*(h*h*h)/12.0/( 1.0 - nu*nu )); }
78  };
79 } // end of XC namespace
80 
81 #endif
double E
elastic modulus
Definition: ElasticPlateBase.h:46
Communication parameters between processes.
Definition: Communicator.h:66
double nu
poisson ratio
Definition: ElasticPlateBase.h:47
int recvData(const Communicator &comm)
Receive data through the communicator argument.
Definition: ElasticPlateBase.cc:75
int revertToStart(void)
revert the material to its initial state.
Definition: ElasticPlateBase.cc:63
int revertToLastCommit(void)
revert to last saved state
Definition: ElasticPlateBase.cc:59
ElasticPlateBase(int tag, int classTag)
Constructor.
Definition: ElasticPlateBase.cc:38
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Base class for bidimensional membrane/plate/shell materials.
Definition: PlateBase.h:46
double h
plate thickness
Definition: PlateBase.h:49
int commitState(void)
swap history variables
Definition: ElasticPlateBase.cc:55
Base class for elastic plate materials.
Definition: ElasticPlateBase.h:43
int sendData(Communicator &comm)
Send data through the communicator argument.
Definition: ElasticPlateBase.cc:67