xc
Joint3D.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.2 $
49 // $Date: 2004/09/01 04:01:27 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/element/special/joint/Joint3D.h,v $
51 
52 // Written: Arash Altoontash, Gregory Deierlein
53 // Created: 04/03
54 // Revision: Arash
55 
56 // Joint3D.h: interface for the Joint3D class.
57 //
59 
60 #ifndef Joint3D_h
61 #define Joint3D_h
62 
63 
64 #include <domain/mesh/element/ElemWithMaterial.h>
65 #include <domain/mesh/element/utils/physical_properties/Joint3DPhysicalProperties.h>
66 #include <utility/matrix/Matrix.h>
67 #include <utility/matrix/Vector.h>
68 #include <utility/matrix/ID.h>
69 #include <domain/domain/Domain.h>
70 
71 namespace XC {
72 class Node;
73 class UniaxialMaterial;
74 class Response;
75 
79 //
83 //
85 //
119 class Joint3D: public ElemWithMaterial<7,Joint3DPhysicalProperties>
120  {
121  private:
122  ID ExternalNodes;
123  ID InternalConstraints;
124  int numDof, nodeDbTag, dofDbTag;
125  static Matrix K;
126  static Vector V;
127  protected:
128  int addMFreedom_Joint(Domain *theDomain, int mpNum, int RetNodeID, int ConNodeID,
129  int RotNodeID, int Rdof, int DspNodeID, int Ddof,
130  int LrgDispFlag );
131  public:
132  Joint3D(void);
133  Joint3D(int tag, int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int IntNodeTag, const SpringModels &springModels, Domain *theDomain, int LrgDisp);
134  Element *getCopy(void) const;
135  ~Joint3D(void);
136 
137  // methods dealing with domain
138  int getNumDOF(void) const;
139 
140  void setDomain(Domain *theDomain);
141  bool isSubdomain(void) { return false; } ;
142 
143  // methods dealing with committed state and update
144  int update(void);
145 
146  // methods to return the current linearized stiffness,
147  // damping and mass matrices
148  const Matrix &getTangentStiff(void) const;
149  const Matrix &getInitialStiff(void) const;
150  const Matrix &getDamp(void) const;
151  const Matrix &getMass(void) const;
152 
153  // methods for returning and applying loads
154  //virtual Vector &getUVLoadVector(double q1, double q2);
155  int addLoad(ElementalLoad *theLoad, double loadFactor);
156  int addInertiaLoadToUnbalance(const Vector &accel);
157 
158  const Vector &getResistingForce(void) const;
159  const Vector &getResistingForceIncInertia(void) const;
160 
161  // method for obtaining information specific to an element
162  Response* setResponse(const std::vector<std::string> &argv, Information &eleInformation);
163  int getResponse(int responseID, Information &eleInformation);
164  int sendSelf(Communicator &);
165  int recvSelf(const Communicator &);
166  void Print(std::ostream &s, int flag =0) const;
167  };
168 } // end of XC namespace
169 
170 #endif
Element * getCopy(void) const
Virtual constructor.
Definition: Joint3D.cpp:241
int recvSelf(const Communicator &)
Receive the object.
Definition: Joint3D.cpp:524
Float vector abstraction.
Definition: Vector.h:94
const Vector & getResistingForce(void) const
Returns the resisting force vector for the element.
Definition: Joint3D.cpp:378
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
bool isSubdomain(void)
Returns true if the element is a subdomain.
Definition: Joint3D.h:141
int getNumDOF(void) const
return the number of DOF associated with the element.
Definition: Joint3D.cpp:313
int sendSelf(Communicator &)
Send the object.
Definition: Joint3D.cpp:521
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: Joint3D.cpp:271
Vector of integers.
Definition: ID.h:95
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: Joint3D.cpp:351
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: Joint3D.cpp:396
Base class for the finite elements.
Definition: Element.h:112
Spring models for Joint elements.
Definition: SpringModels.h:41
int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: Joint3D.cpp:431
Joint element for three-dimensional problems.
Definition: Joint3D.h:119
const Vector & getResistingForceIncInertia(void) const
Returns the resisting force vector including inertia forces.
Definition: Joint3D.cpp:391
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Element with material.
Definition: ElemWithMaterial.h:45
Matrix of floats.
Definition: Matrix.h:111
const Matrix & getDamp(void) const
Returns the damping matrix.
Definition: Joint3D.cpp:345
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: Joint3D.cpp:357
int update(void)
Updates the element state.
Definition: Joint3D.cpp:307
Base class for loads over elements.
Definition: ElementalLoad.h:79
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
const Matrix & getTangentStiff(void) const
Return the tangent stiffness matrix.
Definition: Joint3D.cpp:316