XC Open source finite element analysis program
NLBeamColumn2d.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.16 $
48 // $Date: 2004/06/07 23:42:46 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/nonlinearBeamColumn/element/NLBeamColumn2d.h,v $
50 
51 
52 // File: ~/model/element/NLBeamColumn2d.h
53 //
54 // Written by Remo Magalhaes de Souza on 09/98
55 // Revised: rms 10/98 (uses section class)
56 // rms 01/99 (with distributed loads)
57 // rms 07/99 (using setDomain)
58 // rms 08/99 (included P-Delta effect)
59 // fmk 10/99 setResponse() & getResponse()
60 // rms 11/99 (included rigid joint offsets)
61 // rms 04/00 (using transformation class w/ linear or corotational transf)
62 // rms 04/00 (generalized to iterative/non-iterative algorithm)
63 // mhs 06/00 (using new section class w/ variable dimensions)
64 // rms 06/00 (torsional stiffness considered at the section level)
65 // rms 06/00 (making copy of the sections)
66 // rms 06/00 (storing section history variables at the element level)
67 //
68 //
69 // Purpose: This file contains the class definition for NLBeamColumn2d.
70 // NLBeamColumn2d is a materially nonlinear flexibility based frame element.
71 
72 #ifndef NLBeamColumn2d_h
73 #define NLBeamColumn2d_h
74 
75 #include <domain/mesh/element/truss_beam_column/NLForceBeamColumn2dBase.h>
76 #include <utility/matrix/Matrix.h>
77 #include <utility/matrix/Vector.h>
78 #include <material/section/SeccionBarraPrismatica.h>
79 #include <domain/mesh/element/truss_beam_column/nonlinearBeamColumn/quadrule/GaussLobattoQuadRule1d01.h>
80 
81 namespace XC {
82 class Response;
83 class CrdTransf2d;
84 
86 //
88 //
92  {
93  int maxSubdivisions;
94  // internal data
95  // THESE SHOULD BE REMOVED!!! -- MHS
96  double cosTheta, sinTheta; // cossine directors
97  private:
98  void getGlobalDispls(Vector &dg) const;
99  void getGlobalAccels(Vector &ag) const;
100  void getForceInterpolatMatrix(double xi, Matrix &b, const ID &code);
101  void getDistrLoadInterpolatMatrix(double xi, Matrix &bp, const ID &code);
102  void compSectionDisplacements(std::vector<Vector> &,std::vector<Vector> &) const;
103 
104  static GaussLobattoQuadRule1d01 quadRule;
105 
106  protected:
107  int sendData(CommParameters &);
108  int recvData(const CommParameters &);
109  public:
110  NLBeamColumn2d(int tag= 0);
111  NLBeamColumn2d(int tag,int numSec,const Material *theSection,const CrdTransf *coordTransf);
112  NLBeamColumn2d(int tag, int nodeI, int nodeJ,
113  int numSections,const std::vector<SeccionBarraPrismatica *> &,
114  CrdTransf2d &coordTransf, double massDensPerUnitLength = 0.0,
115  int maxNumIters = 10, double tolerance = 1e-12, int maxSub = 10);
116  Element *getCopy(void) const;
117 
118  void setDomain(Domain *theDomain);
119 
120  int commitState(void);
121  int revertToLastCommit(void);
122  int revertToStart(void);
123  int update(void);
124 
125  const Matrix &getInitialStiff(void) const;
126  const Matrix &getMass(void) const;
127 
128  void zeroLoad(void);
129  int addLoad(ElementalLoad *theLoad, double loadFactor);
130  int addInertiaLoadToUnbalance(const Vector &accel);
131 
132 
133  const Vector &getResistingForceIncInertia(void) const;
134 
135  bool isSubdomain(void);
136 
137  int sendSelf(CommParameters &);
138  int recvSelf(const CommParameters &);
139 
140  friend std::ostream &operator<<(std::ostream &s, NLBeamColumn2d &E);
141  void Print(std::ostream &s, int flag =0);
142 
143  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
144  int getResponse(int responseID, Information &eleInformation);
145 
146  int setParameter(const std::vector<std::string> &argv, Parameter &param);
147  int updateParameter(int parameterID, Information &info);
148  };
149 } // end of XC namespace
150 
151 #endif
152 
153 
CrdTransf provides the abstraction of a frame coordinate transformation. It is an abstract base class...
Definition: CrdTransf.h:87
int update(void)
Actualiza el estado of the element.
Definition: NLBeamColumn2d.cpp:403
Base class for materials.
Definition: Material.h:85
int commitState(void)
Consuma el estado of the element.
Definition: NLBeamColumn2d.cpp:177
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: NLBeamColumn2d.cpp:931
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: NLBeamColumn2d.cpp:979
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
One-dimensional Gauss-Lobatto quadrature.
Definition: GaussLobattoQuadRule1d01.h:69
Definition: Vector.h:82
void zeroLoad(void)
Zeroes loads on element.
Definition: NLBeamColumn2d.cpp:874
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
Element * getCopy(void) const
Virtual constructor.
Definition: NLBeamColumn2d.cpp:141
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: NLBeamColumn2d.cpp:145
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: NLBeamColumn2d.cpp:863
Definition: ID.h:77
Definition: NLForceBeamColumn2dBase.h:43
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: NLBeamColumn2d.cpp:1092
Definition: Matrix.h:82
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: NLBeamColumn2d.cpp:971
Definition: Parameter.h:65
Communication parameters between processes.
Definition: CommParameters.h:65
Base class for 2D coordinate transformation.
Definition: CrdTransf2d.h:77
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
Nonlinear beam-column bidimensional elements.
Definition: NLBeamColumn2d.h:91