XC Open source finite element analysis program
ForceBeamColumn2d.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.6 $
48 // $Date: 2003/10/06 18:37:50 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/forceBeamColumn/ForceBeamColumn2d.h,v $
50 
51 #ifndef ForceBeamColumn2d_h
52 #define ForceBeamColumn2d_h
53 
54 #include <domain/mesh/element/truss_beam_column/NLForceBeamColumn2dBase.h>
55 #include <utility/matrix/Matrix.h>
56 #include <utility/matrix/Vector.h>
57 
58 namespace XC {
59 class Response;
60 class ElementalLoad;
61 class BeamIntegration;
62 class SeccionBarraPrismatica;
63 
65 //
67 //
71  {
72  private:
73  // internal data
74  BeamIntegration *beamIntegr;
75  FVectorBeamColumn2d v0; // Initial deformations due to element loads
76 
77  // following are added for subdivision of displacement increment
78  int maxSubdivisions; // maximum number of subdivisons of dv for local iterations
79 
80  void libera(void);
81  void alloc(const BeamIntegration &);
82 
83  protected:
84  int sendData(CommParameters &);
85  int recvData(const CommParameters &);
86  public:
87  ForceBeamColumn2d(int tag= 0);
89  ForceBeamColumn2d(int tag,int numSec,const Material *theSection,const CrdTransf *trf,const BeamIntegration *integ);
90  ForceBeamColumn2d(int tag, int nodeI, int nodeJ,
91  int numSections,const std::vector<SeccionBarraPrismatica *> &,
92  BeamIntegration &beamIntegr,
93  CrdTransf2d &coordTransf, double rho = 0.0,
94  int maxNumIters = 10, double tolerance = 1.0e-12);
96  Element *getCopy(void) const;
97  virtual ~ForceBeamColumn2d(void);
98 
99  void setDomain(Domain *theDomain);
100  int commitState(void);
101  int revertToLastCommit(void);
102  int revertToStart(void);
103  int update(void);
104 
105  const Matrix &getInitialStiff(void) const;
106  const Matrix &getMass(void) const;
107 
108  void zeroLoad(void);
109  int addLoad(ElementalLoad *theLoad, double loadFactor);
110  int addInertiaLoadToUnbalance(const Vector &accel);
111 
112  const Vector &getResistingForceIncInertia(void) const;
113 
114  int sendSelf(CommParameters &);
115  int recvSelf(const CommParameters &);
116 
117  friend std::ostream &operator<<(std::ostream &s, ForceBeamColumn2d &E);
118  void Print(std::ostream &s, int flag =0);
119 
120  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
121  int getResponse(int responseID, Information &eleInformation);
122 
123  int setParameter(const std::vector<std::string> &argv, Parameter &param);
124  int updateParameter(int parameterID, Information &info);
125 
126 
127 
128  protected:
129  void setSectionPointers(const std::vector<SeccionBarraPrismatica *> &);
130  int getInitialFlexibility(Matrix &fe) const;
131 
132  private:
133  void getForceInterpolatMatrix(double xi, Matrix &b, const ID &code);
134  void getDistrLoadInterpolatMatrix(double xi, Matrix &bp, const ID &code);
135  void compSectionDisplacements(std::vector<Vector> &,std::vector<Vector> &) const;
136  };
137 } // end of XC namespace
138 
139 #endif
CrdTransf provides the abstraction of a frame coordinate transformation. It is an abstract base class...
Definition: CrdTransf.h:87
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: ForceBeamColumn2d.cpp:792
int addLoad(ElementalLoad *theLoad, double loadFactor)
Calcula la respuesta of the element a the load being passed as parameter.
Definition: ForceBeamColumn2d.cpp:810
Element * getCopy(void) const
Virtual constructor.
Definition: ForceBeamColumn2d.cpp:182
Base class for materials.
Definition: Material.h:85
ForceBeamColumn2d & operator=(const ForceBeamColumn2d &)
Assignment operator.
Definition: ForceBeamColumn2d.cpp:136
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: ForceBeamColumn2d.cpp:909
Definition: Vector.h:82
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: ForceBeamColumn2d.cpp:919
virtual ~ForceBeamColumn2d(void)
Destructor.
Definition: ForceBeamColumn2d.cpp:186
Information about an element.
Definition: Information.h:80
int commitState(void)
Consuma el estado of the element.
Definition: ForceBeamColumn2d.cpp:217
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: ForceBeamColumn2d.cpp:189
int recvSelf(const CommParameters &)
Envía el objeto.
Definition: ForceBeamColumn2d.cpp:943
int addInertiaLoadToUnbalance(const Vector &accel)
Add the inertial loads to the unbalanced load vector.
Definition: ForceBeamColumn2d.cpp:849
Definition: ID.h:77
double rho
mass density per unit length
Definition: NLForceBeamColumn2dBase.h:54
Definition: NLForceBeamColumn2dBase.h:43
Definition: Matrix.h:82
void Print(std::ostream &s, int flag=0)
Prints element information in the stream being passed as parameter.
Definition: ForceBeamColumn2d.cpp:1126
Internal forces for a beam-column 2D element.
Definition: FVectorBeamColumn2d.h:40
Force based 2D beam column element with SeccionBarraPrismatica type nonlinear material.
Definition: ForceBeamColumn2d.h:70
int sendSelf(CommParameters &)
Envía el objeto.
Definition: ForceBeamColumn2d.cpp:929
Definition: Parameter.h:65
void zeroLoad(void)
Zeroes loads on element.
Definition: ForceBeamColumn2d.cpp:801
int update(void)
Actualiza el estado of the element.
Definition: ForceBeamColumn2d.cpp:334
Communication parameters between processes.
Definition: CommParameters.h:65
Base class for 2D coordinate transformation.
Definition: CrdTransf2d.h:77
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for integration on beam elements.
Definition: BeamIntegration.h:73
Definition: Response.h:71
const Vector & getResistingForceIncInertia(void) const
Returns the acciones of the element sobre los nodos incluidas las de inercia.
Definition: ForceBeamColumn2d.cpp:874