XC Open source finite element analysis program
Isolator2spring.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.1 $
48 // $Date: 2006/01/17 20:44:32 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/Isolator2spring.h,v $
50 
51 
52 // Written: K. Ryan
53 // Created: September 2003
54 // Updates: November 2005
55 //
56 // Description: This file contains the class implementation for a "two-spring isolator"
57 // material. This material is based on the two-spring model originally developed by
58 // Koh and Kelly to represent the buckling behavior of an elastomeric bearing. The
59 // material model has been modified to include material nonlinearity and optional
60 // strength degradation.
61 
62 #ifndef Isolator2spring_h
63 #define Isolator2spring_h
64 #include <material/section/SectionForceDeformation.h>
65 
66 #include <utility/matrix/Matrix.h>
67 #include <utility/matrix/Vector.h>
68 
69 namespace XC {
71 //
78  {
79  private:
80  double tol;
81  double k1;
82  double Fyo;
83  double kbo;
84  double kvo;
85  double h;
86  double Pe;
87  double po;
88 
89  double utptTrial[2];
90  double utptInic[2];
91  double sP_n;
92  mutable double sP_n1;
93 
94  double q_n;
95  mutable double q_n1;
96 
97  double H;
98  double pcr;
99 
100  mutable Vector x0;
101  mutable Matrix ks;
102  static Vector f0;
103  static Matrix df;
104  static Vector s;
105  static Vector s3;
106  protected:
107  int sendData(CommParameters &);
108  int recvData(const CommParameters &);
109  public:
110  Isolator2spring(int tag, double tol_in, double k1_in, double Fy_in, double kb_in, double kvo_in, double hb_in, double Pe_in, double po_in);
111  Isolator2spring(int tag);
112  Isolator2spring(void);
113 
114  int setInitialSectionDeformation(const Vector &v);
115  int setTrialSectionDeformation(const Vector &v);
116  const Matrix &getSectionTangent(void) const;
117  const Matrix &getInitialTangent(void) const;
118  const Vector &getStressResultant(void) const;
120  const Vector &getInitialSectionDeformation(void) const;
121  const Vector &getSectionDeformation(void) const;
122  double getStrain(const double &,const double &) const;
123 
124  int commitState(void);
125  int revertToLastCommit(void);
126  int revertToStart(void);
127 
128  SectionForceDeformation *getCopy(void) const;
129  const ResponseId &getType(void) const;
130  int getOrder(void) const;
131 
132  int sendSelf(CommParameters &);
133  int recvSelf(const CommParameters &);
134 
135  void Print(std::ostream &s, int flag = 0);
136  };
137 } // end of XC namespace
138 
139 #endif
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: Isolator2spring.cpp:384
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: Isolator2spring.cpp:397
Definition: Vector.h:82
const Matrix & getSectionTangent(void) const
Return the tangent stiffness matrix.
Definition: Isolator2spring.cpp:109
const Matrix & getInitialTangent(void) const
Return the initial tangent stiffness matrix.
Definition: Isolator2spring.cpp:116
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: Isolator2spring.cpp:440
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: Isolator2spring.cpp:374
const Vector & getSectionDeformation(void) const
Returns material&#39;s trial deformation.
Definition: Isolator2spring.cpp:333
Definition: Matrix.h:82
"two-spring isolator" material. This material is based on the two-spring model originally developed b...
Definition: Isolator2spring.h:77
const Vector & getInitialSectionDeformation(void) const
Return the initial deformation del material.
Definition: Isolator2spring.cpp:324
Base class for force deformation section models. Constitutive equations of the section.
Definition: SectionForceDeformation.h:86
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
const Vector & getStressResultant(void) const
Return the resultante de tensiones.
Definition: Isolator2spring.cpp:127
double getStrain(const double &, const double &) const
Returns strain at position being passed as parameter.
Definition: Isolator2spring.cpp:342
void zeroInitialSectionDeformation(void)
Zeroes initial strain.
Definition: Isolator2spring.cpp:317