xc
PlateRebarMaterial.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-23 21:11:45 $
51 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/PlateRebarMaterial.h,v $
52 
53 // Yuli Huang (yulihuang@gmail.com) & Xinzheng Lu (luxz@tsinghua.edu.cn)
54 //
55 // Generic Plate Rebar 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 PlateRebarMaterial_h
62 #define PlateRebarMaterial_h
63 
64 #include "PlateAdaptorMaterial.h"
65 #include "material/uniaxial/UniaxialMaterialWrapper.h"
66 #include "utility/matrix/Vector.h"
67 #include "utility/matrix/Matrix.h"
68 
69 namespace XC {
70 
71 //
74 class PlateRebarMaterial: public PlateAdaptorMaterial<UniaxialMaterialWrapper>
75  {
76  private :
77  double angle, c, s;
78 
79  Vector strain;
80  static Vector stress;
81  static Matrix tangent;
82  protected:
83  int sendData(Communicator &);
84  int recvData(const Communicator &);
85  public:
86  PlateRebarMaterial(int tag= 0);
87  PlateRebarMaterial(int tag, const UniaxialMaterial &uniMat, const double &ang );
88 
89  //make a clone of this material
90  NDMaterial *getCopy(void) const;
91  NDMaterial *getCopy(const std::string &) const;
92 
93  inline double getAngle(void) const
94  { return this->angle; }
95  void setAngle(const double &);
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  void Print(std::ostream &s, int flag = 0) const;
121 
122  int sendSelf(Communicator &);
123  int recvSelf(const Communicator &);
124  };
125 } // end of XC namespace
126 
127 #endif
128 
129 
130 
131 
132 
133 
Float vector abstraction.
Definition: Vector.h:94
Plate response adaptor.
Definition: PlateAdaptorMaterial.h:42
Communication parameters between processes.
Definition: Communicator.h:66
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
int setTrialStrain(const Vector &strainFromElement)
Sets the value of the trial strain vector, that value used by {getStress()} and getTangent(), to be strain.
Definition: PlateRebarMaterial.cpp:125
int sendSelf(Communicator &)
Send the object.
Definition: PlateRebarMaterial.cpp:245
int sendData(Communicator &)
Send material data.
Definition: PlateRebarMaterial.cpp:228
int recvSelf(const Communicator &)
Receive the object.
Definition: PlateRebarMaterial.cpp:259
void Print(std::ostream &s, int flag=0) const
print out data
Definition: PlateRebarMaterial.cpp:221
const Vector & getStress(void) const
Returns the material stress vector at the current trial strain.
Definition: PlateRebarMaterial.cpp:152
int recvData(const Communicator &)
Receive material data.
Definition: PlateRebarMaterial.cpp:237
Reinforcing steel in multilayer reinforced concrete materials.
Definition: PlateRebarMaterial.h:74
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
int revertToStart(void)
Revert the material to its initial state.
Definition: PlateRebarMaterial.cpp:118
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: PlateRebarMaterial.cpp:92
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
const Matrix & getTangent(void) const
Return the tangent stiffness matrix at the current trial strain.
Definition: PlateRebarMaterial.cpp:172
const Vector & getStrain(void) const
Returns strain.
Definition: PlateRebarMaterial.cpp:147