XC Open source finite element analysis program
Joint3D.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: 2004/09/01 04:01:27 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/special/joint/Joint3D.h,v $
50 
51 // Written: Arash Altoontash, Gregory Deierlein
52 // Created: 04/03
53 // Revision: Arash
54 
55 // Joint3D.h: interface for the Joint3D class.
56 //
58 
59 #ifndef Joint3D_h
60 #define Joint3D_h
61 
62 
63 #include <domain/mesh/element/ElemWithMaterial.h>
64 #include <domain/mesh/element/utils/physical_properties/Joint3DPhysicalProperties.h>
65 #include <utility/matrix/Matrix.h>
66 #include <utility/matrix/Vector.h>
67 #include <utility/matrix/ID.h>
68 #include <domain/domain/Domain.h>
69 
70 namespace XC {
71 class Node;
72 class UniaxialMaterial;
73 class Response;
74 
76 //
78 //
80 //
82 //
84 //
86 class Joint3D: public ElemWithMaterial<7,Joint3DPhysicalProperties>
87  {
88  private:
89  ID ExternalNodes;
90  ID InternalConstraints;
91  int numDof, nodeDbTag, dofDbTag;
92  static Matrix K;
93  static Vector V;
94  protected:
95  int addMFreedom_Joint(Domain *theDomain, int mpNum, int RetNodeID, int ConNodeID,
96  int RotNodeID, int Rdof, int DspNodeID, int Ddof,
97  int LrgDispFlag );
98  public:
99  Joint3D(void);
100  Joint3D(int tag, int nd1, int nd2, int nd3, int nd4, int nd5, int nd6, int IntNodeTag, const UniaxialMaterial &springx, const UniaxialMaterial &springy, const UniaxialMaterial &springz, Domain *theDomain, int LrgDisp);
101  Element *getCopy(void) const;
102  ~Joint3D(void);
103 
104  // methods dealing with domain
105  int getNumDOF(void) const;
106 
107  void setDomain(Domain *theDomain);
108  bool isSubdomain(void) { return false; } ;
109 
110  // methods dealing with committed state and update
111  int update(void);
112 
113  // methods to return the current linearized stiffness,
114  // damping and mass matrices
115  const Matrix &getTangentStiff(void) const;
116  const Matrix &getInitialStiff(void) const;
117  const Matrix &getDamp(void) const;
118  const Matrix &getMass(void) const;
119 
120  // methods for returning and applying loads
121  //virtual Vector &getUVLoadVector(double q1, double q2);
122  int addLoad(ElementalLoad *theLoad, double loadFactor);
123  int addInertiaLoadToUnbalance(const Vector &accel);
124 
125  const Vector &getResistingForce(void) const;
126  const Vector &getResistingForceIncInertia(void) const;
127 
128  // method for obtaining information specific to an element
129  Response* setResponse(const std::vector<std::string> &argv, Information &eleInformation);
130  int getResponse(int responseID, Information &eleInformation);
131  int sendSelf(CommParameters &);
132  int recvSelf(const CommParameters &);
133  void Print(std::ostream &s, int flag =0);
134  };
135 } // end of XC namespace
136 
137 #endif
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: Joint3D.cpp:357
Element with material.
Definition: ElemWithMaterial.h:40
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Definition: Vector.h:82
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: Joint3D.cpp:391
Information about an element.
Definition: Information.h:80
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: Joint3D.cpp:271
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
Definition: ID.h:77
const Matrix & getDamp(void) const
Returns the matriz de amortiguamiento.
Definition: Joint3D.cpp:345
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: Joint3D.cpp:351
Definition: Matrix.h:82
int update(void)
Actualiza el estado of the element.
Definition: Joint3D.cpp:307
Communication parameters between processes.
Definition: CommParameters.h:65
Joint element for three-dimensional problems.
Definition: Joint3D.h:86
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
Element * getCopy(void) const
Virtual constructor.
Definition: Joint3D.cpp:241
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88