XC Open source finite element analysis program
NLBeamColumn3d.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.15 $
48 // $Date: 2003/02/27 17:15:16 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/nonlinearBeamColumn/element/NLBeamColumn3d.h,v $
50 
51 
52 // File: ~/model/element/NLBeamColumn3d.h
53 //
54 // Written: Remo Magalhaes de Souza on 03/99
55 // Revised: rms 06/99 (mass matrix)
56 // rms 07/99 (using setDomain)
57 // rms 08/99 (included P-Delta effect)
58 // fmk 10/99 setResponse() & getResponse()
59 // rms 04/00 (using CrdTransf class)
60 // mhs 06/00 (using new section class)
61 // mhs 06/00 (using new section class w/ variable dimensions)
62 // rms 06/00 (torsional stiffness considered at the section level)
63 // rms 06/00 (making copy of the sections)
64 // rms 06/00 (storing section history variables at the element level)
65 //
66 #ifndef NLBeamColumn3d_h
67 #define NLBeamColumn3d_h
68 
69 #include <domain/mesh/element/truss_beam_column/NLForceBeamColumn3dBase.h>
70 #include <utility/matrix/Matrix.h>
71 #include <utility/matrix/Vector.h>
72 
73 namespace XC {
74 class Response;
75 class GaussLobattoQuadRule1d01;
76 
78 //
81  {
82  private:
83  static GaussLobattoQuadRule1d01 quadRule;
84 
85  void getGlobalDispls(Vector &dg) const;
86  void getGlobalAccels(Vector &ag) const;
87  void getForceInterpolatMatrix(double xi, Matrix &b, const ID &code);
88  void getDistrLoadInterpolatMatrix(double xi, Matrix &bp, const ID &code);
89  void compSectionDisplacements(std::vector<Vector> &,std::vector<Vector> &) const;
90 
91  protected:
92  int sendData(CommParameters &cp);
93  int recvData(const CommParameters &cp);
94  public:
95  NLBeamColumn3d(int tag= 0);
96  NLBeamColumn3d(int tag,int numSec,const Material *theSection,const CrdTransf *coordTransf);
97  NLBeamColumn3d(int tag, int nodeI, int nodeJ,
98  int numSections,const std::vector<SeccionBarraPrismatica *> &,
99  CrdTransf3d &coordTransf, double massDensPerUnitLength = 0.0,
100  int maxNumIters = 10, double tolerance = 1e-12);
101  Element *getCopy(void) const;
102 
103  void setDomain(Domain *theDomain);
104 
105  int commitState(void);
106  int revertToLastCommit(void);
107  int revertToStart(void);
108  int update(void);
109 
110  const Matrix &getInitialStiff(void) const;
111  const Matrix &getMass(void) const;
112 
113  void zeroLoad(void);
114  int addLoad(ElementalLoad *theLoad, double loadFactor);
115  int addInertiaLoadToUnbalance(const Vector &accel);
116 
117  const Vector &getResistingForceIncInertia(void) const;
118 
119  int sendSelf(CommParameters &);
120  int recvSelf(const CommParameters &);
121 
122  friend std::ostream &operator<<(std::ostream &s, NLBeamColumn3d &E);
123  void Print(std::ostream &s, int flag =0);
124 
125  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
126  int getResponse(int responseID, Information &eleInformation);
127 
128  int setParameter(const std::vector<std::string> &argv, Parameter &param);
129  int updateParameter(int parameterID, Information &info);
130  };
131 } // end of XC namespace
132 
133 #endif
134 
CrdTransf provides the abstraction of a frame coordinate transformation. It is an abstract base class...
Definition: CrdTransf.h:87
Element * getCopy(void) const
Virtual constructor.
Definition: NLBeamColumn3d.cpp:125
int commitState(void)
Consuma el estado of the element.
Definition: NLBeamColumn3d.cpp:160
Base class for materials.
Definition: Material.h:85
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
int update(void)
Actualiza el estado of the element.
Definition: NLBeamColumn3d.cpp:433
One-dimensional Gauss-Lobatto quadrature.
Definition: GaussLobattoQuadRule1d01.h:69
Definition: Vector.h:82
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: NLBeamColumn3d.cpp:129
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: NLBeamColumn3d.cpp:921
Base clas for 3D force beam column elements with SeccionBarraPrismatica type material.
Definition: NLForceBeamColumn3dBase.h:44
Information about an element.
Definition: Information.h:80
void zeroLoad(void)
Zeroes loads on element.
Definition: NLBeamColumn3d.cpp:862
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: NLBeamColumn3d.cpp:853
3D materially nonlinear flexibility based frame element.
Definition: NLBeamColumn3d.h:80
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
Base class for 3D coordinate transformation.
Definition: CrdTransf3d.h:80
Definition: ID.h:77
Definition: Matrix.h:82
int sendData(CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: NLBeamColumn3d.cpp:961
Definition: Parameter.h:65
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: NLBeamColumn3d.cpp:1091
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
int recvData(const CommParameters &cp)
Receives members through the channel being passed as parameter.
Definition: NLBeamColumn3d.cpp:968