xc
Isolator2spring.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.1 $
49 // $Date: 2006/01/17 20:44:32 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/Isolator2spring.h,v $
51 
52 
53 // Written: K. Ryan
54 // Created: September 2003
55 // Updates: November 2005
56 //
57 // Description: This file contains the class implementation for a "two-spring isolator"
58 // material.
59 
60 #ifndef Isolator2spring_h
61 #define Isolator2spring_h
62 #include <material/section/SectionForceDeformation.h>
63 
64 #include <utility/matrix/Matrix.h>
65 #include <utility/matrix/Vector.h>
66 
67 namespace XC {
69 //
71 
77  {
78  private:
79  double tol;
80  double k1;
81  double Fyo;
82  double kbo;
83  double kvo;
84  double h;
85  double Pe;
86  double po;
87 
88  double utptTrial[2];
89  double utptInic[2];
90  double sP_n;
91  mutable double sP_n1;
92 
93  double q_n;
94  mutable double q_n1;
95 
96  double H;
97  double pcr;
98 
99  mutable Vector x0;
100  mutable Matrix ks;
101  static Vector f0;
102  static Matrix df;
103  static Vector s;
104  static Vector s3;
105  protected:
106  int sendData(Communicator &);
107  int recvData(const Communicator &);
108  public:
109  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);
110  Isolator2spring(int tag);
111  Isolator2spring(void);
112 
113  int setInitialSectionDeformation(const Vector &v);
114  int setTrialSectionDeformation(const Vector &v);
115  const Matrix &getSectionTangent(void) const;
116  const Matrix &getInitialTangent(void) const;
117  const Vector &getStressResultant(void) const;
119  const Vector &getInitialSectionDeformation(void) const;
120  const Vector &getSectionDeformation(void) const;
121  double getStrain(const double &,const double &) const;
122 
123  int commitState(void);
124  int revertToLastCommit(void);
125  int revertToStart(void);
126 
127  SectionForceDeformation *getCopy(void) const;
128  const ResponseId &getResponseType(void) const;
129  int getOrder(void) const;
130 
131  int sendSelf(Communicator &);
132  int recvSelf(const Communicator &);
133 
134  void Print(std::ostream &s, int flag = 0) const;
135  };
136 } // end of XC namespace
137 
138 #endif
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
Float vector abstraction.
Definition: Vector.h:94
int commitState(void)
Commit the state of the material.
Definition: Isolator2spring.cpp:350
Communication parameters between processes.
Definition: Communicator.h:66
"two-spring isolator" material.
Definition: Isolator2spring.h:76
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
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: Isolator2spring.cpp:398
const Matrix & getSectionTangent(void) const
Return the tangent stiffness matrix.
Definition: Isolator2spring.cpp:109
int sendSelf(Communicator &)
Send the object.
Definition: Isolator2spring.cpp:410
const ResponseId & getResponseType(void) const
Return the ordering and type of response quantities returned by this object.
Definition: Isolator2spring.cpp:378
const Matrix & getInitialTangent(void) const
Return the initial tangent stiffness matrix.
Definition: Isolator2spring.cpp:116
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: Isolator2spring.cpp:385
int recvSelf(const Communicator &)
Receive the object.
Definition: Isolator2spring.cpp:423
SectionForceDeformation * getCopy(void) const
Virtual constructor.
Definition: Isolator2spring.cpp:375
const Vector & getSectionDeformation(void) const
Returns material&#39;s trial deformation.
Definition: Isolator2spring.cpp:333
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: Isolator2spring.cpp:441
const Vector & getInitialSectionDeformation(void) const
Return the initial deformation del material.
Definition: Isolator2spring.cpp:324
int setTrialSectionDeformation(const Vector &v)
Set the value of the trial section deformation vector, to be {def}.
Definition: Isolator2spring.cpp:101
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
const Vector & getStressResultant(void) const
Return the resultant of stresses.
Definition: Isolator2spring.cpp:127
int getOrder(void) const
Return the number of response quantities provided by the section.
Definition: Isolator2spring.cpp:381