xc
PlateFromPlaneStressMaterial.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 //===============================================================================
29 /* ****************************************************************** **
30 ** OpenSees - Open System for Earthquake Engineering Simulation **
31 ** Pacific Earthquake Engineering Research Center **
32 ** **
33 ** **
34 ** (C) Copyright 1999, The Regents of the University of California **
35 ** All Rights Reserved. **
36 ** **
37 ** Commercial use of this program without express permission of the **
38 ** University of California, Berkeley, is strictly prohibited. See **
39 ** file 'COPYRIGHT' in main directory for information on usage and **
40 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
41 ** **
42 ** Developed by: **
43 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
44 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
45 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
46 ** **
47 ** ****************************************************************** */
48 
49 // $Revision: 1.0 $
50 // $Date: 2012-05-27 21:11:45 $
51 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/PlateFromPlaneStressMaterial.h,v $
52 
53 // Yuli Huang (yulihuang@gmail.com) & Xinzheng Lu (luxz@tsinghua.edu.cn)
54 //
55 // Generic Plate Material from Plane Stress Material
56 //
57 /* Ref: Lu X, Lu XZ, Guan H, Ye LP, Collapse simulation of reinforced
58 concrete high-rise building induced by extreme earthquakes,
59 Earthquake Engineering & Structural Dynamics, 2013, 42(5): 705-723*/
60 
61 #ifndef PlateFromPlaneStressMaterial_h
62 #define PlateFromPlaneStressMaterial_h
63 
64 #include "utility/matrix/Vector.h"
65 #include "utility/matrix/Matrix.h"
66 #include "material/nD/NDMaterialWrapper.h"
67 #include "material/nD/rc_multilayer/PlateAdaptorMaterial.h"
68 
69 namespace XC {
70 
71 //
74 class PlateFromPlaneStressMaterial: public PlateAdaptorMaterial<NDMaterialWrapper>
75  {
76  private:
77  Vector strain;
78  double gmod;
79 
80  static Vector stress;
81  static Matrix tangent;
82  protected:
83  int sendData(Communicator &);
84  int recvData(const Communicator &);
85  public :
86  PlateFromPlaneStressMaterial(int tag= 0);
87  PlateFromPlaneStressMaterial(int tag, NDMaterial &ndMat, const double &g);
88 
89  inline double getGmod(void) const
90  { return this->gmod; }
91  void setGmod(const double &);
92 
93  //make a clone of this material
94  NDMaterial *getCopy(void) const;
95  NDMaterial *getCopy(const std::string &) const;
96 
97  //swap history variables
98  int commitState(void);
99 
100  //revert to last saved state
101  int revertToLastCommit(void);
102 
103  //revert to start
104  int revertToStart(void);
105 
106  //get the strain
107  int setTrialStrain(const Vector &strainFromElement );
108 
109  //send back the strain
110  const Vector &getStrain(void) const;
111 
112  //send back the stress
113  const Vector &getStress(void) const;
114 
115  //send back the tangent
116  const Matrix &getTangent(void) const;
117 
118  const Matrix &getInitialTangent(void) const; // AV Not Sure if it works
119 
120  //print out data
121  void Print(std::ostream &s, int flag = 0) const;
122 
123  int sendSelf(Communicator &);
124  int recvSelf(const Communicator &);
125 
126  //setResponse - added by V.K. Papanikolaou [AUTh] - start
127  Response *setResponse(const std::vector<std::string> &argv, Information &matInformation);
128  //setResponse - added by V.K. Papanikolaou [AUTh] - end
129 
130  };
131 
132 } // end of XC namespace
133 
134 #endif
135 
136 
137 
138 
139 
Float vector abstraction.
Definition: Vector.h:94
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: PlateFromPlaneStressMaterial.cpp:211
Plate response adaptor.
Definition: PlateAdaptorMaterial.h:42
int sendSelf(Communicator &)
Send the object.
Definition: PlateFromPlaneStressMaterial.cpp:234
Information about an element.
Definition: Information.h:81
int setTrialStrain(const Vector &strainFromElement)
Sets the value of the trial strain vector, that value used by {getStress()} and getTangent(), to be strain.
Definition: PlateFromPlaneStressMaterial.cpp:120
Communication parameters between processes.
Definition: Communicator.h:66
int recvData(const Communicator &)
Receive material data.
Definition: PlateFromPlaneStressMaterial.cpp:227
Base class response objects.
Definition: Response.h:81
int revertToStart(void)
Revert the material to its initial state.
Definition: PlateFromPlaneStressMaterial.cpp:112
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: PlateFromPlaneStressMaterial.cpp:82
const Matrix & getTangent(void) const
Return the tangent stiffness matrix at the current trial strain.
Definition: PlateFromPlaneStressMaterial.cpp:163
const Vector & getStrain(void) const
Returns strain.
Definition: PlateFromPlaneStressMaterial.cpp:139
const Vector & getStress(void) const
Returns the material stress vector at the current trial strain.
Definition: PlateFromPlaneStressMaterial.cpp:146
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Reinforcing steel in multilayer reinforced concrete materials.
Definition: PlateFromPlaneStressMaterial.h:74
Matrix of floats.
Definition: Matrix.h:111
int sendData(Communicator &)
Send material data.
Definition: PlateFromPlaneStressMaterial.cpp:218
int recvSelf(const Communicator &)
Receive the object.
Definition: PlateFromPlaneStressMaterial.cpp:248