XC Open source finite element analysis program
BeamColumnJoint3d.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/10/06 19:21:45 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/special/joint/BeamColumnJoint3d.h,v $
50 
51 // Written: NM (nmitra@u.washington.edu)
52 // Created: Feb 2003
53 // Updated: September 2004
54 //
55 // Description: This file contains the class defination for beam-column joint.
56 // This element is a 4 noded 24 dof (6 dof at each node) finite area super-element, being a slight
57 // variation of the 2d one. The element takes in 13 different material types in order to simulate
58 // the inelastic action observed in a reinforced beam column joint. Though it has 6 dof per node
59 // the out of the plane nodal dof are constrained or fixed and the inplane nodal dof are activated.
60 
61 #ifndef BeamColumnJoint3d_h
62 #define BeamColumnJoint3d_h
63 
64 #include <domain/mesh/element/ElemWithMaterial.h>
65 #include "domain/mesh/element/utils/physical_properties/BeamColumnJointPhysicalProperties.h"
66 #include <utility/matrix/Matrix.h>
67 #include <utility/matrix/Vector.h>
68 
69 namespace XC {
70 class Node;
71 class Channel;
72 class FEM_ObjectBroker;
73 class Response;
74 class Renderer;
75 class UniaxialMaterial;
76 
77 
79 //
81 class BeamColumnJoint3d : public ElemWithMaterial<4,BeamColumnJointPhysicalProperties>
82  {
83  private:
84 
85  // private methods
86  void getGlobalDispls(Vector&) ;
87  void getBCJoint(void);
88  void getdg_df(void);
89  void getdDef_du(void);
90  void matDiag(Vector, Matrix&);
91  void getMatResponse(Vector, Vector&, Vector&);
92  void formR(Vector);
93  void formK(Vector);
94  void formTransfMat();
95  double getStepSize(double,double,Vector,Vector,Vector,Vector,double);
96 
97  int nodeDbTag, dofDbTag;
98 
99  // various other element parameters
100  Vector Node1; Vector Node2; Vector Node3; Vector Node4;
101  double elemActHeight;
102  double elemActWidth;
103  double elemWidth;
104  double elemHeight;
105  double HgtFac;
106  double WdtFac;
107 
108  Vector Uecommit;
109  Vector UeIntcommit;
110  Vector UeprCommit;
111  Vector UeprIntCommit;
112  Matrix BCJoint;
113  Matrix dg_df;
114  Matrix dDef_du;
115 
116  mutable Matrix K;
117  mutable Vector R;
118 
119  // static transformation matrices
120  static Matrix Transf;
121  static Matrix Tran;
122 
123  public:
124  // default constructor
126 
127  // defined constructor
128  BeamColumnJoint3d(int tag,int Nd1, int Nd2, int Nd3, int Nd4, const UniaxialMaterial &theMat1, const UniaxialMaterial &theMat2, const UniaxialMaterial &theMat3, const UniaxialMaterial &theMat4, const UniaxialMaterial &theMat5, const UniaxialMaterial &theMat6, const UniaxialMaterial &theMat7, const UniaxialMaterial &theMat8, const UniaxialMaterial &theMat9, const UniaxialMaterial &theMat10, const UniaxialMaterial &theMat11, const UniaxialMaterial &theMat12, const UniaxialMaterial &theMat13);
129 
130  BeamColumnJoint3d(int tag,int Nd1, int Nd2, int Nd3, int Nd4, const UniaxialMaterial &theMat1, const UniaxialMaterial &theMat2, const UniaxialMaterial &theMat3, const UniaxialMaterial &theMat4, const UniaxialMaterial &theMat5, const UniaxialMaterial &theMat6, const UniaxialMaterial &theMat7, const UniaxialMaterial &theMat8, const UniaxialMaterial &theMat9, const UniaxialMaterial &theMat10, const UniaxialMaterial &theMat11, const UniaxialMaterial &theMat12, const UniaxialMaterial &theMat13, double Hgtfac, double Wdtfac);
131  Element *getCopy(void) const;
132 
134  bool isSubdomain(void) { return false; } ;
135 
136  // return number of DOFs
137  int getNumDOF(void) const;
138 
139  // set domain performs check on dof and associativity with node
140  void setDomain(Domain *theDomain);
141 
143 
144  // commit state
145  int commitState(void);
146 
147  // revert to last commit
148  int revertToLastCommit(void);
149 
150  // revert to start
151  int revertToStart(void);
152 
153  // determine current strain and set strain in material
154  int update(void);
155 
158 
159  // returns converged tangent stiffness matrix
160  const Matrix &getTangentStiff(void) const;
161  const Matrix &getInitialStiff(void) const;
162 
163  // not required for this element formulation
164  const Matrix &getDamp(void) const;
165  const Matrix &getMass(void) const;
166 
167  // not required for this element formulation
168  int addLoad(ElementalLoad *theLoad, double loadFactor);
169  int addInertiaLoadToUnbalance(const Vector &accel);
170 
171  // get converged residual
172  const Vector &getResistingForce(void) const;
173 
174  // get converged residual with inertia terms
175  const Vector &getResistingForceIncInertia(void) const;
176 
177  // public methods for element output for parallel and database processing
178  int sendSelf(CommParameters &);
179  int recvSelf(const CommParameters &);
180 
181  // print out element data
182  void Print(std::ostream &s, int flag =0);
183 
184  // implemented to print into file
185  Response *setResponse(const std::vector<std::string> &argv, Information &eleInfo);
186  int getResponse(int responseID, Information &eleInformation);
187 
188  int setParameter(const std::vector<std::string> &argv, Parameter &param);
189  int updateParameter (int parameterID, Information &info);
190 };
191 } // end of XC namespace
192 
193 #endif
3D beam-column joint element.
Definition: BeamColumnJoint3d.h:81
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
Information about an element.
Definition: Information.h:80
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: BeamColumnJoint3d.cpp:939
int commitState(void)
Consuma el estado of the element.
Definition: BeamColumnJoint3d.cpp:199
const Matrix & getDamp(void) const
Returns the matriz de amortiguamiento.
Definition: BeamColumnJoint3d.cpp:908
Definition: Matrix.h:82
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: BeamColumnJoint3d.cpp:137
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: BeamColumnJoint3d.cpp:914
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: BeamColumnJoint3d.cpp:927
int update(void)
Actualiza el estado of the element.
Definition: BeamColumnJoint3d.cpp:227
Definition: Parameter.h:65
Communication parameters between processes.
Definition: CommParameters.h:65
Element * getCopy(void) const
Virtual constructor.
Definition: BeamColumnJoint3d.cpp:131
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88