XC Open source finite element analysis program
ForceBeamColumn3d.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.7 $
48 // $Date: 2003/10/06 18:37:50 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/forceBeamColumn/ForceBeamColumn3d.h,v $
50 
51 #ifndef ForceBeamColumn3d_h
52 #define ForceBeamColumn3d_h
53 
54 #include <domain/mesh/element/truss_beam_column/NLForceBeamColumn3dBase.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 CrdTransf3d;
62 class BeamIntegration;
63 
65 //
68  {
69  private:
70  void libera(void);
71  void alloc(const BeamIntegration &);
72  void getForceInterpolatMatrix(double xi, Matrix &b, const ID &code);
73  void getDistrLoadInterpolatMatrix(double xi, Matrix &bp, const ID &code);
74  void compSectionDisplacements(std::vector<Vector> &,std::vector<Vector> &) const;
75 
76  // internal data
77  BeamIntegration *beamIntegr;
78 
80 
81  // following are added for subdivision of displacement increment
82  int maxSubdivisions; // maximum number of subdivisons of dv for local iterations
83 
84 
85  protected:
86  void setSectionPointers(const std::vector<SeccionBarraPrismatica *> &secPtrs);
87  int getInitialFlexibility(Matrix &fe) const;
88  int sendData(CommParameters &);
89  int recvData(const CommParameters &);
90  public:
91  ForceBeamColumn3d(int tag= 0);
93  ForceBeamColumn3d(int tag,int numSec,const Material *theSection,const CrdTransf *coordTransf,const BeamIntegration *integ);
94  ForceBeamColumn3d(int tag, int nodeI, int nodeJ,
95  int numSections, const std::vector<SeccionBarraPrismatica *> &,
96  BeamIntegration &beamIntegr,
97  CrdTransf3d &coordTransf, double rho = 0.0,
98  int maxNumIters = 10, double tolerance = 1.0e-12);
100  Element *getCopy(void) const;
101  virtual ~ForceBeamColumn3d(void);
102 
103 
104  void setDomain(Domain *theDomain);
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, ForceBeamColumn3d &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  int setParameter(const std::vector<std::string> &argv, Parameter &param);
128  int updateParameter(int parameterID, Information &info);
129 
130 
131  };
132 } // end of XC namespace
133 
134 #endif
CrdTransf provides the abstraction of a frame coordinate transformation. It is an abstract base class...
Definition: CrdTransf.h:87
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: ForceBeamColumn3d.cpp:153
virtual ~ForceBeamColumn3d(void)
Destructor.
Definition: ForceBeamColumn3d.cpp:150
Base class for materials.
Definition: Material.h:85
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Internal forces for a beam column 3D element.
Definition: FVectorBeamColumn3d.h:40
int revertToLastCommit(void)
Returns to the last commited state.
Definition: ForceBeamColumn3d.cpp:217
3D force based beam column element with nonlinear SeccionBarraPrismatica type material.
Definition: ForceBeamColumn3d.h:67
Definition: Vector.h:82
void zeroLoad(void)
Zeroes loads on element.
Definition: ForceBeamColumn3d.cpp:886
int getInitialFlexibility(Matrix &fe) const
Return the initial flexibility matrix.
Definition: ForceBeamColumn3d.cpp:1036
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: ForceBeamColumn3d.cpp:1022
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: ForceBeamColumn3d.cpp:876
Base clas for 3D force beam column elements with SeccionBarraPrismatica type material.
Definition: NLForceBeamColumn3dBase.h:44
Information about an element.
Definition: Information.h:80
int commitState(void)
Consuma la coordinate transformation de acuerdo con el estado actual.
Definition: ForceBeamColumn3d.cpp:183
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: ForceBeamColumn3d.cpp:993
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
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: ForceBeamColumn3d.cpp:957
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: ForceBeamColumn3d.cpp:1009
Definition: ID.h:77
Element * getCopy(void) const
Virtual constructor.
Definition: ForceBeamColumn3d.cpp:146
Definition: Matrix.h:82
int update(void)
Actualiza el estado of the element.
Definition: ForceBeamColumn3d.cpp:311
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: ForceBeamColumn3d.cpp:1001
double rho
mass density per unit length
Definition: NLForceBeamColumn3dBase.h:56
Definition: Parameter.h:65
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: ForceBeamColumn3d.cpp:1258
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for integration on beam elements.
Definition: BeamIntegration.h:73
ForceBeamColumn3d & operator=(const ForceBeamColumn3d &)
Assignment operator.
Definition: ForceBeamColumn3d.cpp:100
Definition: Response.h:71
int revertToStart(void)
Returns to the initial state.
Definition: ForceBeamColumn3d.cpp:252