xc
LayeredShellFiberSection.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 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.0 $
49 // $Date: 2012-05-21 23:49:46 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/LayeredShellFiberSection.h,v $
51 
52 // Yuli Huang (yulihuang@gmail.com) & Xinzheng Lu (luxz@tsinghua.edu.cn)
53 //
54 // Layered Shell Section
55 //
56 /* Ref: Lu X, Lu XZ, Guan H, Ye LP, Collapse simulation of reinforced
57 concrete high-rise building induced by extreme earthquakes,
58 Earthquake Engineering & Structural Dynamics, 2013, 42(5): 705-723*/
59 
60 #ifndef LayeredShellFiberSection_h
61 #define LayeredShellFiberSection_h
62 
63 #include <utility/matrix/Vector.h>
64 #include <utility/matrix/Matrix.h>
65 #include "MembranePlateFiberSectionBase.h"
66 namespace XC {
67 
71  {
72  private:
73  //quadrature data
74  std::vector<double> sg; //Gauss integration.
75  std::vector<double> wg;
76 
77  static ResponseId array;
78  protected:
79  void setHWgSg(const std::vector<double> &);
80  public:
81  //null constructor
82  LayeredShellFiberSection(int tag= 0);
83 
84  //full constructor
85  LayeredShellFiberSection(int tag, const std::vector<double> &, const std::vector<NDMaterial *> &);
86 
87  //make a clone of this material
88  SectionForceDeformation *getCopy(void) const;
89 
90  void setThicknesses(const boost::python::list &);
91  void setupPy(const boost::python::list &);
92 
93  std::vector<double> getFiberZs(void) const;
94 
95  //mass per unit area
96  double getRho(void) const;
97 
98  Response *setResponse(const std::vector<std::string> &, Information &);
99  int getResponse(int responseID, Information &info);
100 
101  // parameters
102  int setParameter(const std::vector<std::string> &, Parameter &);
103  int updateParameter(int parameterID, Information& info);
104 
105  //send back order of strain in vector form
106  const ResponseId &getResponseType(void) const;
107 
109  //get the strain and integrate plasticity equations
110  int setTrialSectionDeformation(const Vector &strain_from_element );
111 
112  //send back the stress
113  const Vector &getStressResultant(void) const;
114 
115  //send back the tangent
116  const Matrix &getSectionTangent(void) const;
117 
118  //send back the initial tangent
119  const Matrix& getInitialTangent(void) const
120  { return this->getSectionTangent(); }
121 
122  //print out data
123  void Print( std::ostream &s, int flag ) const;
124 
125  }; //end of LayeredShellFiberSection declarations
126 
127 } // end of XC namespace
128 
129 #endif
130 
131 
132 
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
Float vector abstraction.
Definition: Vector.h:94
Information about an element.
Definition: Information.h:81
int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: LayeredShellFiberSection.cpp:206
const Matrix & getSectionTangent(void) const
Return the section tangent stiffness matrix, , at the current trial state.
Definition: LayeredShellFiberSection.cpp:301
void Print(std::ostream &s, int flag) const
Print stuff.
Definition: LayeredShellFiberSection.cpp:463
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: LayeredShellFiberSection.cpp:142
Base class response objects.
Definition: Response.h:81
Base class for fiber models for plate/membrane materials.
Definition: MembranePlateFiberSectionBase.h:42
LayeredShellFiberSection(int tag=0)
Default constructor.
Definition: LayeredShellFiberSection.cpp:129
std::vector< double > getFiberZs(void) const
Return the z coordinate for each fiber (layer if you prefer).
Definition: LayeredShellFiberSection.cpp:167
Response * setResponse(const std::vector< std::string > &, Information &)
Returns the respuesta of the section.
Definition: LayeredShellFiberSection.cpp:193
const Vector & getStressResultant(void) const
Return the section resisting forces, , at the current trial state.
Definition: LayeredShellFiberSection.cpp:263
void setupPy(const boost::python::list &)
Assign the thickness and the material of each layer.
Definition: LayeredShellFiberSection.cpp:110
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
void setHWgSg(const std::vector< double > &)
Initialize layers.
Definition: LayeredShellFiberSection.cpp:70
const ResponseId & getResponseType(void) const
Return the ordering and type of response quantities returned by this object.
Definition: LayeredShellFiberSection.cpp:148
int setTrialSectionDeformation(const Vector &strain_from_element)
Receive the strainResultant and propagate it to the layers.
Definition: LayeredShellFiberSection.cpp:235
int getResponse(int responseID, Information &info)
Returns section response.
Definition: LayeredShellFiberSection.cpp:196
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int setInitialSectionDeformation(const Vector &)
Set initial values for deformation.
Definition: LayeredShellFiberSection.cpp:213
Matrix of floats.
Definition: Matrix.h:111
Fiber model for plate/membrane materials.
Definition: LayeredShellFiberSection.h:70
Parameter.
Definition: Parameter.h:68
int setParameter(const std::vector< std::string > &, Parameter &)
Sets the value param to the parameter argv.
Definition: LayeredShellFiberSection.cpp:201
void setThicknesses(const boost::python::list &)
Assign the thickness of each layer.
Definition: LayeredShellFiberSection.cpp:98
double getRho(void) const
Mass per unit area.
Definition: LayeredShellFiberSection.cpp:178