XC Open source finite element analysis program
DispBeamColumn3d.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.11 $
48 // $Date: 2003/02/25 23:32:50 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/dispBeamColumn/DispBeamColumn3d.h,v $
50 
51 // Written: MHS
52 // Created: Feb 2001
53 //
54 // Description: This file contains the class definition for DispBeamColumn3d.
55 // The element displacement field gives rise to constant axial strain,
56 // linear curvature, and constant twist angle.
57 
58 #ifndef DispBeamColumn3d_h
59 #define DispBeamColumn3d_h
60 
61 #include <domain/mesh/element/truss_beam_column/BeamColumnWithSectionFDTrf3d.h>
62 #include <utility/matrix/Matrix.h>
63 #include <utility/matrix/Vector.h>
64 #include <domain/mesh/element/truss_beam_column/nonlinearBeamColumn/quadrule/GaussQuadRule1d01.h>
65 #include "domain/mesh/element/utils/fvectors/FVectorBeamColumn3d.h"
66 
67 namespace XC {
68 class Node;
69 class SeccionBarraPrismatica;
70 class CrdTransf3d;
71 class Response;
72 
74 //
77  {
78  private:
79  mutable Vector q;
80  FVectorBeamColumn3d q0; // Fixed end forces in basic system (no torsion)
81  FVectorBeamColumn3d p0; // Reactions in basic system (no torsion)
82 
83  double rho; // Mass density per unit length
84 
85  const Matrix &getInitialBasicStiff(void) const;
86 
87  static Matrix K; // Element stiffness, damping, and mass Matrix
88  static Vector P; // Element resisting force vector
89 
90 
91  static double workArea[];
92 
93  static GaussQuadRule1d01 quadRule;
94  protected:
95  int sendData(CommParameters &cp);
96  int recvData(const CommParameters &cp);
97 
98  public:
99  DispBeamColumn3d(int tag= 0);
100  DispBeamColumn3d(int tag,int numSec,const Material *theSection,const CrdTransf *trf);
101  DispBeamColumn3d(int tag, int nd1, int nd2,
102  int numSections,const std::vector <SeccionBarraPrismatica *> &s, CrdTransf3d &coordTransf, double rho = 0.0);
103  Element *getCopy(void) const;
104 
105  int getNumDOF(void) const;
106  void setDomain(Domain *theDomain);
107 
108  // public methods to set the state of the element
109  int commitState(void);
110  int revertToLastCommit(void);
111  int revertToStart(void);
112 
113  // public methods to obtain stiffness, mass, damping and residual information
114  int update(void);
115  const Matrix &getTangentStiff(void) const;
116  const Matrix &getInitialStiff(void) const;
117  const Matrix &getMass(void) const;
118 
119  void zeroLoad(void);
120  int addLoad(ElementalLoad *theLoad, double loadFactor);
121  int addInertiaLoadToUnbalance(const Vector &accel);
122 
123  const Vector &getResistingForce(void) const;
124  const Vector &getResistingForceIncInertia(void) const;
125 
126  // public methods for element output
127  int sendSelf(CommParameters &);
128  int recvSelf(const CommParameters &);
129  void Print(std::ostream &s, int flag =0);
130 
131  Response *setResponse(const std::vector<std::string> &argv, Information &eleInfo);
132  int getResponse(int responseID, Information &eleInfo);
133  };
134 } // end of XC namespace
135 
136 #endif
137 
CrdTransf provides the abstraction of a frame coordinate transformation. It is an abstract base class...
Definition: CrdTransf.h:87
One-dimensional Gauss quadrature.
Definition: GaussQuadRule1d01.h:69
Base class for materials.
Definition: Material.h:85
3D beam element with SeccionBarraPrismatica type material.
Definition: DispBeamColumn3d.h:76
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
Definition: Vector.h:82
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: DispBeamColumn3d.cpp:105
Information about an element.
Definition: Information.h:80
int recvData(const CommParameters &cp)
Receives members through the channel being passed as parameter.
Definition: DispBeamColumn3d.cpp:648
int commitState(void)
Consuma el estado of the element.
Definition: DispBeamColumn3d.cpp:132
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
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: DispBeamColumn3d.cpp:682
3D beam colun element with SeccionBarraPrismatica material type.
Definition: BeamColumnWithSectionFDTrf3d.h:65
Element * getCopy(void) const
Virtual constructor.
Definition: DispBeamColumn3d.cpp:99
Definition: Matrix.h:82
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: DispBeamColumn3d.cpp:457
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: DispBeamColumn3d.cpp:600
int sendData(CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: DispBeamColumn3d.cpp:637
int update(void)
Actualiza el estado of the element.
Definition: DispBeamColumn3d.cpp:168
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
void zeroLoad(void)
Zeroes loads on element.
Definition: DispBeamColumn3d.cpp:474