xc
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 PrismaticBarCrossSection;
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 <PrismaticBarCrossSection *> &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 
int sendSelf(CommParameters &)
Send the object.
Definition: DispBeamColumn3d.cpp:659
Float vector abstraction.
Definition: Vector.h:93
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: DispBeamColumn3d.cpp:105
Information about an element.
Definition: Information.h:80
Definition: Response.h:71
int getResponse(int responseID, Information &eleInfo)
Obtain information from an analysis.
Definition: DispBeamColumn3d.cpp:753
Internal forces for a beam column 3D element.
Definition: FVectorBeamColumn3d.h:40
CrdTransf provides the abstraction of a frame coordinate transformation.
Definition: CrdTransf.h:87
int recvData(const CommParameters &cp)
Receives members through the channel being passed as parameter.
Definition: DispBeamColumn3d.cpp:649
const Vector & getResistingForce(void) const
Returns the resisting force vector for the element.
Definition: DispBeamColumn3d.cpp:537
Base class for materials.
Definition: Material.h:91
Response * setResponse(const std::vector< std::string > &argv, Information &eleInfo)
setResponse() is a method invoked to determine if the element will respond to a request for a certain...
Definition: DispBeamColumn3d.cpp:712
int getNumDOF(void) const
return the number of DOF associated with the element.
Definition: DispBeamColumn3d.cpp:102
int commitState(void)
Commit the current element state.
Definition: DispBeamColumn3d.cpp:132
Base class for the finite elements.
Definition: Element.h:109
int sendData(CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: DispBeamColumn3d.cpp:638
One-dimensional Gauss quadrature.
Definition: GaussQuadRule1d01.h:69
3D beam colun element with PrismaticBarCrossSection material type.
Definition: BeamColumnWithSectionFDTrf3d.h:65
const Matrix & getTangentStiff(void) const
Return the tangent stiffness matrix.
Definition: DispBeamColumn3d.cpp:219
int revertToStart(void)
Reverts the element to its initial state.
Definition: DispBeamColumn3d.cpp:156
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: DispBeamColumn3d.cpp:457
int revertToLastCommit(void)
Revert to the last commited state.
Definition: DispBeamColumn3d.cpp:144
Element * getCopy(void) const
Virtual constructor.
Definition: DispBeamColumn3d.cpp:99
3D beam element with PrismaticBarCrossSection type material.
Definition: DispBeamColumn3d.h:76
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
const Vector & getResistingForceIncInertia(void) const
Returns the resisting force vector including inertia forces.
Definition: DispBeamColumn3d.cpp:600
Communication parameters between processes.
Definition: CommParameters.h:65
Matrix of floats.
Definition: Matrix.h:108
void Print(std::ostream &s, int flag=0)
Print stuff.
Definition: DispBeamColumn3d.cpp:683
Base class for loads over elements.
Definition: ElementalLoad.h:77
int update(void)
Updates the element state.
Definition: DispBeamColumn3d.cpp:168
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:116
Base class for 3D coordinate transformation.
Definition: CrdTransf3d.h:80
void zeroLoad(void)
Zeroes loads on element.
Definition: DispBeamColumn3d.cpp:474
int recvSelf(const CommParameters &)
Receive the object.
Definition: DispBeamColumn3d.cpp:671