XC Open source finite element analysis program
BeamColumnJoint2d.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/BeamColumnJoint2d.h,v $
50 
51 // Written: NM (nmitra@u.washington.edu)
52 // Created: April 2002
53 // Revised: August 2004
54 //
55 // Description: This file contains the class defination for beam-column joint.
56 // This element is a 4 noded 12 dof (3 dof at each node) finite area super-element introduced by
57 // Prof. Lowes and Arash. The element takes in 13 different material types in order to simulate
58 // the inelastic action observed in a reinforced beam column joint.
59 // Updates: Several concerning Joint formulation (presently a revised formulation for joints)
60 
61 #ifndef BeamColumnJoint2d_h
62 #define BeamColumnJoint2d_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 
78 //
80 class BeamColumnJoint2d : public ElemWithMaterial<4,BeamColumnJointPhysicalProperties>
81  {
82  private:
83 
84  // private methods
85  void getGlobalDispls(Vector&) ;
86  void getBCJoint(void);
87  void getdg_df(void);
88  void getdDef_du(void);
89  void matDiag(Vector, Matrix&);
90  void getMatResponse(Vector, Vector&, Vector&);
91  void formR(Vector);
92  void formK(Vector);
93  double getStepSize(double,double,Vector,Vector,Vector,Vector,double);
94 
95  int nodeDbTag, dofDbTag;
96 
97  // various other element parameters
98  double elemActHeight;
99  double elemActWidth;
100  double elemWidth;
101  double elemHeight;
102  double HgtFac;
103  double WdtFac;
104 
105  Vector Uecommit;
106  Vector UeIntcommit;
107  Vector UeprCommit;
108  Vector UeprIntCommit;
109  Matrix BCJoint;
110  Matrix dg_df;
111  Matrix dDef_du;
112 
113  mutable Matrix K;
114  mutable Vector R;
115  public:
116  // default constructor
117  BeamColumnJoint2d(void);
118  // defined constructor
119  BeamColumnJoint2d(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);
120 
121  BeamColumnJoint2d(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);
122  Element *getCopy(void) const;
123 
125  bool isSubdomain(void) { return false; } ;
126 
127  // return number of DOFs
128  int getNumDOF(void) const;
129 
130  // set domain performs check on dof and associativity with node
131  void setDomain(Domain *theDomain);
132 
134 
135  // commit state
136  int commitState(void);
137 
138  // revert to last commit
139  int revertToLastCommit(void);
140 
141  // revert to start
142  int revertToStart(void);
143 
144  // determine current strain and set strain in material
145  int update(void);
146 
149 
150  // returns converged tangent stiffness matrix
151  const Matrix &getTangentStiff(void) const;
152  const Matrix &getInitialStiff(void) const;
153 
154  // not required for this element formulation
155  const Matrix &getDamp(void) const;
156  const Matrix &getMass(void) const;
157 
158  // not required for this element formulation
159  int addLoad(ElementalLoad *theLoad, double loadFactor);
160  int addInertiaLoadToUnbalance(const Vector &accel);
161 
162  // get converged residual
163  const Vector &getResistingForce(void) const;
164 
165  // get converged residual with inertia terms
166  const Vector &getResistingForceIncInertia(void) const;
167 
168  // public methods for element output for parallel and database processing
169  int sendSelf(CommParameters &);
170  int recvSelf(const CommParameters &);
171 
172  // print out element data
173  void Print(std::ostream &s, int flag =0);
174 
175  // implemented to print into file
176  Response *setResponse(const std::vector<std::string> &argv, Information &eleInfo);
177  int getResponse(int responseID, Information &eleInformation);
178 
179  int setParameter(const std::vector<std::string> &argv, Parameter &param);
180  int updateParameter (int parameterID, Information &info);
181 
182 
183 };
184 } // end of XC namespace
185 
186 #endif
int commitState(void)
Consuma el estado of the element.
Definition: BeamColumnJoint2d.cpp:184
Element with material.
Definition: ElemWithMaterial.h:40
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: BeamColumnJoint2d.cpp:902
Definition: Vector.h:82
int update(void)
Actualiza el estado of the element.
Definition: BeamColumnJoint2d.cpp:212
Information about an element.
Definition: Information.h:80
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: BeamColumnJoint2d.cpp:132
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
2D beam column joint.
Definition: BeamColumnJoint2d.h:80
Element * getCopy(void) const
Virtual constructor.
Definition: BeamColumnJoint2d.cpp:126
const Matrix & getDamp(void) const
Returns the matriz de amortiguamiento.
Definition: BeamColumnJoint2d.cpp:861
Definition: Matrix.h:82
Definition: Parameter.h:65
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: BeamColumnJoint2d.cpp:867
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: BeamColumnJoint2d.cpp:884
Definition: Response.h:71
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88