xc
BeamColumnJoint2d.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/10/06 19:21:45 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/element/special/joint/BeamColumnJoint2d.h,v $
51 
52 // Written: NM (nmitra@u.washington.edu)
53 // Created: April 2002
54 // Revised: August 2004
55 //
56 // Description: This file contains the class definition for beam-column joint.
57 // This element is a 4 noded 12 dof (3 dof at each node) finite area super-element introduced by
58 // Prof. Lowes and Arash. The element takes in 13 different material types in order to simulate
59 // the inelastic action observed in a reinforced beam column joint.
60 // Updates: Several concerning Joint formulation (presently a revised formulation for joints)
61 
62 #ifndef BeamColumnJoint2d_h
63 #define BeamColumnJoint2d_h
64 
65 #include <domain/mesh/element/ElemWithMaterial.h>
66 #include "domain/mesh/element/utils/physical_properties/BeamColumnJointPhysicalProperties.h"
67 #include <utility/matrix/Matrix.h>
68 #include <utility/matrix/Vector.h>
69 
70 namespace XC {
71 class Node;
72 class Channel;
73 class FEM_ObjectBroker;
74 class Response;
75 class Renderer;
76 class UniaxialMaterial;
77 
79 //
81 class BeamColumnJoint2d: 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  double getStepSize(double,double,Vector,Vector,Vector,Vector,double);
95 
96  int nodeDbTag, dofDbTag;
97 
98  // various other element parameters
99  double elemActHeight;
100  double elemActWidth;
101  double elemWidth;
102  double elemHeight;
103  double HgtFac;
104  double WdtFac;
105 
106  Vector Uecommit;
107  Vector UeIntcommit;
108  Vector UeprCommit;
109  Vector UeprIntCommit;
110  Matrix BCJoint;
111  Matrix dg_df;
112  Matrix dDef_du;
113 
114  mutable Matrix K;
115  mutable Vector R;
116  public:
117  // default constructor
118  BeamColumnJoint2d(void);
119  // defined constructor
120  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);
121 
122  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);
123  Element *getCopy(void) const;
124 
126  bool isSubdomain(void) { return false; } ;
127 
128  // return number of DOFs
129  int getNumDOF(void) const;
130 
131  // set domain performs check on dof and associativity with node
132  void setDomain(Domain *theDomain);
133 
135 
136  // commit state
137  int commitState(void);
138 
139  // revert to last commit
140  int revertToLastCommit(void);
141 
142  // revert to start
143  int revertToStart(void);
144 
145  // determine current strain and set strain in material
146  int update(void);
147 
150 
151  // returns converged tangent stiffness matrix
152  const Matrix &getTangentStiff(void) const;
153  const Matrix &getInitialStiff(void) const;
154 
155  // not required for this element formulation
156  const Matrix &getDamp(void) const;
157  const Matrix &getMass(void) const;
158 
159  // not required for this element formulation
160  int addLoad(ElementalLoad *theLoad, double loadFactor);
161  int addInertiaLoadToUnbalance(const Vector &accel);
162 
163  // get converged residual
164  const Vector &getResistingForce(void) const;
165 
166  // get converged residual with inertia terms
167  const Vector &getResistingForceIncInertia(void) const;
168 
169  // public methods for element output for parallel and database processing
170  int sendSelf(Communicator &);
171  int recvSelf(const Communicator &);
172 
173  // print out element data
174  void Print(std::ostream &s, int flag =0) const;
175 
176  // implemented to print into file
177  Response *setResponse(const std::vector<std::string> &argv, Information &eleInfo);
178  int getResponse(int responseID, Information &eleInformation);
179 
180  int setParameter(const std::vector<std::string> &argv, Parameter &param);
181  int updateParameter (int parameterID, Information &info);
182 
183 
184 };
185 } // end of XC namespace
186 
187 #endif
Element * getCopy(void) const
Virtual constructor.
Definition: BeamColumnJoint2d.cpp:126
int sendSelf(Communicator &)
Send the object.
Definition: BeamColumnJoint2d.cpp:890
Float vector abstraction.
Definition: Vector.h:94
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
const Vector & getResistingForce(void) const
Returns the resisting force vector for the element.
Definition: BeamColumnJoint2d.cpp:238
Base class response objects.
Definition: Response.h:81
int revertToLastCommit(void)
Revert to the last committed state.
Definition: BeamColumnJoint2d.cpp:196
int commitState(void)
Commit the current element state.
Definition: BeamColumnJoint2d.cpp:184
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: BeamColumnJoint2d.cpp:132
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
bool isSubdomain(void)
Returns true if the element is a subdomain.
Definition: BeamColumnJoint2d.h:126
int recvSelf(const Communicator &)
Receive the object.
Definition: BeamColumnJoint2d.cpp:896
Base class for the finite elements.
Definition: Element.h:112
int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: BeamColumnJoint2d.cpp:1047
int getNumDOF(void) const
return the number of DOF associated with the element.
Definition: BeamColumnJoint2d.cpp:129
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: BeamColumnJoint2d.cpp:867
const Vector & getResistingForceIncInertia(void) const
Returns the resisting force vector including inertia forces.
Definition: BeamColumnJoint2d.cpp:884
2D beam column joint.
Definition: BeamColumnJoint2d.h:81
const Matrix & getDamp(void) const
Returns the damping matrix.
Definition: BeamColumnJoint2d.cpp:861
Response * setResponse(const std::vector< std::string > &argv, Information &eleInfo)
setResponse() is a method invoked to determine if the element will respond to a request for a certain...
Definition: BeamColumnJoint2d.cpp:913
const Matrix & getTangentStiff(void) const
Return the tangent stiffness matrix.
Definition: BeamColumnJoint2d.cpp:228
int update(void)
Updates the element state.
Definition: BeamColumnJoint2d.cpp:212
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int revertToStart(void)
Reverts the element to its initial state.
Definition: BeamColumnJoint2d.cpp:206
Element with material.
Definition: ElemWithMaterial.h:45
Matrix of floats.
Definition: Matrix.h:111
int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: BeamColumnJoint2d.cpp:971
Parameter.
Definition: Parameter.h:68
Base class for loads over elements.
Definition: ElementalLoad.h:79
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: BeamColumnJoint2d.cpp:902
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: BeamColumnJoint2d.cpp:1050