XC Open source finite element analysis program
FlatSliderSimple2d.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.2 $
48 // $Date: 2009/11/03 23:12:33 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/special/frictionBearing/FlatSliderSimple2d.h,v $
50 
51 #ifndef FlatSliderSimple2d_h
52 #define FlatSliderSimple2d_h
53 
54 // Written: Andreas Schellenberg (andreas.schellenberg@gmx.net)
55 // Created: 02/06
56 // Revision: A
57 //
58 // Description: This file contains the class definition for FlatSliderSimple2d.
59 // FlatSliderSimple2d is a friction slider element defined by two nodes. This
60 // simplified version uses small angle approximations and accounts for the
61 // rotation of the sliding surface by shifting the shear force.
62 
63 #include "ElemFriccionBase.h"
64 #include "utility/matrix/Vector.h"
65 #include "utility/matrix/Matrix.h"
66 
67 namespace XC {
68 class Channel;
69 class FrictionModel;
70 class UniaxialMaterial;
71 class Response;
72 
74  {
75  private:
76  // state variables
77  double ubPlastic; // plastic displacement in basic system
78 
79  // committed history variables
80  double ubPlasticC; // plastic displacement in basic system
81 
82  static Matrix theMatrix;
83  static Vector theVector;
84  // private methods
85  void setUp();
86  double sgn(double x);
87  int sendData(CommParameters &);
88  int recvData(const CommParameters &);
89  public:
90  // constructors
91  FlatSliderSimple2d(int tag, int Nd1, int Nd2,FrictionModel &theFrnMdl, double uy,
92  const std::vector<UniaxialMaterial *> &theMaterials,
93  const Vector y= Vector(), const Vector x= Vector(),
94  double mass = 0.0, int maxIter = 20, double tol = 1E-8);
96 
97  // public methods to obtain information about dof & connectivity
98  const ID &getExternalNodes() const;
99  int getNumDOF();
100  void setDomain(Domain *theDomain);
101 
102  // public methods to set the state of the element
103  int commitState();
104  int revertToLastCommit();
105  int revertToStart();
106  int update();
107 
108  // public methods to obtain stiffness, mass, damping and residual information
109  const Matrix &getTangentStiff();
110  const Matrix &getInitialStiff();
111  const Matrix &getMass();
112 
113  int addLoad(ElementalLoad *theLoad, double loadFactor);
114  int addInertiaLoadToUnbalance(const Vector &accel);
115 
116  const Vector &getResistingForce();
118 
119  // public methods for element output
120  int sendSelf(CommParameters &);
121  int recvSelf(const CommParameters &);
122  int displaySelf(Renderer &theViewer, int displayMode, float fact);
123  void Print(std::ostream &s, int flag = 0);
124 
125  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
126  int getResponse(int responseID, Information &eleInformation);
127  };
128 } // end of XC namespace
129 
130 #endif
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Definition: Vector.h:82
const Matrix & getMass()
Returns the mass matrix.
Definition: FlatSliderSimple2d.cpp:292
Information about an element.
Definition: Information.h:80
Base class for loads over elements.
Definition: ElementalLoad.h:73
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: FlatSliderSimple2d.cpp:443
int commitState()
Consuma el estado of the element.
Definition: FlatSliderSimple2d.cpp:107
Definition: ID.h:77
Definition: Matrix.h:82
Definition: FrictionModel.h:71
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: FlatSliderSimple2d.cpp:80
const Vector & getResistingForceIncInertia()
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: FlatSliderSimple2d.cpp:374
FrictionModel * theFrnMdl
pointer to friction model
Definition: ElemFriccionBase.h:45
Communication parameters between processes.
Definition: CommParameters.h:65
int update()
Actualiza el estado of the element.
Definition: FlatSliderSimple2d.cpp:153
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: ElemFriccionBase.h:42
Definition: Response.h:71
Definition: FlatSliderSimple2d.h:73