xc
FlatSliderSimple3d.h
1 /* ****************************************************************** **
2 ** OpenSees - Open System for Earthquake Engineering Simulation **
3 ** Pacific Earthquake Engineering Research Center **
4 ** **
5 ** **
6 ** (C) Copyright 1999, The Regents of the University of California **
7 ** All Rights Reserved. **
8 ** **
9 ** Commercial use of this program without express permission of the **
10 ** University of California, Berkeley, is strictly prohibited. See **
11 ** file 'COPYRIGHT' in main directory for information on usage and **
12 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
13 ** **
14 ** Developed by: **
15 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
16 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
17 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
18 ** **
19 ** ****************************************************************** */
20 
21 // $Revision: 1.2 $
22 // $Date: 2009/11/03 23:12:33 $
23 // $Source: /usr/local/cvs/OpenSees/SRC/element/special/frictionBearing/FlatSliderSimple3d.h,v $
24 
25 #ifndef FlatSliderSimple3d_h
26 #define FlatSliderSimple3d_h
27 
28 // Written: Andreas Schellenberg (andreas.schellenberg@gmx.net)
29 // Created: 02/06
30 // Revision: A
31 //
32 // Description: This file contains the class definition for FlatSliderSimple3d.
33 // FlatSliderSimple3d is a friction slider element defined by two nodes. This
34 // simplified version uses small angle approximations and accounts for
35 // rotations of the sliding surface by shifting the shear forces.
36 
37 #include "FrictionElementBase.h"
38 #include "utility/matrix/Vector.h"
39 #include "utility/matrix/Matrix.h"
40 
41 namespace XC {
42 class Channel;
43 class FrictionModel;
44 class UniaxialMaterial;
45 class Response;
46 
68  {
69  private:
70 
71  // state variables
72  Vector ubPlastic; // plastic displacements in basic system
73 
74  // committed history variables
75  Vector ubPlasticC; // plastic displacements in basic system
76 
77  static Matrix theMatrix;
78  static Vector theVector;
79 
80  // private methods
81  void setUp();
82  double sgn(double x);
83  int sendData(Communicator &);
84  int recvData(const Communicator &);
85 
86  public:
87  // constructor
88  FlatSliderSimple3d(int tag, int Nd1, int Nd2,const FrictionModel &theFrnMdl, double uy,const std::vector<UniaxialMaterial *> &theMaterials, const Vector &y= Vector(), const Vector &x= Vector(),const double &mass= 0.0,const int &maxIter = 20,const double &tol= 1E-8);
89  FlatSliderSimple3d(void);
90 
91  // public methods to obtain information about dof & connectivity
92  int getNumDOF();
93  void setDomain(Domain *theDomain);
94 
95  // public methods to set the state of the element
96  int commitState();
97  int revertToLastCommit();
98  int revertToStart();
99  int update();
100 
101  // public methods to obtain stiffness, mass, damping and residual information
102  const Matrix &getTangentStiff();
103  const Matrix &getInitialStiff();
104  const Matrix &getMass();
105 
106  int addLoad(ElementalLoad *theLoad, double loadFactor);
107  int addInertiaLoadToUnbalance(const Vector &accel);
108 
109  const Vector &getResistingForce(void) const;
110  const Vector &getResistingForceIncInertia(void) const;
111 
112  // public methods for element output
113  int sendSelf(Communicator &);
114  int recvSelf(const Communicator &);
115  void Print(std::ostream &s, int flag = 0) const;
116 
117  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
118  int getResponse(int responseID, Information &eleInformation);
119  };
120 } // end of XC namespace
121 
122 #endif
int commitState()
Commit the current element state.
Definition: FlatSliderSimple3d.cpp:106
Float vector abstraction.
Definition: Vector.h:94
void setDomain(Domain *theDomain)
Set the domain for the element.
Definition: FlatSliderSimple3d.cpp:79
int update()
Updates the element state.
Definition: FlatSliderSimple3d.cpp:154
Information about an element.
Definition: Information.h:81
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: FlatSliderSimple3d.cpp:483
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
FrictionModel * theFrnMdl
pointer to friction model
Definition: FrictionElementBase.h:53
const Matrix & getTangentStiff()
Return the tangent stiffness matrix.
Definition: FlatSliderSimple3d.cpp:276
int revertToStart()
Reverts the element to its initial state.
Definition: FlatSliderSimple3d.cpp:132
int recvSelf(const Communicator &)
Receive the object.
Definition: FlatSliderSimple3d.cpp:468
int sendSelf(Communicator &)
Send the object.
Definition: FlatSliderSimple3d.cpp:453
int getNumDOF()
Return the number of degrees of freedom.
Definition: FlatSliderSimple3d.cpp:75
Response * setResponse(const std::vector< std::string > &argv, Information &eleInformation)
setResponse() is a method invoked to determine if the element will respond to a request for a certain...
Definition: FlatSliderSimple3d.cpp:505
int revertToLastCommit()
Revert to the last committed state.
Definition: FlatSliderSimple3d.cpp:119
const Matrix & getMass()
Returns the mass matrix.
Definition: FlatSliderSimple3d.cpp:322
Base class for friction models.
Definition: FrictionModel.h:83
const Vector & getResistingForceIncInertia(void) const
Return the element resisting force including inertia.
Definition: FlatSliderSimple3d.cpp:412
const Vector & getResistingForce(void) const
Return the element resisting force.
Definition: FlatSliderSimple3d.cpp:381
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
Flat slider bearing element for two dimensional problems.
Definition: FlatSliderSimple3d.h:67
Base class for loads over elements.
Definition: ElementalLoad.h:79
FlatSliderSimple3d(void)
Default constructor.
Definition: FlatSliderSimple3d.cpp:69
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: FlatSliderSimple3d.cpp:619
Base class for friction elements.
Definition: FrictionElementBase.h:50