xc
SingleFPSimple2d.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.1 $
22 // $Date: 2009/11/03 23:13:08 $
23 // $Source: /usr/local/cvs/OpenSees/SRC/element/special/frictionBearing/SingleFPSimple2d.h,v $
24 
25 #ifndef SingleFPSimple2d_h
26 #define SingleFPSimple2d_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 SingleFPSimple2d.
33 // SingleFPSimple2d is a single-concave friction pendulum element defined by
34 // two nodes. This simplified version uses small angle approximations and
35 // accounts for the rotation of the sliding surface by shifting the shear force.
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 
53  {
54  private:
55  // private methods
56  void setUp();
57  double sgn(double x);
58 
59  // parameters
60  double R; // radius of concave sliding dish
61  double h; // height of articulated slider
62  double Reff; // length from center of dish to pivot point
63 
64  // state variables
65  double ubPlastic; // plastic displacement in basic system
66 
67  // committed history variables
68  double ubPlasticC; // plastic displacement in basic system
69 
70  static Matrix theMatrix;
71  static Vector theVector;
72 
73  int sendData(Communicator &);
74  int recvData(const Communicator &);
75  public:
76  // constructors
77  SingleFPSimple2d(int tag, int Nd1, int Nd2,const FrictionModel &theFrnMdl,const double &R,const double &h,const 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);
78  SingleFPSimple2d(void);
79 
80  // public methods to obtain information about dof & connectivity
81  int getNumDOF();
82  void setDomain(Domain *theDomain);
83 
84  // public methods to set the state of the element
85  int commitState();
86  int revertToLastCommit();
87  int revertToStart();
88  int update();
89 
90  // public methods to obtain stiffness, mass, damping and residual information
91  const Matrix &getTangentStiff();
92  const Matrix &getInitialStiff();
93  const Matrix &getMass();
94 
95  int addLoad(ElementalLoad *theLoad, double loadFactor);
96  int addInertiaLoadToUnbalance(const Vector &accel);
97 
98  const Vector &getResistingForce(void) const;
99  const Vector &getResistingForceIncInertia(void) const;
100 
101  // public methods for element output
102  int sendSelf(Communicator &);
103  int recvSelf(const Communicator &);
104  void Print(std::ostream &, int flag = 0) const;
105 
106  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
107  int getResponse(int responseID, Information &eleInformation);
108 
109 
110 };
111 } // end of XC namespace
112 
113 #endif
Single-concave friction pendulum element for two dimensional problems.
Definition: SingleFPSimple2d.h:52
const Vector & getResistingForceIncInertia(void) const
Return the element resisting force including inertia effects.
Definition: SingleFPSimple2d.cpp:374
Float vector abstraction.
Definition: Vector.h:94
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
int getNumDOF()
return the number of DOF associated with the element.
Definition: SingleFPSimple2d.cpp:69
int revertToLastCommit()
Revert to the last committed state.
Definition: SingleFPSimple2d.cpp:114
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: SingleFPSimple2d.cpp:73
int update()
Updates the element state.
Definition: SingleFPSimple2d.cpp:147
FrictionModel * theFrnMdl
pointer to friction model
Definition: FrictionElementBase.h:53
void Print(std::ostream &, int flag=0) const
Print stuff.
Definition: SingleFPSimple2d.cpp:444
int revertToStart()
Reverts the element to its initial state.
Definition: SingleFPSimple2d.cpp:122
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: SingleFPSimple2d.cpp:464
Base class for friction models.
Definition: FrictionModel.h:83
int commitState()
Commit the current element state.
Definition: SingleFPSimple2d.cpp:103
int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: SingleFPSimple2d.cpp:554
const Vector & getResistingForce(void) const
Return the element resisting force.
Definition: SingleFPSimple2d.cpp:350
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
Base class for loads over elements.
Definition: ElementalLoad.h:79
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
int sendSelf(Communicator &)
Send the object.
Definition: SingleFPSimple2d.cpp:414
int recvSelf(const Communicator &)
Receive the object.
Definition: SingleFPSimple2d.cpp:429
Base class for friction elements.
Definition: FrictionElementBase.h:50